:root {
    --primary-color: #F15A29;
    --primary-hover: #d1461c;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --sidebar-bg: #1e293b;
    --sidebar-text: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); font-size: 14px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }

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

/* Sidebar */
.sidebar { width: 250px; background-color: var(--sidebar-bg); color: var(--sidebar-text); padding: 20px 0; flex-shrink: 0; }
.sidebar-brand { font-size: 1.5rem; font-weight: 700; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; letter-spacing: -0.5px; }
.nav-item { display: block; padding: 12px 20px; color: #cbd5e1; transition: 0.3s; }
.nav-item:hover, .nav-item.active { background-color: rgba(255,255,255,0.1); color: #fff; }
.nav-item i { margin-right: 10px; width: 20px; text-align: center; }

/* Main Content */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.top-header { height: 60px; background-color: var(--card-bg); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.content-area { padding: 30px; overflow-y: auto; flex: 1; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 1.5rem; font-weight: 600; color: #0f172a; }

/* Dashboard Cards */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.dash-card { background: var(--card-bg); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; }
.dash-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-right: 16px; }
.dash-icon.blue { background: #e0e7ff; color: var(--primary-color); }
.dash-icon.green { background: #d1fae5; color: var(--success); }
.dash-icon.orange { background: #fef3c7; color: var(--warning); }
.dash-icon.red { background: #fee2e2; color: var(--danger); }
.dash-value { font-size: 1.75rem; font-weight: 700; color: #0f172a; line-height: 1; margin-bottom: 4px; }
.dash-label { color: var(--text-muted); font-size: 0.875rem; }

/* Cards & Forms */
.card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 8px; color: #334155; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 14px; transition: 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; font-size: 14px; font-weight: 500; border-radius: 6px; cursor: pointer; border: none; transition: 0.2s; gap: 8px; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: #f1f5f9; color: #475569; }
.btn-secondary:hover { background-color: #e2e8f0; }
.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: #dc2626; }

/* Tables */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
.table th { font-weight: 600; color: #475569; background-color: #f8fafc; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table tr:hover td { background-color: #f8fafc; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.alert-danger { background-color: #fee2e2; color: #991b1b; }
.alert-success { background-color: #d1fae5; color: #065f46; }

/* Auth Layout */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background-color: var(--bg-color); }
.auth-card { background: white; width: 100%; max-width: 400px; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 24px; color: #0f172a; }

/* Dropdown Menu styling */
.user-menu.dropdown { position: relative; display: inline-block; cursor: pointer; padding: 20px 0; margin-bottom: -10px; }
.dropdown-content { display: none; position: absolute; top: 100%; right: 0; background-color: white; min-width: 180px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1); border-radius: 4px; z-index: 9999; border: 1px solid #e2e8f0; }
.user-menu.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { color: #334155; padding: 12px 16px; text-decoration: none; display: flex; align-items:center; border-bottom: 1px solid #f1f5f9; }
.dropdown-content a:hover { background-color: #f8fafc; color: var(--primary-color); }
