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

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-main); }

/* Utility */
.w-100 { width: 100%; }

/* Components */
.card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    border: 1px solid var(--border-color);
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }

/* Form Controls */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.2s;
    font-family: 'Inter', sans-serif;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Layout: Sidebar + Content */
.app-container { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}
.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.sidebar-nav { padding: 16px 0; flex: 1; }
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 15px;
}
.sidebar-link i { margin-right: 14px; font-size: 18px; width: 20px; text-align: center; }
.sidebar-link:hover, .sidebar-link.active {
    background-color: rgba(37, 99, 235, 0.05);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.topbar {
    height: var(--topbar-height);
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
}
.content-area { padding: 24px; flex: 1; }

/* Login Page Only */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-color);
}
.login-box {
    width: 100%;
    max-width: 400px;
}
.login-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-header h1 { color: var(--primary); font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.login-header p { color: var(--text-muted); margin-top: 8px; font-size: 15px; }

/* Responsive basics */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    #mobile-menu-btn { display: inline-block !important; }
}
