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

:root {
    --primary-color: #4e73df;
    --primary-dark: #224abe;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;

    --bg-gradient-start: #4e73df;
    --bg-gradient-end: #224abe;

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f2f6fc;
    color: #5a5c69;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 1rem;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Auth Pages Background */
.auth-layout-bg {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
}

/* Form Controls */
.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d3e2;
    font-size: 0.9rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: #bac8f3;
}

.form-floating>label {
    padding: 0.75rem 1rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 115, 223, 0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* Selection Cards (for Radio Buttons) */
.selection-card-label {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-check:checked+.selection-card-label {
    border-color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.05);
    color: var(--primary-color);
}

.selection-card-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Sidebar Overrides */
.sb-sidenav-light .sb-sidenav-menu .nav-link {
    color: #5a5c69;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin: 0.2rem 1rem;
    transition: all 0.2s;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
    transform: translateX(5px);
}

.sb-sidenav-light .sb-sidenav-menu .nav-link .sb-nav-link-icon {
    color: #b7b9cc;
}

.sb-sidenav-light .sb-sidenav-menu .nav-link:hover .sb-nav-link-icon {
    color: var(--primary-color);
}

.sb-sidenav-menu-heading {
    color: #b7b9cc;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.5rem 1.5rem 0.5rem;
}

/* Dark Mode Harmonic Styles */
[data-bs-theme="dark"] {
    --bs-body-bg: #111827;
    --bs-body-color: #f3f4f6;
    --bs-tertiary-bg: #1f2937;
    --bs-border-color: #374151;

    --glass-bg: rgba(17, 24, 39, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] body {
    background-color: #111827;
    color: #f3f4f6;
}

[data-bs-theme="dark"] .card {
    background-color: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .glass-nav {
    background: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .sb-sidenav-light {
    background-color: #111827 !important;
    border-right: 1px solid #1f2937 !important;
}

[data-bs-theme="dark"] .sb-sidenav-light .sb-sidenav-menu .nav-link {
    color: #9ca3af;
}

[data-bs-theme="dark"] .sb-sidenav-light .sb-sidenav-menu .nav-link:hover {
    color: #ffffff;
    background-color: rgba(78, 115, 223, 0.2);
}

[data-bs-theme="dark"] .sb-sidenav-footer {
    background-color: #1f2937 !important;
    border-top: 1px solid #2d3748 !important;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light {
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .navbar-text {
    color: #f3f4f6 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #1c2533;
    border-color: #4e73df;
    color: #ffffff;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1f2937;
    border: 1px solid #374151;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #374151;
    color: #ffffff;
}

[data-bs-theme="dark"] .dropdown-divider {
    border-top: 1px solid #374151;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6,
[data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] .h3 {
    color: #ffffff;
}

[data-bs-theme="dark"] .table {
    color: #e5e7eb;
}

[data-bs-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .border {
    border-color: #374151 !important;
}

[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-end,
[data-bs-theme="dark"] .border-start {
    border-color: #374151 !important;
}

[data-bs-theme="dark"] .offcanvas-header,
[data-bs-theme="dark"] .offcanvas-body {
    background-color: #111827;
    color: #f3f4f6;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #374151;
    border-color: #4b5563;
    color: #9ca3af;
}

[data-bs-theme="dark"] .badge.bg-white.text-dark {
    background-color: #374151 !important;
    color: #f3f4f6 !important;
    border-color: #4b5563 !important;
}

[data-bs-theme="dark"] .bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.2) !important;
}

[data-bs-theme="dark"] .bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.2) !important;
}

[data-bs-theme="dark"] .bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.2) !important;
}

[data-bs-theme="dark"] ::-webkit-calendar-picker-indicator {
    filter: invert(1);
}