* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    font-family: "Segoe UI", sans-serif;

    background:
        linear-gradient(
            135deg,
            #071329,
            #0f274d,
            #173b74
        );

    color: white;
}

/* ===========================
   NAVBAR
=========================== */

.navbar {
    height: 80px;

    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid
        rgba(255,255,255,0.08);

    background:
        rgba(255,255,255,0.03);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;

    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.08);

    font-size: 24px;
}

.nav-left h2 {
    font-size: 20px;
}

.nav-left span {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);

    transition: 0.2s;
}

.nav-links a:hover {
    color: white;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right a {
    text-decoration: none;
    color: white;
}

/* ===========================
   USER CHIP
=========================== */

.user-chip {
    padding: 10px 16px;

    border-radius: 999px;

    background:
        rgba(255,255,255,0.08);

    border:
        1px solid
        rgba(255,255,255,0.08);

    font-size: 14px;
}

/* ===========================
   BUTTONS
=========================== */

.btn {
    border: none;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.2s ease;

    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #2f80ed;
    color: white;

    padding: 14px 22px;
}

.btn-primary:hover {
    background: #3b8eff;
}

.btn-secondary {
    background:
        rgba(255,255,255,0.08);

    color: white;

    padding: 14px 22px;
}

.btn-danger {
    background: #dc2626;
    color: white;

    padding: 14px 22px;
}

.btn-danger:hover {
    background: #ef4444;
}

/* ===========================
   TRACKER CARD
=========================== */

.tracker-card {
    width: min(1200px, 95%);

    margin: 32px auto;

    padding: 30px;

    border-radius: 24px;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid
        rgba(255,255,255,0.08);

    backdrop-filter: blur(18px);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 24px;
}

.tracker-header h1 {
    font-size: 34px;
}

.tracker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ===========================
   STATUS BADGE
=========================== */

.badge {
    padding: 10px 16px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 600;
}

.badge.active {
    background: #16a34a;
}

.badge.paused {
    background: #f59e0b;
}

.badge.idle {
    background: #6b7280;
}

/* ===========================
   STATS GRID
=========================== */

.stats-grid {
    width: min(1200px, 95%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 18px;
}

.stat-card {
    padding: 24px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid
        rgba(255,255,255,0.08);

    backdrop-filter: blur(18px);
}

.stat-card h4 {
    margin-bottom: 12px;

    color:
        rgba(255,255,255,0.7);
}

.stat-card span {
    font-size: 24px;
    font-weight: 700;
}

/* ===========================
   PROFILE CARD
=========================== */

.profile-card {
    width: min(1200px, 95%);

    margin: 24px auto;

    padding: 24px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid
        rgba(255,255,255,0.08);

    backdrop-filter: blur(18px);
}

.profile-card h3 {
    margin-bottom: 18px;
}

.profile-card div {
    margin-bottom: 10px;
}

/* ===========================
   INFO CARDS
=========================== */

.info-card {
    width: min(1200px, 95%);

    margin: 24px auto;

    padding: 24px;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.06);

    border:
        1px solid
        rgba(255,255,255,0.08);

    backdrop-filter: blur(18px);
}

.info-card h2 {
    margin-bottom: 16px;
}

.info-card ul {
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 10px;
}

.info-card p {
    line-height: 1.7;
    color:
        rgba(255,255,255,0.8);
}

/* ===========================
   UTILITY
=========================== */

.hidden {
    display: none !important;
}

/* ===========================
   MOBILE
=========================== */

@media (max-width: 900px) {

    .navbar {
        flex-direction: column;

        height: auto;

        padding: 20px;
        gap: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .tracker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tracker-actions {
        width: 100%;
    }

    .tracker-actions .btn {
        flex: 1;
    }
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 5px 20px;
}

/* ===========================
   MOBILE
=========================== */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 18px;
    }

    .nav-links {
        gap: 16px;
    }

    .tracker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .tracker-actions {
        width: 100%;
    }

    .tracker-actions .btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
        margin-left: auto;
        padding-right: 10px;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        display: none;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 16px;
        height: auto;
    }

    .nav-left span {
        display: none;
    }

    .tracker-card,
    .profile-card,
    .info-card {
        width: 92%;
        padding: 20px;
    }

    .stats-grid {
        width: 92%;
        grid-template-columns: 1fr;
    }

    .tracker-actions {
        flex-direction: column;
    }

    .tracker-actions .btn,
    .tracker-actions a {
        width: 100%;
        text-align: center;
    }

    .toast {
        top: 90px;
        left: 12px;
        right: 12px;
        width: auto;
        min-width: auto;
        max-width: none;
        font-size: 14px;
    }

    .mobile-menu {
        position: fixed;
        inset: 0;

        background: rgba(0,0,0,.45);

        backdrop-filter: blur(8px);

        z-index: 9999;

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transition: .3s ease;
    }

    .mobile-menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .drawer {
        position: absolute;
        top: 0;
        right: 0;
        left: auto;
        width: 260px;
        height: 100%;
        padding: 24px;
        background: linear-gradient(180deg, #10284d, #071329);
        border-left: 1px solid rgba(255,255,255,0.08);
        border-right: none;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu.show .drawer {
        transform: translateX(0);
    }

    .close-btn {
        align-self: flex-end;
        border: none;
        background: transparent;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }

    .drawer-user {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 30px 0;
    }

    .drawer-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #2f80ed, #5b9cff);
    }

    .drawer-user h3 {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .drawer-user span {
        color: rgba(255,255,255,.65);
        font-size: 14px;
    }

    .drawer a {
        color: white;
        text-decoration: none;
        padding: 12px 0;
        font-size: 18px;
    }
}

/* ===========================
   TOAST
=========================== */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    min-width: 350px;
    max-width: 500px;
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: white;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #16a34a;
}

.toast.error {
    background: #dc2626;
}

.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: auto;
    padding: 0;
}

.hidden {
    display: none !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.footer {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.tracker-actions a.btn {
    text-decoration: none;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }

    .menu-btn {
        display: none !important;
    }
}