@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0F2027;
    --accent: #1e5dd9;
    --bg-light: #f4f7fa;
    --sidebar-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #888888;
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); display: flex; }

/* Login Page */
.login-bg { background-color: var(--bg-light); justify-content: center; align-items: center; height: 100vh; }
.login-container { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); width: 100%; 
max-width: 400px; }
.login-header h2 { color: var(--accent); margin-bottom: 5px; }
.login-header p { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 4px; outline: 
none; }
.form-group input:focus { border-color: var(--accent); }
.btn { padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }
.alert { padding: 10px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.alert-danger { background: #fee2e2; color: #991b1b; }

/* Dashboard Layout */
.sidebar { width: 260px; background: var(--sidebar-bg); height: 100vh; border-right: 1px solid var(--border); position: fixed; 
overflow-y: auto; z-index: 100; transition: 0.3s; }
.sidebar-logo { padding: 20px; text-align: center; border-bottom: 1px solid var(--border); }
.sidebar-logo h3 { color: var(--accent); font-weight: 700; letter-spacing: 1px;}
.menu-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin: 20px 20px 10px; font-weight: 600; }
.sidebar-menu { list-style: none; }
.sidebar-menu li a { display: flex; align-items: center; padding: 12px 20px; color: var(--text-main); text-decoration: none; 
font-size: 14px; transition: 0.2s; }
.sidebar-menu li a i { width: 20px; margin-right: 10px; color: var(--text-muted); }
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: #f0f4ff; color: var(--accent); border-right: 3px solid 
var(--accent); }
.sidebar-menu li a.active i { color: var(--accent); }

.main-content { margin-left: 260px; width: calc(100% - 260px); min-height: 100vh; transition: 0.3s;}
.topbar { background: #fff; height: 60px; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; 
border-bottom: 1px solid var(--border); }
.menu-toggle { cursor: pointer; font-size: 20px; }
.user-profile { cursor: pointer; font-size: 14px; font-weight: 500; }

.content { padding: 30px; }
.page-title { margin-bottom: 20px; font-size: 20px; font-weight: 600; }

/* Cards & Tables */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); display: flex; 
align-items: center; border: 1px solid var(--border);}
.stat-icon { width: 45px; height: 45px; border-radius: 50%; background: #f0f4ff; color: var(--accent); display: flex; 
justify-content: center; align-items: center; font-size: 20px; margin-right: 15px; }
.stat-info h4 { font-size: 24px; color: var(--text-main); }
.stat-info p { font-size: 12px; color: var(--text-muted); }

.data-card { background: #fff; border-radius: 8px; border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #f9fafb; font-weight: 600; color: var(--text-muted); }
.badge { padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }

@media (max-width: 768px) {
    .sidebar { left: -260px; }
    .sidebar.active { left: 0; }
    .main-content { margin-left: 0; width: 100%; }
}
