@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #fc924e 0%, #ffb276 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --font-family: 'Inter', sans-serif;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

body {
    font-family: var(--font-family) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.menu-title,
.logo-lg {
    font-family: var(--font-family) !important;
}

/* Glassmorphism utility */
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

/* Modern Login Section */
.modern-auth-bg {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-glass-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    color: var(--text-dark);
}

.auth-glass-card .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    border-radius: 8px;
}

.auth-glass-card .form-control:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--text-dark);
}

.auth-glass-card .form-control::placeholder {
    color: var(--text-muted);
}

.auth-glass-card .btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-glass-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern Table/Card tweaks */
.card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.table thead th {
    background-color: #f8fafc !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0 !important;
}

.btn-primary {
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

/* Custom transitions */
.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Sidebar and Topbar refinements */
.vertical-menu {
    background: #ffffff !important;
    border-right: 1px solid #f1f5f9 !important;
}

#side-menu li a {
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.2s ease;
    color: #64748b !important;
}

#side-menu li a:hover,
#side-menu li.mm-active>a {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
}

#side-menu li a i {
    color: #94a3b8 !important;
}

#side-menu li.mm-active>a i {
    color: var(--primary-color) !important;
}

#page-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.navbar-brand-box {
    background: #ffffff !important;
    border-right: 1px solid #f1f5f9 !important;
}

/* Scrollbar refinement */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}