@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --mud-palette-text-primary: #000000;
    --app-primary-color: #036BC0;
    --app-secondary-color: #0F172B;
}

html,
body {
    --mud-palette-text-primary: #000000 !important;
    color: var(--mud-palette-text-primary);
}

body {
    font-family: 'Inter', 'Droid Arabic Kufi', sans-serif;
}

html[dir="rtl"],
html[dir="rtl"] body {
    font-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-default-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-body1-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-body2-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-button-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-caption-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-overline-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-subtitle1-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-subtitle2-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-h1-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-h2-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-h3-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-h4-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-h5-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
    --mud-typography-h6-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
}

html[dir="rtl"] .mud-typography,
html[dir="rtl"] input,
html[dir="rtl"] button,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    font-family: 'Droid Arabic Kufi', 'Inter', sans-serif;
}

.mud-drawer {
    background-color: var(--app-secondary-color, #0F172B);
    color: white;
}

    .mud-drawer .mud-nav-link {
        margin-bottom: 5px;
    }

    .mud-drawer .mud-nav-link-expand-icon, .mud-nav-link-icon-default {
        fill: white !important;
    }

.mud-appbar.mud-appbar-fixed-top {
    background-color: white;
    color: var(--app-secondary-color, #0F172B);
}

.mud-button-outlined.mud-button-outlined-primary {
    color: var(--app-primary-color, #036BC0);
    --mud-ripple-color: var(--app-primary-color, #036BC0);
    border: 1px solid var(--app-primary-color, #036BC0);
}

.mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled), .mud-button-filled.mud-button-filled-primary {
    background-color: var(--app-primary-color, #036BC0);
    color: white;
    border-radius: 6px;
}

    .mud-navmenu.mud-navmenu-primary .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
        color: white;
    }


.mud-table-head, .mud-table-head, .column-header, .mud-table-head .mud-table-cell {
    background-color: var(--app-secondary-color, #0F172B) !important;
    color: white !important;
    font-weight: bold !important;
}

.mud-table-cell {
    padding: 10px;
    line-height: 1.2;
}

.mud-card {
    margin-bottom: 15px;
}

.mud-card-header,
.mud-button-filled-primary,
.mud-fab-primary,
.mud-dialog .mud-dialog-title {
    /*background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));*/
    color: var(--app-secondary-color, #0F172B);
}

    .mud-dialog .mud-dialog-title .mud-button-close {
        background-color: white;
    }

.mud-table-head, .column-header {
    font-weight: bold;
}

.mud-grid {
    padding-top: 10px;
}

.mud-grid-spacing-xs-6 > .mud-grid-item {
    padding-top: 0px;
}

.mud-dialog .mud-dialog-content {
    padding-top: 15px;
}


/*********************** for Error Popup **************************/
#blazor-error-ui {
    display: none !important;
}

.reconnect-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(138,138,138,0.9) !important;
    display: none; /* JS will change to flex */
    align-items: center !important;
    justify-content: center !important;
    z-index: 2147483647 !important;
}
/* Reuse error popup styles */
.error-card {
    background: #fff !important;
    width: 320px;
    min-height: 280px;
    padding: 30px 25px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    pointer-events: auto;
}


.error-icon {
    width: 90px;
    height: 90px;
    border: 4px solid #ff4b4b;
    color: #ff4b4b;
    border-radius: 50%;
    font-size: 48px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.error-title {
    color: #ff4b4b;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
}

.error-text {
    color: #777;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.error-btn {
    background: #ff4b4b;
    border: none;
    color: white;
    padding: 8px 22px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

    .error-btn:hover {
        background: #e03a3a;
    }
/*************************************************/
