/* assets/css/main.css - High Premium CRM Design System */
:root {
    --primary: #2D6CDF;      /* Premium Electric Blue */
    --primary-light: rgba(45, 108, 223, 0.1);
    --secondary: #BB944B;    /* Business Gold */
    --accent: #38bdf8;       /* Cyan Accent */
    
    --bg-dark: #0f172a;      /* Deep Slate */
    --bg-card: rgba(30, 41, 59, 0.7); /* Translucent Slate */
    --sidebar-bg: #1e293b;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Prompt', 'Inter', sans-serif; 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    font-size: 0.95rem; 
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(45, 108, 223, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(187, 148, 75, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

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

.sidebar { 
    width: 280px; 
    background: var(--sidebar-bg); 
    height: 100vh; 
    position: fixed; 
    left: 0; top: 0; 
    display: flex; 
    flex-direction: column;
    padding: 2rem 1.5rem; 
    border-right: 1px solid var(--border);
    z-index: 1000; 
}

.main-content { 
    margin-left: 280px; 
    padding: 2.5rem; 
    width: calc(100% - 280px);
    max-width: 1600px;
}

/* === SIDEBAR ELEMENTS === */
.sidebar-brand { margin-bottom: 3rem; text-align: center; }
.brand-text { color: var(--secondary); font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; }
.brand-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 2px; }

.sidebar-nav { flex: 1; list-style: none; }
.nav-item { margin-bottom: 0.5rem; }
.sidebar-link { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    padding: 0.9rem 1.25rem; 
    border-radius: 14px; 
    color: var(--text-muted); 
    text-decoration: none; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}
.sidebar-link i, .sidebar-link .icon { font-size: 1.2rem; }
.sidebar-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; transform: translateX(5px); }
.sidebar-link.active { background: var(--primary); color: #fff; box-shadow: 0 10px 20px -5px rgba(45, 108, 223, 0.4); }

/* === GLASS COMPONENTS === */
.glass-card { 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; 
    padding: 2rem; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.table-container { 
    background: var(--bg-card); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px; 
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
}

/* === FORMS === */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.6rem; font-weight: 600; }
.form-control { 
    width: 100%; 
    padding: 0.85rem 1.25rem; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid var(--glass-border); 
    border-radius: 14px; 
    color: #fff; 
    outline: none; 
    transition: all 0.3s;
    font-family: inherit;
}
.form-control:focus { border-color: var(--primary); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(45, 108, 223, 0.1); }

/* === BUTTONS === */
.btn { 
    border: none; 
    padding: 0.85rem 1.75rem; 
    border-radius: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: all 0.3s; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.75rem; 
    font-family: inherit;
    text-decoration: none;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), #1e40af); 
    color: #fff; 
    box-shadow: 0 8px 20px -6px rgba(45, 108, 223, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 25px -6px rgba(45, 108, 223, 0.6); }

.btn-secondary { background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

/* === BADGES === */
.badge { padding: 6px 14px; border-radius: 10px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-error { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid rgba(239, 68, 68, 0.2); }

/* === TABLE STYLING === */
.custom-table { width: 100%; border-collapse: collapse; }
.custom-table th { background: rgba(255, 255, 255, 0.02); padding: 1.25rem 1.5rem; text-align: left; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.custom-table td { padding: 1.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.custom-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* === DASHBOARD CARDS === */
.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.stat-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; width: 100%; padding: 1.5rem; }
    .dashboard-container { flex-direction: column; }
}

@media (max-width: 768px) {
    .main-content { padding: 1rem; }
    .header-content h1 { font-size: 1.5rem; }
    .glass-card { padding: 1.5rem 1.25rem; border-radius: 20px; }
    
    .table-container { overflow-x: auto; }
    .custom-table th, .custom-table td { padding: 1rem 0.75rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .btn { width: 100%; }
    .stat-card { padding: 1.5rem; }
}
