﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

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

.page-header {
    padding-bottom: 12px;
    
}

    .page-header h4 {
        margin: 0;
        font-weight: 600;
        color: #212529;
    }


/* افزودن */
.btn-add {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* جستجو */
.btn-search {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* ذخیره */
.btn-save {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}
.btn-invoice {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #fff;
}

    .btn-invoice:hover {
        background-color: #5b35a3;
        border-color: #5b35a3;
    }

    .btn-invoice:focus {
        box-shadow: 0 0 0 .25rem rgba(111, 66, 193, .25);
    }

/* ویرایش */
.btn-edit {
    background: transparent;
    border: 1.5px solid #fd7e14;
    color: #fd7e14;
    transition: all .2s ease;
}

    .btn-edit:hover {
        background: #fd7e14;
        color: #fff;
    }

/* حذف */
.btn-delete {
    background: transparent;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    transition: all .2s ease;
}

    .btn-delete:hover {
        background: #dc3545;
        color: #fff;
    }


/* بارگذاری مجدد */
.btn-refresh {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* انصراف */
.btn-cancel {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Search Filter Card */
.search-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}

    .search-card .card-header {
        background-color: #f8f9fa;
        color: #495057;
        font-weight: 600;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #dee2e6;
    }

    .search-card .card-body {
        background-color: #ffffff;
        padding: 1rem;
    }

/* ===========================
   Radzen Action Buttons
   =========================== */

.rz-button.btn-add {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

    .rz-button.btn-add:hover {
        background-color: #0b5ed7 !important;
        border-color: #0a58ca !important;
    }

/* Save */
.rz-button.btn-save {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: #fff !important;
}

    .rz-button.btn-save:hover {
        background-color: #157347 !important;
    }

/* Edit */
.rz-button.btn-edit {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
    color: #fff !important;
}

    .rz-button.btn-edit:hover {
        background-color: #e76b00 !important;
    }

/* Delete */
.rz-button.btn-delete {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

    .rz-button.btn-delete:hover {
        background-color: #bb2d3b !important;
    }

/* Refresh */
.rz-button.btn-refresh {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

    .rz-button.btn-refresh:hover {
        background-color: #5c636a !important;
        border-color: #565e64 !important;
    }
/* Search */
.rz-button.btn-search {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

    .rz-button.btn-search:hover {
        background-color: #0b5ed7 !important;
    }

/* Cancel */
.rz-button.btn-cancel {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

    .rz-button.btn-cancel:hover {
        background-color: #5c636a !important;
    }



.rz-button.btn-select {
    background-color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    color: #fff !important;
}

    .rz-button.btn-select:hover {
        background-color: #5c636a !important;
        border-color: #565e64 !important;
    }

.my-spiner .rz-progressbar-circular-value {
    stroke: #4774B8 !important;
}

.rz-data-row:hover td {
    background-color: #f5f5f5 !important;
    cursor: pointer;
}

.btn-delete {
    background-color: #d32f2f !important;
    color: white !important;
}

/*.btn-edit {
    background-color: #1565c0 !important;
    color: white !important;
    color: white !important;
}*/

.btn-refresh {
    background-color: #6c757d !important;
    color: white !important;
}

.btn-update-status {
    background-color: #0288d1 !important;
    color: white;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.mud-snackbar {
    position: fixed !important;
    z-index: 9999 !important;
    bottom: 300px; /* فاصله از پایین */
    right: 800px; /* فاصله از راست */
    width: auto !important;
    max-width: 50px !important;
}
/* تنظیم موقعیت دقیق Snackbar */
.mud-snackbar-container {
    position: fixed !important;
    z-index: 9999 !important;
    bottom: 300px; /* فاصله از پایین */
    right: 800px; /* فاصله از راست */
    width: auto !important;
    max-width: 50px !important;
}



.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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjY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"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;
}




:root {
    --bs-primary: #2E86C1;
    --bs-secondary: #6c757d;
    --bs-light: #f8f9fa;
}
/* ????? ?????? ???? ???? ???? */
.bg-dark-purple {
    background-color: #301934 !important; /* ????? ???? !important ???? ??????? ?? ?????? ?? ???????? ???? */
}



.modal-header-custom {
    background: #4774B8 !important;
    color: white !important;
    border-bottom: none !important;
    padding: 16px 24px !important;
    border-radius: 8px 8px 0 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

    .modal-header-custom .modal-title {
        color: white !important;
        margin: 0 !important;
        font-weight: 600 !important;
        font-size: 1.1rem !important;
    }

    .modal-header-custom .btn-close-white {
        filter: brightness(0) invert(1) !important;
        opacity: 0.8 !important;
    }

        .modal-header-custom .btn-close-white:hover {
            opacity: 1 !important;
        }

/* استایل دکمه‌های Radzen در مودال */
.modal .rz-button {
    border-radius: 6px !important;
    padding: 6px 16px !important;
    font-size: 0.9rem !important;
}

.modal .rz-button-secondary {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #333 !important;
}

    .modal .rz-button-secondary:hover {
        background: #e9ecef !important;
        border-color: #ced4da !important;
    }

.modal .rz-button-primary {
    background: #4774B8 !important;
    border: 1px solid #4774B8 !important;
    color: white !important;
}

    .modal .rz-button-primary:hover {
        background: #2a48a8 !important;
        border-color: #2a48a8 !important;
    }

    .modal .rz-button-primary:disabled {
        opacity: 0.6 !important;
        cursor: not-allowed !important;
    }

/* استایل دکمه حذف فیلتر */
.modal .btn-filter-clear {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #6c757d !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    transition: all 0.2s !important;
}

    .modal .btn-filter-clear:hover {
        background: #e9ecef !important;
        border-color: #ced4da !important;
        color: #495057 !important;
    }

/* استایل دکمه‌های صفحه‌بندی */
.modal .btn-pagination {
    border-radius: 6px !important;
    padding: 4px 14px !important;
    font-size: 0.85rem !important;
}



.modal .btn-pagination-primary {
    background: transparent !important;
    border: 1px solid #4774B8 !important;
    color: #4774B8 !important;
}

    .modal .btn-pagination-primary:hover {
        background: #4774B8 !important;
        color: white !important;
    }

    .modal .btn-pagination-primary:disabled {
        opacity: 0.5 !important;
        cursor: not-allowed !important;
    }

/* استایل جدول */
.modal .table-hover tbody tr {
    cursor: pointer !important;
    transition: background 0.15s !important;
}

    .modal .table-hover tbody tr:hover {
        background: rgba(52, 85, 200, 0.05) !important;
    }

/* استایل خالی بودن لیست */
.modal .empty-state {
    text-align: center !important;
    padding: 40px 0 !important;
}

    .modal .empty-state .empty-icon {
        font-size: 48px !important;
        color: #ffc107 !important;
    }

    .modal .empty-state .empty-text {
        margin-top: 12px !important;
        color: #856404 !important;
        font-weight: 500 !important;
    }

/* استایل متن صفحه‌بندی */
.modal .pagination-info {
    color: #6c757d !important;
    font-size: 0.85rem !important;
}

/* استایل باکس آپلود (اگر نیاز شود) */
.modal .upload-box {
    border: 2px dashed #dee2e6 !important;
    border-radius: 8px !important;
    padding: 30px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    background: #fafafa !important;
}

    .modal .upload-box:hover {
        background: #f1f1f1 !important;
        border-color: #4774B8 !important;
    }


.persian-date-picker {
    direction: rtl;
    text-align: right;
}

    .persian-date-picker .form-label {
        font-weight: 500;
        margin-bottom: 4px;
        display: block;
        color: #495057;
    }

    .persian-date-picker .rz-datepicker {
        width: 100%;
    }

        .persian-date-picker .rz-datepicker .rz-inputtext {
            border-radius: 6px;
            padding: 8px 12px;
            border: 1px solid #ced4da;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }

            .persian-date-picker .rz-datepicker .rz-inputtext:focus {
                border-color: #4774B8;
                box-shadow: 0 0 0 0.2rem rgba(52, 85, 200, 0.25);
            }

            .persian-date-picker .rz-datepicker .rz-inputtext:disabled {
                background-color: #e9ecef;
                opacity: 0.6;
            }

    /* استایل Validation Message */
    .persian-date-picker .validation-message {
        color: #dc3545;
        font-size: 0.875rem;
        margin-top: 4px;
        display: block;
    }


/* ============================================
   استایل TimePicker
   ============================================ */

.time-picker-wrapper {
    direction: rtl;
    text-align: right;
}

    .time-picker-wrapper .form-label {
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
        color: #495057;
        font-size: 0.9rem;
    }

    .time-picker-wrapper .rz-datepicker {
        width: 100%;
    }

        .time-picker-wrapper .rz-datepicker .rz-inputtext {
            border-radius: 6px;
            padding: 8px 12px;
            border: 1px solid #ced4da;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
            font-size: 0.9rem;
            height: 38px;
        }

            .time-picker-wrapper .rz-datepicker .rz-inputtext:focus {
                border-color: #4774B8;
                box-shadow: 0 0 0 0.2rem rgba(52, 85, 200, 0.25);
                outline: none;
            }

            .time-picker-wrapper .rz-datepicker .rz-inputtext:disabled {
                background-color: #e9ecef;
                opacity: 0.6;
                cursor: not-allowed;
            }

        .time-picker-wrapper .rz-datepicker .rz-dropdown-trigger {
            padding: 0 8px;
            color: #6c757d;
        }

            .time-picker-wrapper .rz-datepicker .rz-dropdown-trigger:hover {
                color: #4774B8;
            }

    /* استایل Validation Message */
    .time-picker-wrapper .validation-message {
        color: #dc3545;
        font-size: 0.8rem;
        margin-top: 4px;
        display: block;
    }

    /* حالت RTL برای آیکون */
    .time-picker-wrapper .rz-datepicker .rz-dropdown-trigger {
        margin-left: 0;
        margin-right: auto;
    }

:root {
    --sidebar-color: #4774B8;
    --header-color: #2B47A8;
}

.app-header {
    background: #4774B8;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.sidebar-nav {
    background: var(--sidebar-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    height: 100%;
    background: transparent;
}

.menu-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .menu-toggle .material-icons {
        font-size: 28px;
    }

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

    .logo-container img {
        height: 35px;
        width: auto;
    }

    .logo-container span {
        font-size: 1.2rem;
        font-weight: bold;
    }

.app-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.rz-button.btn-edit {
    background: transparent !important;
    border: 1.5px solid #fd7e14 !important;
    color: #fd7e14 !important;
}

    .rz-button.btn-edit:hover {
        background: #fd7e14 !important;
        color: white !important;
    }

.rz-button.btn-delete {
    background: transparent !important;
    border: 1.5px solid #dc3545 !important;
    color: #dc3545 !important;
}

    .rz-button.btn-delete:hover {
        background: #dc3545 !important;
        color: white !important;
    }

.date-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    background: rgba(71,116,184,.08);
    color: white;
    font-weight: 600;
    font-size: 17px;
}

.account-card {
    padding: 0;
    border-radius: 12px;
}

.info-item {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    min-height: 90px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.title {
    font-size: .85rem;
    color: #6c757d;
    font-weight: 600;
}

.value {
    font-size: 1rem;
    font-weight: 700;
}

    .value.danger {
        color: #c54b4b;
    }

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-circle .rz-icon {
        color: #5d7dbb;
        font-size: 20px;
    }

.divider {
    width: 1px;
    align-self: stretch;
    background: #e8e8e8;
}
.pagination-btn {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

    .pagination-btn:hover {
        background-color: #0b5ed7 !important;
        border-color: #0a58ca !important;
    }

    .pagination-btn:disabled,
    .pagination-btn.rz-state-disabled {
        background-color: #adb5bd !important;
        border-color: #adb5bd !important;
        color: #fff !important;
    }


:root {
    --rz-primary: #0d6efd;
}

.rz-numeric {
    width: 100%;
}

.rz-numeric-input {
    padding-right: 45px !important;
    direction: ltr !important;
    text-align: left !important;
}


 .appointment-card {
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

        .appointment-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0,0,0,.15);
        }

    .upload-box {
        position: relative;
        border: 2px dashed #ccc;
        padding: 40px;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
        background: #fafafa;
    }

    .file-input-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

    .preview-img {
        max-width: 220px;
        border-radius: 10px;
    }

    .upload-box:hover {
        background: #f1f1f1;
    }

    .upload-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .preview-img {
        max-width: 220px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .media-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
        gap: 15px;
    }

    .media-card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        background: white;
    }

        .media-card img {
            width: 100%;
            height: 160px;
            object-fit: cover;
            cursor: pointer;
        }

    .media-info {
        padding: 8px;
    }

    .media-card {
        position: relative;
        border-radius: 10px;
        overflow: hidden;
    }

    .delete-btn {
        position: absolute;
        top: 6px;
        right: 6px;
        background: rgba(0,0,0,0.6);
        color: white;
        border: none;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        cursor: pointer;
        font-size: 14px;
    }

        .delete-btn:hover {
            background: red;
        }


.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg,#2563eb,#60a5fa);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

.slot-card-available {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #28a745 !important;
    background-color: #d4edda !important;
    min-width: 60px;
    width: 60px;
    border-radius: 8px !important;
    padding: 2px !important;
}

    .slot-card-available:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
        background-color: #b7dfb9 !important;
    }

.slot-card-reserved {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #dc3545 !important;
    background-color: #f8d7da !important;
    min-width: 60px;
    width: 60px;
    border-radius: 8px !important;
    padding: 2px !important;
    opacity: 0.85;
    position: relative;
}

    .slot-card-reserved:hover {
        opacity: 1;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
    }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fa;
    direction: rtl;
}

.login-card {
    width: 420px;
    padding: 35px;
    border-radius: 16px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

    .login-header h3 {
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .login-header p {
        color: #777;
        margin: 0;
    }

.login-icon {
    font-size: 45px;
}

.login-field {
    margin-bottom: 20px;
}

    .login-field .rz-textbox,
    .login-field .rz-password {
        margin-top: 8px;
    }

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.login-options a,
.register-section a {
    text-decoration: none;
}

.register-section {
    text-align: center;
    margin-top: 25px;
    color: #777;
}

    .register-section a {
        margin-right: 5px;
        font-weight: 600;
    }

 