﻿html, body {
    font-family: 'GE Dinar One', sans-serif !important;
}

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;
}

.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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

/* إضافة إلى app.css أو site.css */
.mud-input-control {
    direction: rtl !important;
    text-align: right !important;
}

    .mud-input-control .mud-input-root {
        direction: rtl !important;
    }

        .mud-input-control .mud-input-root input {
            text-align: right !important;
            direction: rtl !important;
        }

.mud-autocomplete .mud-list {
    direction: rtl !important;
    text-align: right !important;
}

.mud-list-item {
    direction: rtl !important;
    text-align: right !important;
}

.mud-popover {
    direction: rtl !important;
}

/* ============================================
   CV Components - Enhanced Styles (مطابق لتصميم صفحة Login)
   مع دعم Dark Mode
   ============================================ */

/* العناوين الرئيسية */
.cv-component-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 20px;
    display: block;
}

/* عنوان بتدرج لوني مثل صفحة Landing */
.cv-gradient-title {
    font-size: clamp(24px, 3vw + 0.5vh, 32px);
    font-weight: 600;
    margin: clamp(16px, 1.5vh, 24px) 0;
    background: linear-gradient(135deg, var(--mud-palette-primary) 0%, var(--mud-palette-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    display: inline-block;
}

/* الأزرار الأساسية */
.elegant-button {
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.elegant-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

/* الأزرار الرئيسية المتدرجة */
.elegant-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.elegant-button-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px);
}

.elegant-button-primary:disabled {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    box-shadow: none !important;
    transform: none;
}

/* حقول الإدخال */
.elegant-textfield .mud-input-outlined {
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.elegant-textfield .mud-input-outlined:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* البطاقات الورقية */
.elegant-paper {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--mud-palette-divider-light) !important;
    background: var(--mud-palette-surface) !important;
}

.elegant-paper:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

/* منطقة رفع الملفات */
.elegant-upload-zone {
    border-radius: 12px !important;
    border: 2px dashed var(--mud-palette-divider-light) !important;
    transition: all 0.3s ease !important;
    background: var(--mud-palette-background) !important;
}

.elegant-upload-zone:hover {
    border-color: var(--mud-palette-primary) !important;
    background: var(--mud-palette-surface) !important;
}

/* الفواصل */
.elegant-divider {
    margin: 24px 0 !important;
    border-color: var(--mud-palette-divider-light) !important;
}

/* التنبيهات */
.elegant-alert {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* أزرار الأيقونات */
.elegant-icon-button {
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
}

.elegant-icon-button:hover {
    transform: scale(1.05);
}

/* القوائم والجداول */
.elegant-list-item {
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    transition: all 0.3s ease !important;
    background: var(--mud-palette-surface) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

.elegant-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

/* الحوارات والنوافذ المنبثقة */
.elegant-dialog .mud-dialog {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    background: var(--mud-palette-surface) !important;
}

/* الشرائح */
.elegant-chip {
    border-radius: 8px !important;
    font-weight: 500 !important;
}

/* حالة التحميل */
.elegant-loading {
    padding: 40px;
    text-align: center;
}

.elegant-loading .mud-progress-circular {
    color: var(--mud-palette-primary) !important;
}

/* الأيقونات */
.elegant-icon-primary {
    color: var(--mud-palette-primary) !important;
}

.elegant-icon-secondary {
    color: var(--mud-palette-text-secondary) !important;
}

/* تأثيرات الانتقال */
.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للـ MudBlazor */
.mud-paper.elegant-card {
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: var(--mud-palette-surface) !important;
}

.mud-card.elegant-card:hover {
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.12) !important;
}

.mud-button.elegant-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    min-width: 180px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.mud-button.elegant-save-btn:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-2px);
}

.mud-button.elegant-save-btn:disabled {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    box-shadow: none !important;
}

/* تحسين حقول النصوص */
.mud-input-outlined .mud-input-slot {
    border-radius: 10px !important;
}

.mud-input-outlined.mud-input-outlined-filled {
    background-color: var(--mud-palette-background) !important;
}

/* تحسين Select */
.mud-select.elegant-select .mud-input-outlined {
    border-radius: 10px !important;
}

/* تحسين File Upload */
.mud-file-upload .mud-button {
    border-radius: 10px !important;
}





/* ============================================
   CV2 Primary Buttons - Gradient Style
   ============================================ */

/* الأزرار الأساسية في CV2 بتدرج لوني */
.cv-tabs-container .mud-button-filled-primary,
.cv-tabs-container .mud-button.mud-button-filled.mud-button-filled-primary,
.gradient-button.mud-button-filled-primary,
.cv-save-button.mud-button-filled-primary {
    background: linear-gradient(135deg, rgba(0, 86, 164, 0.12) 0%, rgba(0, 133, 141, 0.12) 100%) !important;
    color: #0056A4 !important;
    border: 1px solid rgba(0, 86, 164, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 86, 164, 0.15) !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

.cv-tabs-container .mud-button-filled-primary:hover:not(:disabled),
.cv-tabs-container .mud-button.mud-button-filled.mud-button-filled-primary:hover:not(:disabled),
.gradient-button.mud-button-filled-primary:hover:not(:disabled),
.cv-save-button.mud-button-filled-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 86, 164, 0.18) 0%, rgba(0, 133, 141, 0.18) 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 86, 164, 0.25) !important;
    transform: translateY(-2px);
}

.cv-tabs-container .mud-button-filled-primary:disabled,
.cv-tabs-container .mud-button.mud-button-filled.mud-button-filled-primary:disabled,
.gradient-button.mud-button-filled-primary:disabled,
.cv-save-button.mud-button-filled-primary:disabled {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    box-shadow: none !important;
    border: 1px solid #cbd5e0 !important;
}

/* ============================================
   CV Components - Global Typography Styles
   Primary Text Color: #25273D (rgba(37, 39, 61, 1))
   ============================================ */

/* تطبيق اللون على جميع مكونات CV */
/*:root {
    --cv-primary-text-color: #25273D;
    --cv-primary-text-rgb: 37, 39, 61;
    --cv-secondary-text-color: rgba(37, 39, 61, 0.7);
    --cv-placeholder-color: rgba(37, 39, 61, 0.5);
}*/

/* جميع النصوص في صفحات CV */
/*[data-cv-component] *,
[data-cv-page] *,
.cv-page-container *,
.cv-component * {
    color: var(--cv-primary-text-color) !important;
}*/

/* استثناءات للعناصر التي يجب أن تحافظ على لونها */
/* الأزرار الأساسية */
/*[data-cv-component] .mud-button-filled-primary *,
[data-cv-component] .mud-button-filled-secondary *,
[data-cv-component] .mud-button-filled-success *,
[data-cv-component] .mud-button-filled-error *,
[data-cv-page] .mud-button-filled-primary *,
[data-cv-page] .mud-button-filled-secondary *,
[data-cv-page] .mud-button-filled-success *,
[data-cv-page] .mud-button-filled-error *,
.cv-page-container .mud-button-filled-primary *,
.cv-page-container .mud-button-filled-secondary *,
.cv-page-container .mud-button-filled-success *,
.cv-page-container .mud-button-filled-error *,
.cv-page-container .nav-link.active * {
    color: white !important;
}*/

/* رسائل التنبيه والأخطاء */
/*[data-cv-component] .mud-alert-message,
[data-cv-component] .text-danger,
[data-cv-component] .text-success,
[data-cv-component] .text-warning,
[data-cv-component] .text-info,
[data-cv-page] .mud-alert-message,
[data-cv-page] .text-danger,
[data-cv-page] .text-success,
[data-cv-page] .text-warning,
[data-cv-page] .text-info,
.cv-page-container .text-danger,
.cv-page-container .text-success,
.cv-page-container .text-warning,
.cv-page-container .text-info {
    color: inherit !important;
}*/

/* Tooltips */
/*[data-cv-component] .mud-tooltip *,
[data-cv-page] .mud-tooltip *,
.cv-page-container .mud-tooltip * {
    color: white !important;
}*/

/* Progress indicators */
/*[data-cv-component] .mud-progress-circular *,
[data-cv-page] .mud-progress-circular *,
.cv-page-container .mud-progress-circular * {
    color: inherit !important;
}*/

/* Icon buttons with colors */
/*[data-cv-component] .mud-icon-button-color-primary .mud-icon-root,
[data-cv-component] .mud-icon-button-color-error .mud-icon-root,
[data-cv-component] .mud-icon-button-color-success .mud-icon-root,
[data-cv-page] .mud-icon-button-color-primary .mud-icon-root,
[data-cv-page] .mud-icon-button-color-error .mud-icon-root,
[data-cv-page] .mud-icon-button-color-success .mud-icon-root,
.cv-page-container .mud-icon-button-color-primary .mud-icon-root,
.cv-page-container .mud-icon-button-color-error .mud-icon-root,
.cv-page-container .mud-icon-button-color-success .mud-icon-root {
    color: inherit !important;
}*/

/* Badges */
/*[data-cv-component] .mud-badge-dot,
[data-cv-component] .mud-badge-content,
[data-cv-page] .mud-badge-dot,
[data-cv-page] .mud-badge-content,
.cv-page-container .mud-badge-dot,
.cv-page-container .mud-badge-content {
    color: white !important;
}*/

/* Chips with colors */
/*[data-cv-component] .mud-chip-color-primary,
[data-cv-component] .mud-chip-color-secondary,
[data-cv-component] .mud-chip-color-error,
[data-cv-page] .mud-chip-color-primary,
[data-cv-page] .mud-chip-color-secondary,
[data-cv-page] .mud-chip-color-error,
.cv-page-container .mud-chip-color-primary,
.cv-page-container .mud-chip-color-secondary,
.cv-page-container .mud-chip-color-error {
    color: white !important;
}*/

/* Placeholder text */
/*[data-cv-component] .mud-input-root input::placeholder,
[data-cv-component] .mud-input-root textarea::placeholder,
[data-cv-page] .mud-input-root input::placeholder,
[data-cv-page] .mud-input-root textarea::placeholder,
.cv-page-container .mud-input-root input::placeholder,
.cv-page-container .mud-input-root textarea::placeholder {
    color: var(--cv-placeholder-color) !important;
}*/

/* Secondary text */
/*[data-cv-component] .mud-typography-color-text-secondary,
[data-cv-page] .mud-typography-color-text-secondary,
.cv-page-container .mud-typography-color-text-secondary {
    color: var(--cv-secondary-text-color) !important;
}*/

/* Ensure headings use the correct color */
/*[data-cv-component] h1, [data-cv-component] h2, [data-cv-component] h3,
[data-cv-component] h4, [data-cv-component] h5, [data-cv-component] h6,
[data-cv-page] h1, [data-cv-page] h2, [data-cv-page] h3,
[data-cv-page] h4, [data-cv-page] h5, [data-cv-page] h6,
.cv-page-container h1, .cv-page-container h2, .cv-page-container h3,
.cv-page-container h4, .cv-page-container h5, .cv-page-container h6 {
    color: var(--cv-primary-text-color) !important;
}*/

/* تأكيد تطبيق اللون على جميع عناصر النص */
/*[data-cv-component] p,
[data-cv-component] span,
[data-cv-component] div,
[data-cv-component] label,
[data-cv-component] td,
[data-cv-component] th,
[data-cv-page] p,
[data-cv-page] span,
[data-cv-page] div,
[data-cv-page] label,
[data-cv-page] td,
[data-cv-page] th,
.cv-page-container p,
.cv-page-container span,
.cv-page-container div,
.cv-page-container label,
.cv-page-container td,
.cv-page-container th {
    color: var(--cv-primary-text-color) !important;
}*/

/* تطبيق اللون على عناصر الإدخال */
/*[data-cv-component] input,
[data-cv-component] textarea,
[data-cv-component] select,
[data-cv-page] input,
[data-cv-page] textarea,
[data-cv-page] select,
.cv-page-container input,
.cv-page-container textarea,
.cv-page-container select {
    color: var(--cv-primary-text-color) !important;
}*/

/* تطبيق اللون على الروابط */
/*[data-cv-component] a:not(.mud-button),
[data-cv-page] a:not(.mud-button),
.cv-page-container a:not(.mud-button) {
    color: var(--cv-primary-text-color) !important;
}

    [data-cv-component] a:not(.mud-button):hover,
    [data-cv-page] a:not(.mud-button):hover,
    .cv-page-container a:not(.mud-button):hover {
        color: var(--mud-palette-primary) !important;
    }*/
