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

:root {
  --primary-color: #4f46e5; /* Indigo */
  --primary-hover: #4338ca;
  --bg-color: #f9fafb; /* Light grayish blue */
  --sidebar-bg: #ffffff;
  --sidebar-text: #4b5563;
  --card-bg: #ffffff;
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
}

/* General Reset */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* Sidebar */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all 0.3s;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

#sidebar .sidebar-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

#sidebar .sidebar-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

#sidebar ul.components {
    padding: 20px 0;
    list-style: none;
    margin: 0;
}

#sidebar ul li {
    padding: 4px 15px;
}

#sidebar ul li a {
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.08);
}

#sidebar ul li a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Content Area */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

.content-header {
    padding: 20px 30px;
    background-color: var(--sidebar-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-body {
    padding: 30px;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card.hoverable:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05), 0 20px 25px rgba(0, 0, 0, 0.03);
}

/* Dashboard Quick Action Cards */
.quick-action-card {
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    height: 100%;
}

.quick-action-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.quick-action-card:hover i {
    transform: scale(1.1);
}

.quick-action-card h5 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.quick-action-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.quick-action-card:hover {
    color: var(--primary-color);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Table Overrides */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    padding-bottom: 12px;
}
.table tbody tr {
    transition: background-color 0.2s;
}
.table tbody tr:hover {
    background-color: rgba(79, 70, 229, 0.03);
}
.table tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

/* Button Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

/* Forms */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Responsive Mobile Toggle */
#sidebarCollapse {
    display: none;
}
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
        z-index: 1050;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse {
        display: inline-block;
    }
    .content-body {
        padding: 15px;
    }
}