:root {
    /* Color Palette - Client Experience */
    --bg-dark: #030305;
    --bg-sidebar: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --accent-primary: #007aff;
    --accent-success: #00ff88;
    --accent-purple: #bf5af2;
    --text-main: #ffffff;
    --text-muted: #a0a0a5;
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-padding: 40px;
    --sidebar-width: 280px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.1), transparent),
                radial-gradient(circle at bottom left, rgba(0, 255, 136, 0.05), transparent);
    padding: 20px;
}

.auth-card {
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    width: 100%;
    max-width: 450px;
    padding: 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}

/* Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 40px 30px;
}

.sidebar-header .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.sidebar-header .logo span {
    color: var(--accent-success);
}

.nav-menu {
    flex-grow: 1;
    padding: 0 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 16px;
    margin-bottom: 8px;
    transition: var(--transition);
    font-weight: 500;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: var(--container-padding);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.welcome-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    margin-bottom: 5px;
}

.welcome-text p {
    color: var(--text-muted);
}

/* Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 25px;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.icon-blue { background: rgba(0, 122, 255, 0.1); color: var(--accent-primary); }
.icon-green { background: rgba(0, 255, 136, 0.1); color: var(--accent-success); }
.icon-purple { background: rgba(191, 90, 242, 0.1); color: var(--accent-purple); }

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* Progress Tracking */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-item:hover {
    border-color: rgba(255,255,255,0.2);
    transform: scale(1.01);
}

.progress-track {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-1); /* Adjust if gradient not defined in this file, but you use var usually */
    background: linear-gradient(90deg, #007aff, #00ff88);
    border-radius: 10px;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, #007aff 0%, #00ff88 100%);
    border: none;
    padding: 12px 25px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.2);
}

/* Tables */
.client-table {
    width: 100%;
    border-collapse: collapse;
}

.client-table th {
    text-align: left;
    padding: 15px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.client-table td {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.status-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-active { background: rgba(0, 255, 136, 0.1); color: var(--accent-success); }
.status-review { background: rgba(0, 122, 255, 0.1); color: var(--accent-primary); }
.status-waiting { background: rgba(191, 90, 242, 0.1); color: var(--accent-purple); }

/* --- COMPREHENSIVE CLIENT RESPONSIVITY --- */

@media (max-width: 1200px) {
    :root { --sidebar-width: 240px; }
}

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); width: 280px; transition: var(--transition); }
    .sidebar.active { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,0.8); }
    .main-content { margin-left: 0; padding: 20px; }
    
    .top-bar { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 60px; }
    .back-to-site { top: 15px; left: 15px; padding: 8px 15px; font-size: 0.75rem; }
    
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .project-item { grid-template-columns: 1fr; text-align: center; }
    .progress-track { width: 100%; }
    
    .glass-card { padding: 20px; overflow-x: auto; }
    .client-table { min-width: 500px; }
}

/* Sidebar Toggle for Client */
.client-mobile-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2100;
    width: 45px;
    height: 45px;
    background: var(--accent-primary);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 122, 255, 0.4);
}

@media (max-width: 992px) {
    .client-mobile-toggle { display: flex; }
}

.back-to-site {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.back-to-site:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    z-index: 10;
}

.password-toggle:hover {
    color: white;
}
