:root {
    --app-bg: #121212;
    --app-card-bg: #1e1e1e;
    --app-text: #ffffff;
    --app-text-muted: #aaaaaa;
    --app-primary: #BB86FC;
    --app-secondary: #03DAC6;
    --app-error: #CF6679;
    --app-success: #00e676;
    --safe-area-bottom: env(safe-area-inset-bottom);
    --nav-height: 60px;
}

body {
    background-color: var(--app-bg);
    color: var(--app-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-bottom: calc(var(--nav-height) + var(--safe-area-bottom) + 20px);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

/* Hide Scrollbar */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Mobile Header */
.app-header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-header h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.app-header .profile-icon {
    width: 35px;
    height: 35px;
    background: var(--app-primary);
    border-radius: 50%;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Header Logout Button */
    .logout-btn {
        background: rgba(255, 255, 255, 0.1);
        color: var(--app-text);
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: background 0.2s;
    }

    .logout-btn:active {
        background: rgba(255, 255, 255, 0.2);
    }


    /* Mobile Cards */
    .app-card {
        background: var(--app-card-bg);
        border-radius: 16px;
        padding: 20px;
        margin: 15px 20px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    }

    .stat-card-row {
        display: flex;
        overflow-x: auto;
        padding: 0 20px;
        gap: 15px;
        margin-bottom: 20px;
        scrollbar-width: none;
        /* Firefox */
    }

    .stat-card {
        flex: 0 0 auto;
        width: 130px;
        height: 100px;
        background: var(--app-card-bg);
        border-radius: 12px;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .stat-card h3 {
        margin: 0;
        font-size: 0.9rem;
        color: var(--app-text-muted);
    }

    .stat-card .value {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--app-primary);
    }

    /* List Item Card */
    .list-card {
        background: var(--app-card-bg);
        border-radius: 12px;
        padding: 15px;
        margin-bottom: 12px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .list-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .list-card h4 {
        margin: 0;
        font-size: 1.1rem;
        color: var(--app-text);
    }

    .status-badge {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
    }

    .status-started {
        background: rgba(0, 230, 118, 0.15);
        color: var(--app-success);
    }

    .status-pending {
        background: rgba(207, 102, 121, 0.15);
        color: var(--app-error);
    }

    /* Form Styles */
    .app-input-group {
        margin-bottom: 20px;
    }

    .app-label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: var(--app-text-muted);
    }

    .app-input {
        width: 100%;
        background: #2C2C2C;
        border: none;
        padding: 15px;
        border-radius: 12px;
        color: white;
        font-size: 1rem;
        box-sizing: border-box;
    }

    .app-input:focus {
        outline: 2px solid var(--app-primary);
    }

    .app-btn {
        width: 100%;
        padding: 15px;
        border: none;
        border-radius: 12px;
        background: var(--app-primary);
        color: #000;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        transition: transform 0.1s;
    }

    .app-btn:active {
        transform: scale(0.98);
    }

    /* Bottom Navigation */
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(var(--nav-height) + var(--safe-area-bottom));
        background: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-around;
        padding-top: 10px;
        box-sizing: border-box;
        z-index: 1000;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--app-text-muted);
        text-decoration: none;
        font-size: 0.75rem;
        flex: 1;
    }

    .nav-item i {
        font-size: 1.4rem;
        margin-bottom: 4px;
    }

    .nav-item.active {
        color: var(--app-primary);
    }

    /* Floating Action Button for 'Add' in Center */
    .fab-container {
        position: relative;
        top: -30px;
    }

    .fab {
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, var(--app-secondary), #018786);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 24px;
        box-shadow: 0 6px 16px rgba(3, 218, 198, 0.4);
        border: none;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .fab:active {
        transform: scale(0.95);
        box-shadow: 0 4px 8px rgba(3, 218, 198, 0.3);
    }