@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

html, body {
    font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
    background: #f5f8fc;
    color: #1b2b4e;
    -webkit-font-smoothing: antialiased;
    direction: rtl;
    text-align: right;
}

a, .btn-link {
    color: #238f88;
}

.btn-primary {
    color: #fff;
    background-color: #238f88;
    border-color: #1c7a75;
}

/* فونت خواناتر برای متن فارسی دکمه اصلی صفحه خانه */
.mud-workspace-button,
.mud-workspace-button .mud-button-label {
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.8;
    direction: rtl;
}

/* Persian typography for the profile-session confirmation dialog. */
.mud-dialog-title {
    color: #1b2e53;
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.8;
}

.mud-dialog-actions .mud-button {
    border-radius: 10px;
    min-height: 40px;
    padding-inline: 12px;
}

.mud-dialog-actions .mud-button-label {
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.8;
}

/* Keep MudBlazor form/confirmation actions at the physical right in RTL layouts. */
.mud-dialog .mud-dialog-actions {
    direction: rtl;
    justify-content: flex-start;
}

/* A consistent, softer form-field treatment for MudBlazor inputs. */
.mud-input-control .mud-input-root,
.mud-input-control .mud-input-slot,
.mud-input-control .mud-input-label,
.mud-input-control .mud-input-adornment {
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif !important;
    letter-spacing: 0;
}

.mud-input-control .mud-input-root,
.mud-input-control .mud-input-slot {
    color: #263a59;
    font-size: .9rem;
    line-height: 1.7;
}

.mud-input-control .mud-input-label-inputcontrol {
    color: #6b7b93;
    font-size: .84rem;
    font-weight: 600;
}

.mud-input-control .mud-input-outlined {
    background: #f8fafc;
    border-radius: 14px;
    transition: background-color .18s ease, box-shadow .18s ease;
}

.mud-input-control .mud-input-outlined > .mud-input-outlined-border {
    border-color: #dce5ef;
    border-radius: 14px;
    border-width: 1px;
    transition: border-color .18s ease, border-width .18s ease;
}

.mud-input-control .mud-input-outlined:not(.mud-disabled):not(:focus-within):hover {
    background: #f3f8fa;
}

.mud-input-control .mud-input-outlined:not(.mud-disabled):not(:focus-within):hover > .mud-input-outlined-border {
    border-color: #a9bdc9;
}

.mud-input-control .mud-input-outlined:focus-within {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(35, 143, 136, .12);
}

.mud-input-control .mud-input-outlined:focus-within > .mud-input-outlined-border {
    border-color: #238f88;
    border-width: 1.5px;
}

.mud-input-control .mud-input-outlined:focus-within ~ .mud-input-label-inputcontrol {
    color: #238f88;
}

.mud-input-control .mud-input-error .mud-input-outlined-border {
    border-color: #d45d68 !important;
}

.mud-input-control .mud-input-filled {
    background: #f4f7fb;
    border-radius: 12px 12px 5px 5px;
    transition: background-color .18s ease;
}

.mud-input-control .mud-input-helper-container {
    color: #7c8ba0;
    font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
    font-size: .74rem;
    letter-spacing: 0;
}

.mud-input-control .mud-input-adornment {
    color: #8293a8;
}

.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 #6de4d5;
}

.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: #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;
}
