* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Body
========================= */

body {
    font-family: "Segoe UI", sans-serif;

    background:
    linear-gradient(135deg, #0f172a, #020617);

    color: white;

    overflow-x: hidden;
}

/* =========================
   Navbar
========================= */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 65px;

    background: rgba(2, 6, 23, 0.8);

    backdrop-filter: blur(10px);

    border-bottom:
    1px solid rgba(255,255,255,0.08);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 20px;

    z-index: 1000;

    direction: ltr;
}

/* =========================
   Logo
========================= */

.logo {
    color: white;

    text-decoration: none;

    font-size: 24px;

    font-weight: bold;

    background:
    linear-gradient(to right, #38bdf8, #6366f1);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* =========================
   Menu Button
========================= */

.menu-btn {
    width: 45px;
    height: 45px;

    border: none;

    border-radius: 10px;

    background: rgba(255,255,255,0.06);

    color: white;

    font-size: 22px;

    cursor: pointer;

    transition: 0.3s;
}

.menu-btn:hover {
    background: rgba(255,255,255,0.12);
}

/* =========================
   Sidebar
========================= */

.sidebar {
    position: fixed;

    top: 0;
    right: -280px;

    width: 280px;

    height: 100vh;

    background: #020617;

    border-left:
    1px solid rgba(255,255,255,0.08);

    transition: 0.35s ease;

    z-index: 1200;

    padding: 20px;
}

/* Sidebar Active */

.sidebar.active {
    right: 0;
}

/* =========================
   Sidebar Header
========================= */

.sidebar-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 30px;
}

.sidebar-header span {
    font-size: 22px;
    font-weight: bold;
}

/* =========================
   Close Button
========================= */

.close-btn {
    background: transparent;

    border: none;

    color: white;

    font-size: 22px;

    cursor: pointer;
}

/* =========================
   Sidebar Links
========================= */

.sidebar-links {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.sidebar-links a {
    text-decoration: none;

    color: white;

    background: rgba(255,255,255,0.05);

    padding: 14px;

    border-radius: 12px;

    transition: 0.3s;
}

.sidebar-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================
   Overlay
========================= */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.5);

    opacity: 0;

    pointer-events: none;

    transition: 0.3s;

    z-index: 1100;
}

.overlay.active {
    opacity: 1;

    pointer-events: auto;
}

/* =========================
   Main
========================= */

.main {
    padding-top: 100px;
}

/* =========================
   Responsive Design
========================= */

@media (max-width: 768px) {

    /* Navbar */

    .navbar {

        height: 60px;

        padding: 0 15px;
    }

    .logo {

        font-size: 21px;
    }

    .menu-btn {

        width: 42px;
        height: 42px;

        font-size: 20px;
    }

    /* Sidebar */

    .sidebar {

        width: 240px;
    }

    /* Main */

    .main {

        padding-top: 85px;
    }

    /* Hero */

    .hero {

        padding: 70px 20px;
    }

    .hero h1 {

        font-size: 38px;
    }

    .hero p {

        font-size: 15px;
    }

    /* Upload */

    .upload-container {

        padding: 95px 15px 30px;
    }

    .upload-container h1 {

        font-size: 30px;
    }

    .script-box {

        height: 320px;

        font-size: 14px;

        padding: 15px;
    }

    /* Scripts */

    .scripts-container {

        padding: 95px 15px;
    }

    .script-card {

        padding: 15px;
    }

    .script-title {

        font-size: 16px;
    }

    .script-time {

        font-size: 12px;
    }

    .script-actions {

        gap: 6px;
    }

    .delete-btn,
    .raw-copy-btn {

        padding: 7px 12px;

        font-size: 13px;
    }

    /* View */

    .view-container {

        padding: 95px 15px 40px;
    }

    .top-buttons {

        flex-wrap: wrap;
    }

    .code-box {

        min-height: 250px;

        font-size: 13px;

        padding: 15px;
    }

    .edit-input {

        height: 50px;

        font-size: 14px;
    }

    .expire-btn,
    .save-btn {

        height: 50px;

        font-size: 14px;
    }
}

/* =========================
   Small Phones
========================= */

@media (max-width: 480px) {

    .hero h1 {

        font-size: 30px;
    }

    .upload-container h1 {

        font-size: 25px;
    }

    .script-card {

        flex-direction: column;

        align-items: stretch;

        gap: 15px;
    }

    .script-actions {

        width: 100%;

        display: flex;
    }

    .delete-btn,
    .raw-copy-btn {

        flex: 1;
    }

    .top-buttons {

        flex-direction: column;
    }

    .top-buttons button {

        width: 100%;
    }
}