﻿/* Cairo Font Family */
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Cairo';
    src: url('/Fonts/Cairo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* Application Base */
html, body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: #ffffff;
    color-scheme: light;
}
button, input, select, textarea {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}
a, .btn-link {
    color: #db2777;
}
.btn-primary {
    color: #fff;
    background: #db2777;
    border-color: #db2777;
}
.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 rgba(219, 39, 119, 0.25);
}
.content {
    padding-top: 1.1rem;
}
h1:focus {
    outline: none;
}
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}
.invalid {
    outline: 1px solid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MTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}
/* Force light scheme for native form controls (select, input, textarea) */
input:not([type=button]):not([type=submit]):not([type=reset]):not([type=checkbox]):not([type=radio]),
textarea,
select,
select option {
    color: #1e293b !important;
    background-color: #ffffff !important;
    color-scheme: light;
}
input::placeholder,
textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}
select option {
    padding: 8px 12px;
}
/* Firefox-specific fix for form controls */
@-moz-document url-prefix() {
    input:not([type=button]):not([type=submit]):not([type=reset]):not([type=checkbox]):not([type=radio]),
    textarea,
    select,
    select option {
        color: #1e293b !important;
        background-color: #ffffff !important;
    }
}
/* Icons */.app-icon {
    display: inline-block;
    vertical-align: -0.18em;
    object-fit: contain;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-drag: none;
}
h1 .app-icon,
h2 .app-icon,
h3 .app-icon {
    margin-inline-end: 7px;
}
.nav-item .nav-icon .app-icon {
    vertical-align: middle;
}
button .app-icon,
.btn-primary .app-icon,
.btn-secondary .app-icon {
    vertical-align: -0.2em;
    margin-inline-end: 4px;
}
/* أيقونة نسبية تتبع حجم الخط المحيط */
.app-icon-inline {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
}
.table-wrap,
.table-container,
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 1024px) {
    .range-tabs,
    .filter-tabs,
    .tabs,
    .settings-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 4px !important;
        max-width: 100% !important;
    }
    .range-tabs::-webkit-scrollbar,
    .filter-tabs::-webkit-scrollbar,
    .tabs::-webkit-scrollbar,
    .settings-tabs::-webkit-scrollbar {
        display: none !important;
    }
    .range-btn,
    .filter-btn,
    .tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}
@media (min-width: 641px) and (max-width: 1024px) {
    .content-area {
        padding: 16px 20px !important;
    }
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 14px !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    .modal-box,
    .modal-content,
    .action-modal-box {
        width: 85vw !important;
        max-width: 600px !important;
    }
}
@media (max-width: 640px) {
    .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .header-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .header-actions > * {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .form-actions {
        flex-direction: column !important;
        padding: 14px 16px !important;
    }
    .form-actions button,
    .form-actions a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .modal-overlay {
        padding: 8px !important;
    }
    .modal-box,
    .modal-content,
    .action-modal-box {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 8px auto !important;
    }
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ==========================================================================
   THEME: Women's Health Clinic - Complete Medical Pink Theme
   ========================================================================== */
:root {
    --primary-pink: #db2777;
    --primary-pink-dark: #be185d;
    --primary-pink-light: #fdf2f8;
    --primary-pink-border: #fbcfe8;
    --primary-pink-hover: #9d174d;
    --bs-primary: #db2777;
    --bs-primary-rgb: 219, 39, 119;
}
/* 1. Icons - Pure Pink by Default, White in Buttons/Sidebar */
.app-icon {
    display: inline-block;
    vertical-align: -0.18em;
    flex-shrink: 0;
    color: #db2777;
    fill: currentColor;
    transition: color 0.15s ease, transform 0.15s ease;
}
.app-icon-inline {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.18em;
}
.btn-primary .app-icon,
.badge-primary .app-icon,
.sidebar .app-icon,
.nav-item .app-icon,
.btn-danger .app-icon {
    color: #ffffff !important;
}
/* 2. Global Buttons */
.btn-primary {
    background-color: #db2777 !important;
    border-color: #db2777 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.25) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #be185d !important;
    border-color: #be185d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(190, 24, 93, 0.35) !important;
}
.btn-outline-primary {
    color: #db2777 !important;
    border-color: #db2777 !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover {
    background-color: #db2777 !important;
    color: #ffffff !important;
}
/* 3. Links and Accents */
a, .btn-link, .text-primary {
    color: #db2777 !important;
}
a:hover, .btn-link:hover {
    color: #be185d !important;
}
.bg-primary {
    background-color: #db2777 !important;
}
.border-primary {
    border-color: #db2777 !important;
}
/* 4. Form Controls & Focus */
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
    border-color: #db2777 !important;
    box-shadow: 0 0 0 0.25rem rgba(219, 39, 119, 0.22) !important;
}
/* 5. Cards and Headers */
.card-header {
    background-color: #fdf2f8 !important;
    border-bottom: 1px solid #fbcfe8 !important;
    color: #831843 !important;
    font-weight: 700 !important;
}
/* 6. Tables */
.table thead th, .table th {
    background-color: #fdf2f8 !important;
    color: #831843 !important;
    border-bottom: 2px solid #fbcfe8 !important;
}
.table tbody tr:hover {
    background-color: #fdf2f860 !important;
}
/* 7. Badges */
.badge.bg-primary, .badge-primary {
    background-color: #db2777 !important;
    color: #ffffff !important;
}
/* 8. Tabs & Filter Buttons */
.tab.active, .range-btn.active, .filter-btn.active, .nav-pills .nav-link.active {
    background: #db2777 !important;
    color: #ffffff !important;
    border-color: #db2777 !important;
}
.tab:hover, .range-btn:hover, .filter-btn:hover {
    color: #be185d !important;
    border-color: #fbcfe8 !important;
}
/* 9. Pagination */
.pagination .page-item.active .page-link {
    background-color: #db2777 !important;
    border-color: #db2777 !important;
    color: #ffffff !important;
}
.pagination .page-link {
    color: #db2777 !important;
}
/* Sidebar navigation links and labels - Matching Dentist v2 exactly */
.sidebar a:not(.logout),
.sidebar .nav-item:not(.logout) {
    color: #ffffff !important;
}

.sidebar .nav-label {
    background: transparent !important;
}

.sidebar .nav-item:not(.logout):hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.sidebar .nav-item:not(.logout):hover .nav-label {
    background: transparent !important;
}

.sidebar .nav-item.active {
    background: rgba(0, 0, 0, 0.22) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

.sidebar .nav-item.active .nav-label {
    background: transparent !important;
}

.sidebar .nav-item.active::before {
    display: none !important;
}
/* Sidebar Logout button: crisp white button with bold crimson text & icon */
.sidebar .nav-item.logout {
    margin-top: 14px !important;
    background: #ffffff !important;
    border: 1.5px solid #fecaca !important;
    color: #b91c1c !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.sidebar .nav-item.logout .nav-label,
.sidebar .nav-item.logout .app-icon,
.sidebar .nav-item.logout .nav-icon {
    color: #b91c1c !important;
    font-weight: 700 !important;
}
.sidebar .nav-item.logout:hover {
    background: #fee2e2 !important;
    border-color: #f87171 !important;
    color: #991b1b !important;
    transform: translateX(-4px) !important;
}
.sidebar .nav-item.logout:hover .nav-label,
.sidebar .nav-item.logout:hover .app-icon,
.sidebar .nav-item.logout:hover .nav-icon {
    color: #991b1b !important;
}
/* Reset any default white/browser focus outlines on buttons */
button:focus, button:focus-visible,
.btn:focus, .btn:focus-visible {
    outline: none !important;
}
