:root {
    --bg-color: #09090b;
    --card-bg: rgba(22, 22, 24, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #1DB954;
    --primary-hover: #1ed760;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --red: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* Screens */
.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* Login Screen */
#login-screen {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a24 0%, var(--bg-color) 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 20px;
}
.logo-icon.small {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 32px;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mr-2 { margin-right: 8px; }

.error-text {
    color: var(--red);
    font-size: 14px;
    margin-top: 12px;
}
.success-text {
    color: var(--primary);
    font-size: 14px;
    margin-top: 12px;
}
.hidden { display: none; }

/* Dashboard Layout */
#dashboard-screen {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 280px;
    padding: 32px 24px;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-left: none;
}

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(29, 185, 84, 0.1);
}

.content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
}
.btn-text:hover { color: var(--red); }

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.stat-icon.green { background: rgba(29, 185, 84, 0.1); color: var(--primary); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--blue); }

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

/* Tables */
.table-container {
    padding: 24px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge.premium { background: rgba(29, 185, 84, 0.1); color: var(--primary); }
.badge.standard { background: rgba(161, 161, 170, 0.1); color: var(--text-muted); }

/* Notify Card */
.notify-card {
    max-width: 600px;
    padding: 32px;
}

/* App Mode Toggle Switch */
.app-mode-control {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3f3f46;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

