/* Modern Theme - Premium UI/UX */
/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #3b5de7;
    /* Vibrant Blue */
    --secondary-color: #8c98a5;
    --success-color: #45cb85;
    --info-color: #0caadc;
    --warning-color: #eeb902;
    --danger-color: #ef4d56;
    --light-color: #f8f9fa;
    --dark-color: #343a40;

    --bg-body: #f4f5f8;
    --bg-card: #ffffff;
    --text-main: #343a40;
    --text-muted: #8795a1;
    --border-color: #e9ecef;

    --sidebar-bg: #ffffff;
    --sidebar-text: #6c757d;
    --sidebar-active-bg: #eef2fd;
    --sidebar-active-text: #3b5de7;

    --shadow-card: 0 0.75rem 1.5rem rgba(18, 38, 63, 0.03);
    --radius-card: 1rem;
    /* 16px */
}

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

/* Card Styling */
.card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 24px;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 3rem rgba(18, 38, 63, 0.06);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3b5de7 0%, #4e6ef2 100%);
    border: none;
    box-shadow: 0 4px 6px rgba(59, 93, 231, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #324fc7 0%, #405ddb 100%);
    box-shadow: 0 6px 12px rgba(59, 93, 231, 0.3);
    transform: translateY(-1px);
}

/* Sidebar */
.side-menu {
    background: var(--sidebar-bg);
    box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.06);
}

#sidebar-menu>ul>li>a {
    color: var(--sidebar-text);
    font-weight: 500;
    border-left: 3px solid transparent;
    border-radius: 0 24px 24px 0;
    margin-right: 12px;
}

#sidebar-menu>ul>li>a:hover,
#sidebar-menu>ul>li>a.mm-active {
    color: var(--sidebar-active-text);
    background-color: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active-text);
}

#sidebar-menu>ul>li>a i {
    color: inherit;
}

/* Topbar */
.topbar .topbar-left {
    background: #ffffff;
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
}

.navbar-custom {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Fix: Ensure overflow is visible for dropdowns */
    overflow: visible !important;
}

/* Fix: Ensure dropdowns appear above other content */
.topbar {
    z-index: 1005 !important;
}

.dropdown-menu {
    z-index: 2000 !important;
    box-shadow: 0 0.5rem 2rem rgba(18, 38, 63, 0.15);
    border: none;
    border-radius: 0.5rem;
}

/* Notifications */
.noti-icon {
    color: var(--dark-color) !important;
    font-size: 24px;
}

.noti-icon-badge {
    background-color: var(--danger-color);
    position: absolute;
    top: 15px;
    right: 5px;
}

.page-title-box .page-title {
    font-weight: 700;
    color: var(--dark-color);
}

/* Auth Pages (Login/Register) */
.account-pages .card {
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #3b5de7 0%, #6f42c1 100%);
}

/* Tables */
.table thead th {
    border-top: none;
    border-bottom-width: 1px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background-color: #fcfcfc;
}

.table td {
    vertical-align: middle;
}

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 93, 231, 0.15);
    border-color: #8c9eff;
}