html, body {
    font-family: Negar !important;
}

a, .btn-link {
    color: #006bb7;
}
.mud-root {
    font-family: 'Negar', fallback-font, sans-serif !important;
}
.mud-typography {
    font-family: 'Negar', fallback-font, sans-serif !important;
}
@media (min-width: 1280px) {
    .mud-container-maxwidth-lg {
        max-width: 100% !important; /* or set a larger value like 1600px */
    }
}
.mud-data-grid,
.mud-data-grid *,
.mud-table,
.mud-table *,
.mud-table-root,
.mud-table-root * {
    font-family: 'Negar', fallback-font, sans-serif !important;
}
.mud-button {
    font-family: 'Negar', fallback-font, sans-serif !important;
    border-radius: 20px;
}
/* Or target all MudBlazor components */
.mud-root,
.mud-root * {
    font-family: 'Negar', fallback-font, sans-serif !important;
}
/* Or target specific text components */
.mud-text {
    font-family: 'Negar', fallback-font, sans-serif !important;
}
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXR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Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@font-face {
    font-family: "IranSans";
    font-style: normal;
    font-weight: 900; /* Regular weight */
    font-display: swap;
    src: url("/fonts/Iran-Sans.ttf") format("truetype");
}
@font-face {
    font-family: "Negar";
    font-style: normal;
    font-weight: 900; /* Regular weight */
    font-display: swap;
    src: url("/fonts/Negaar-Bold.ttf") format("truetype");
}

/*------------------------------------------------------------------------------------------------------------------------*/

.glass-root {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    transition: background 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Gradient */
.dark-mode {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a140f 25%, #2c211a 45%, #3d2e22 60%, #2c211a 75%, #1a140f 90%, #0a0a0a 100%);
}

/* Light Mode - Soft Bright Gradient */
.light-mode {
    background: linear-gradient(135deg, #f0faf0 0%, #d4edda 15%, #b8e6b8 30%, #9edf9e 45%, #b8e6b8 60%, #d4edda 75%, #f0faf0 100%);
}

    /* ========== LIGHT MODE TEXT COLORS ========== */
    .light-mode .glass-appbar,
    .light-mode .glass-appbar * {
        color: #1f2937 !important;
    }

        .light-mode .glass-appbar .mud-button,
        .light-mode .glass-appbar .mud-icon-button,
        .light-mode .glass-appbar .mud-typography {
            color: #1f2937 !important;
        }

        .light-mode .glass-appbar .mud-text-secondary {
            color: #4b5563 !important;
        }

    .light-mode .mud-button-group .mud-button {
        color: #1f2937 !important;
    }

    .light-mode .mud-typography-h4,
    .light-mode .mud-typography-h5,
    .light-mode .mud-typography-h6 {
        color: #1f2937 !important;
    }

    /* Light mode body text */
    .light-mode .mud-typography,
    .light-mode .mud-text,
    .light-mode .mud-button,
    .light-mode .mud-nav-link,
    .light-mode .mud-table-cell,
    .light-mode .mud-input,
    .light-mode .mud-input-label,
    .light-mode .mud-select,
    .light-mode .mud-picker,
    .light-mode .mud-dialog-title,
    .light-mode .mud-dialog-content,
    .light-mode p,
    .light-mode span:not(.mud-icon),
    .light-mode div:not(.mud-appbar):not(.mud-drawer):not(.mud-main-content),
    .light-mode label,
    .light-mode h1, .light-mode h2, .light-mode h3, .light-mode h4, .light-mode h5, .light-mode h6 {
        color: #1f2937 ;
    }

        .light-mode .mud-text-secondary,
        .light-mode .mud-nav-link .mud-typography,
        .light-mode .mud-table-column-header {
            color: #4b5563 ;
        }

/* ========== DARK MODE TEXT COLORS ========== */
.dark-mode .glass-appbar,
.dark-mode .glass-appbar * {
    color: #f5f5f5 !important;
}

    .dark-mode .glass-appbar .mud-button,
    .dark-mode .glass-appbar .mud-icon-button,
    .dark-mode .glass-appbar .mud-typography {
        color: #f5f5f5 !important;
    }

    .dark-mode .glass-appbar .mud-text-secondary {
        color: #d1d5db !important;
    }

.dark-mode .mud-button-group .mud-button {
    color: #f5f5f5 !important;
}

.dark-mode .mud-typography-h4,
.dark-mode .mud-typography-h5,
.dark-mode .mud-typography-h6 {
    color: #f5f5f5 !important;
}

/* Dark mode body text */
.dark-mode .mud-typography,
.dark-mode .mud-text,
.dark-mode .mud-button,
.dark-mode .mud-nav-link,
.dark-mode .mud-table-cell,
.dark-mode .mud-input,
.dark-mode .mud-input-label,
.dark-mode .mud-select,
.dark-mode .mud-picker,
.dark-mode .mud-dialog-title,
.dark-mode .mud-dialog-content,
.dark-mode p,
.dark-mode span:not(.mud-icon),
.dark-mode div:not(.mud-appbar):not(.mud-drawer):not(.mud-main-content),
.dark-mode label,
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: #f5f5f5 !important;
}

    .dark-mode .mud-text-secondary,
    .dark-mode .mud-nav-link .mud-typography,
    .dark-mode .mud-table-column-header {
        color: #d1d5db !important;
    }

/* ========== GLASS EFFECTS ========== */
.glass-appbar,
.glass-drawer,
.mud-card,
.mud-dialog,
.mud-paper {
    border-radius: 20px;
    
}
.mud-dialog {
    padding: 20px;
}
.light-mode .glass-appbar,
.light-mode .glass-drawer,
.light-mode .mud-card,
.light-mode .mud-dialog,
.light-mode .mud-paper {
    background: linear-gradient(135deg, rgba(240, 248, 244, 0.90) 0%, rgba(230, 245, 235, 0.85) 30%, rgba(220, 240, 230, 0.80) 60%, rgba(230, 245, 235, 0.85) 80%, rgba(240, 248, 244, 0.90) 100%) !important;
    border: 1px solid rgba(70, 178, 112, 0.20) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 12px rgba(70, 178, 112, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px)  !important;
}

.dark-mode .glass-appbar,
.dark-mode .glass-drawer,
.dark-mode .mud-card,
.dark-mode .mud-dialog,
.dark-mode .mud-paper {
    background: rgba(30, 25, 20, 0.85) !important;
    border: 1px solid rgba(234, 179, 8, 0.28);
    box-shadow: 0 12px 50px -12px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px) saturate(180%);
}
/* ========== TEXT FIXES FOR BOTH MODES ========== */
.light-mode .mud-text-secondary,
.light-mode .mud-nav-link .mud-typography {
    color: #4b5563 !important;
}

.dark-mode .mud-text-secondary,
.dark-mode .mud-nav-link .mud-typography {
    color: #d1d5db !important;
}

/* Fix for MudTable in both modes */
.light-mode .mud-table-root {
    color: #1f2937 !important;
}

.dark-mode .mud-table-root {
    color: #f5f5f5 !important;
}

/* Fix for MudInput in both modes */
.light-mode .mud-input-root {
    color: #1f2937 !important;
}

.dark-mode .mud-input-root {
    color: #f5f5f5 !important;
}

/* Fix for MudSelect in both modes */
.light-mode .mud-select-root {
    color: #1f2937 !important;
}

.dark-mode .mud-select-root {
    color: #f5f5f5 !important;
}

/* Fix for MudList in both modes */
.light-mode .mud-list-item {
    color: #1f2937 !important;
}

.dark-mode .mud-list-item {
    color: #f5f5f5 !important;
}

/* ========== LOGO ========== */
.logo-glow {
    filter: drop-shadow(0 0 22px rgba(250, 204, 21, 0.75));
}

    .logo-glow:hover {
        transform: scale(1.12) rotate(8deg);
    }

/* ========== DRAWER POSITIONING ========== */


/*@media (max-width: 100%) {
    .mud-drawer {
        top: 0 !important;
        height: 100vh !important;
    }
}*/

/* ========== MAIN CONTENT ========== */
.main-content {
    padding-top: 20px !important;
}

/* Fix for MudMainContent in both modes */
.light-mode .mud-main-content {
    color: #1f2937 !important;
}

.dark-mode .mud-main-content {
    color: #f5f5f5 !important;
}

/* Fix for MudPaper in dark mode */
.dark-mode .mud-paper {
    background: rgba(30, 25, 20, 0.85) !important;
    color: #f5f5f5 !important;
}

/* Fix for MudCard in dark mode */
.dark-mode .mud-card {
    background: rgba(30, 25, 20, 0.85) !important;
    color: #f5f5f5 !important;
}

/* Fix for buttons in dark mode */
.dark-mode .mud-button-root {
    color: #f5f5f5 !important;
}

.light-mode .mud-button-root {
    color: #1f2937 !important;
}

/* Fix for MudText in both modes */
.light-mode .mud-typography-body1,
.light-mode .mud-typography-body2,
.light-mode .mud-typography-subtitle1,
.light-mode .mud-typography-subtitle2 {
    color: #1f2937 !important;
}

.dark-mode .mud-typography-body1,
.dark-mode .mud-typography-body2,
.dark-mode .mud-typography-subtitle1,
.dark-mode .mud-typography-subtitle2 {
    color: #f5f5f5 !important;
}

/*            Login               */



.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.glass-login-card {
    max-width: 420px;
    width: 100%;
    border-radius: 24px;
    background: rgba(30, 25, 20, 0.65) !important;
    backdrop-filter: blur(32px) saturate(180%);
    border: 1px solid rgba(234, 179, 8, 0.35);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
}

.light-mode .glass-login-card {
    background: rgba(255, 253, 245, 0.78) !important;
    border: 1px solid rgba(234, 179, 8, 0.4);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
}

.mud-button-gold {
    background: linear-gradient(90deg, #fcd34d, #facc15) !important;
    color: #1f2937 !important;
    font-weight: 600;
    text-transform: none;
    height: 56px;
    font-size: 1.1rem;
}

.logo-glow {
    filter: drop-shadow(0 0 30px rgba(250, 204, 21, 0.8));
}