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

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --sidebar-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: #111827;
    color: #f3f4f6;
    transition: all 0.3s;
    border-right: 1px solid #1f2937;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #1f2937;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 12px 24px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

#sidebar ul li a:hover {
    color: #ffffff;
    background: #1f2937;
    border-right: 3px solid var(--primary-color);
}

#sidebar ul li.active > a {
    color: #ffffff;
    background: var(--primary-color);
    border-right: none;
    font-weight: 600;
}

#sidebar .text-muted {
    color: #9ca3af !important;
}

/* Main Content */
#content {
    width: 100%;
    padding: 30px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Base Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

/* Metric Cards (Dashboard) */
.metric-card {
    display: flex;
    align-items: center;
    padding: 24px;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 20px;
}
.metric-icon.primary { background: #e0e7ff; color: #4f46e5; }
.metric-icon.success { background: #dcfce7; color: #16a34a; }
.metric-icon.warning { background: #fef9c3; color: #ca8a04; }
.metric-icon.danger { background: #fee2e2; color: #dc2626; }

.metric-info h5 {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}
.metric-info h3 {
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
}

/* Modern Tables */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.modern-table th {
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}
.modern-table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-size: 15px;
}
.modern-table tbody tr {
    transition: background-color 0.2s;
}
.modern-table tbody tr:hover {
    background-color: #f8fafc;
}
.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge-soft-primary { background: #e0e7ff; color: #4338ca; font-weight: 500; padding: 6px 12px; border-radius: 20px;}
.badge-soft-success { background: #dcfce7; color: #15803d; font-weight: 500; padding: 6px 12px; border-radius: 20px;}
.badge-soft-warning { background: #fef9c3; color: #a16207; font-weight: 500; padding: 6px 12px; border-radius: 20px;}

/* Buttons */
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; }
.btn-ghost:hover { background: #f1f5f9; color: var(--primary-color); }
.btn-ghost.danger:hover { background: #fee2e2; color: #dc2626; }

/* Auth Pages Background */
.auth-bg { background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.glass-card { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.content-footer { margin-top: auto; padding-top: 2rem; color: var(--text-muted); }
