/**
 * تصميم مخصص لمستشفى الحياة
 * Custom Styles for Hayat Hospital
 * 
 * نظام الألوان - Turquoise Color Scheme:
 * Primary: #1cb4be (Turquoise)
 * Secondary: #0891a0 (Dark Turquoise)
 * Light: #6ddbe3 (Light Turquoise)
 * Accent: #00d4d4 (Bright Turquoise)
 */

:root {
    --primary-color: #1cb4be;
    --primary-dark: #0891a0;
    --primary-light: #6ddbe3;
    --primary-accent: #00d4d4;
    --primary-gradient: linear-gradient(135deg, #1cb4be 0%, #0891a0 100%);
    --primary-gradient-reverse: linear-gradient(135deg, #0891a0 0%, #1cb4be 100%);
    --primary-gradient-light: linear-gradient(135deg, #6ddbe3 0%, #1cb4be 100%);
    --shadow-color: rgba(28, 180, 190, 0.2);
    --shadow-hover: rgba(28, 180, 190, 0.3);
}

/* ===== Navbar Enhancements ===== */
.navbar {
    transition: all 0.3s ease;
    z-index: 1000;
    background: linear-gradient(135deg, #065a63 0%, #0891a0 100%) !important;
    box-shadow: 0 3px 15px rgba(6, 90, 99, 0.4);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #d1f5f7 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #6ddbe3 0%, #e0f7f9 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e0f7f9 !important;
}

.navbar-nav .nav-link i {
    margin-right: 6px;
    font-size: 18px;
    vertical-align: middle;
}

/* Dropdown Improvements */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    margin-top: 12px;
    padding: 8px 0;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-gradient-light);
    color: white;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

.dropdown-item i {
    margin-right: 10px;
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.dropdown-header {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
}

.dropdown-divider {
    margin: 8px 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 8px 25px rgba(6, 90, 99, 0.5);
        animation: slideDown 0.3s ease;
        border: 2px solid rgba(109, 219, 227, 0.2);
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav {
        margin-bottom: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 14px 18px;
        margin: 4px 0;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.3);
        margin-top: 8px;
    }
    
    .navbar-brand span {
        font-size: 17px !important;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.6rem 0;
    }
    
    .navbar-brand img {
        height: 38px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .navbar-nav .nav-link i {
        font-size: 17px;
    }
}

/* ===== Hero Section ===== */
.slider {
    position: relative;
    overflow: hidden;
}

.slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.75) 0%, rgba(8, 145, 160, 0.85) 100%);
    z-index: 1;
}

.slider .container {
    position: relative;
    z-index: 2;
}

.slider_text .title {
    animation: fadeInUp 0.8s ease;
}

.slider_text .sub-title {
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Form Enhancements ===== */
.slider_form {
    animation: fadeInUp 1.2s ease;
}

.form-control,
select.form-control {
    transition: all 0.3s ease;
}

.form-control:focus,
select.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--shadow-color);
    transform: translateY(-2px);
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-gradient-reverse);
}

.btn-info {
    background: var(--primary-gradient-light);
    border: none;
    color: white;
}

.btn-info:hover {
    background: var(--primary-gradient);
    color: white;
}

/* ===== Cards & Sections ===== */
.service-box,
.team-box,
.blog-box {
    transition: all 0.3s ease;
}

.service-box:hover,
.team-box:hover,
.blog-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ===== Alerts ===== */
.alert {
    border-radius: 10px;
    border: none;
    padding: 16px 20px;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
}

/* ===== RTL Support ===== */
[dir="rtl"] .navbar-nav .nav-link i {
    margin-right: 0;
    margin-left: 6px;
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .dropdown-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .navbar-brand img {
    margin-right: 0;
    margin-left: 12px;
}

/* ===== Loading Animation ===== */
.page-loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Accessibility ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid #1cb4be;
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .footer,
    .btn {
        display: none;
    }
}

/* ===== Enhanced Alerts & Notifications ===== */
.alert {
    position: relative;
    animation: slideInRight 0.5s ease;
}

.alert i {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
    color: #0c5460;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

/* Fixed Position Notifications */
.alert-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 350px;
    max-width: 500px;
    animation: slideInRight 0.5s ease;
}

[dir="rtl"] .alert-fixed {
    right: auto;
    left: 20px;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Spinner Animation */
.zmdi-hc-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 20px 25px;
}

/* Form Enhancements in Modals */
.modal .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.modal .form-control:focus {
    border-color: #1cb4be;
    box-shadow: 0 0 0 0.2rem rgba(28, 180, 190, 0.15);
}

.modal .form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Responsive Alerts */
@media (max-width: 576px) {
    .alert-fixed {
        min-width: auto;
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
    
    .alert {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .alert i {
        font-size: 18px;
    }
}

/* ===== Enhanced Alert Colors (Turquoise Theme) ===== */
.alert-success {
    background: linear-gradient(135deg, #d1f5f7 0%, #b8eef1 100%);
    border: 2px solid var(--primary-color);
    color: #0a5f66;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.alert-danger {
    background: linear-gradient(135deg, #ffe5e8 0%, #ffd4d9 100%);
    border: 2px solid #ff6b7a;
    color: #8b1e2b;
    box-shadow: 0 4px 15px rgba(255, 107, 122, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, #e0f7f9 0%, #c7f0f3 100%);
    border: 2px solid var(--primary-light);
    color: #0a5f66;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 2px solid #ffa726;
    color: #8b5e00;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.2);
}

/* ===== Accessibility (Turquoise) ===== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== Enhanced Cards & Boxes ===== */
.service-box:hover,
.team-box:hover,
.blog-box:hover {
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--primary-light);
}

/* ===== Links (Turquoise) ===== */
a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* ===== Badges (Turquoise) ===== */
.badge-primary {
    background: var(--primary-gradient);
}

.badge-info {
    background: var(--primary-gradient-light);
}

.badge-success {
    background: linear-gradient(135deg, #1cb4be 0%, #6ddbe3 100%);
}

/* ===== Progress Bars (Turquoise) ===== */
.progress-bar {
    background: var(--primary-gradient);
}

/* ===== Custom Scrollbar (Turquoise) ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gradient-reverse);
}

/* ===== Section Titles (Turquoise) ===== */
.section-title h2 {
    color: var(--primary-dark);
}

.section-title h2::after {
    background: var(--primary-gradient);
}

/* ===== Fun Facts (Turquoise) ===== */
.fun-fact-box i {
    color: var(--primary-color);
}

.fun-fact-box .counter {
    color: var(--primary-dark);
}

/* ===== Team Section (Turquoise) ===== */
.team-box:hover {
    border-color: var(--primary-light);
}

.team-box .doctor-info h4 {
    color: var(--primary-dark);
}

.team-box .doctor-info ul li a:hover {
    background: var(--primary-color);
}

/* ===== Service Box (Turquoise) ===== */
.service-box .service-icon {
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.1) 0%, rgba(109, 219, 227, 0.1) 100%);
}

.service-box:hover .service-icon {
    background: var(--primary-gradient);
}

.service-box .service-name {
    color: var(--primary-dark);
}

/* ===== Footer (Turquoise) ===== */
footer .fcard h5 {
    color: var(--primary-color);
}

footer .fcard a:hover {
    color: var(--primary-light);
}

/* ===== Loading Screen (Turquoise) ===== */
.page-loader-wrapper .loader img {
    filter: hue-rotate(180deg) saturate(1.5);
}

/* ===== Form Focus States (Turquoise) ===== */
.modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--shadow-color);
}

/* ===== Hover Effects (Turquoise) ===== */
.btn-simple:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== Text Colors (Turquoise) ===== */
.text-primary {
    color: var(--primary-color) !important;
}

.text-turquoise {
    color: var(--primary-color);
}

.bg-turquoise {
    background: var(--primary-gradient);
}

.bg-turquoise-light {
    background: var(--primary-gradient-light);
}

/* ===== Border Colors (Turquoise) ===== */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-turquoise {
    border-color: var(--primary-color);
}

/* ===== Appointment Item (Turquoise) ===== */
.appointment-item:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(28, 180, 190, 0.05) 0%, rgba(109, 219, 227, 0.05) 100%);
}

.appointment-item h5 {
    color: var(--primary-dark);
}

/* ===== Status Badges (Turquoise Theme) ===== */
.status-confirmed {
    background: linear-gradient(135deg, #d1f5f7 0%, #b8eef1 100%);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

.status-pending {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #8b5e00;
    border: 1px solid #ffa726;
}

/* ===== Dashboard Cards (Turquoise) ===== */
.dashboard-card h3 {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-light);
}

.stat-box {
    background: var(--primary-gradient);
}

/* ===== Quick Action Buttons (Turquoise) ===== */
.quick-action-btn.btn-book {
    background: var(--primary-gradient);
}

.quick-action-btn.btn-book:hover {
    background: var(--primary-gradient-reverse);
}

.quick-action-btn.btn-contact {
    background: var(--primary-gradient-light);
}

.quick-action-btn.btn-contact:hover {
    background: var(--primary-gradient);
}

.quick-action-btn.btn-history {
    background: linear-gradient(135deg, #0891a0 0%, #065a63 100%);
}

.quick-action-btn.btn-history:hover {
    background: var(--primary-gradient);
}

/* ===== Unified Footer Enhancements ===== */
.unified-footer {
    
    background: #065a63 !important;
        color: #d1f5f7 !important;
    position: relative;
    z-index: 100;
}

/* Footer Animation on Scroll */
.unified-footer.visible {
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Hover Effects */
.footer-logo:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.footer-logo:hover i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Footer Text Glow Effect */
.footer-text strong {
    text-shadow: 0 0 10px rgba(109, 219, 227, 0.3);
}

/* Footer Links Ripple Effect */
.footer-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(109, 219, 227, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.footer-links a:hover::before {
    width: 100%;
    height: 100%;
}

/* Sticky Footer for Short Pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content,
.container {
    flex: 1;
}

/* Footer Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.unified-footer::before {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Print Styles for Footer */
@media print {
    .unified-footer {
        background: #065a63 !important;
        color: #d1f5f7 !important;
        page-break-after: avoid;
    }
    
    .footer-links {
        display: none;
    }
}

/* ===== Enhanced Navbar Dark Turquoise Theme ===== */
.navbar-brand {
    color: #e0f7f9 !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: #ffffff !important;
    transform: scale(1.02);
}

.navbar-brand img {
    filter: brightness(1.1);
}

.navbar-toggler {
    border-color: rgba(109, 219, 227, 0.3);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(109, 219, 227, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(224, 247, 249, 0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown Menu Enhancements */
.dropdown-menu {
    background: white;
    border: 2px solid rgba(109, 219, 227, 0.2);
}

.dropdown-item {
    color: #333;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: linear-gradient(135deg, #6ddbe3 0%, #1cb4be 100%);
    color: white;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
    color: #e0f7f9;
}

.dropdown-header {
    color: #065a63;
    font-weight: 600;
}

.dropdown-divider {
    border-top-color: rgba(28, 180, 190, 0.2);
}

/* Navbar Sticky Effect */
.navbar.scrolled {
    background: linear-gradient(135deg, #054952 0%, #076e7a 100%);
    box-shadow: 0 4px 25px rgba(6, 90, 99, 0.6);
}

/* User Dropdown Badge */
.navbar-nav .dropdown-toggle {
    position: relative;
}

.navbar-nav .dropdown-toggle::after {
    border-top-color: #d1f5f7;
}

/* Mobile Navbar Enhancements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
        border: 2px solid rgba(109, 219, 227, 0.2);
    }
    
    .navbar-nav .nav-link {
        color: #d1f5f7 !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(109, 219, 227, 0.2);
        color: #e0f7f9 !important;
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Navbar Animation on Load */
@keyframes navbarSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: navbarSlideDown 0.5s ease;
}

/* Active Link Indicator */
.navbar-nav .nav-link.active {
    background: rgba(109, 219, 227, 0.15);
    color: #e0f7f9 !important;
    font-weight: 600;
}

/* Navbar Shadow on Scroll */
.navbar.shadow-lg {
    box-shadow: 0 5px 30px rgba(6, 90, 99, 0.5) !important;
}

/* ===== Logo Enhancements ===== */
.navbar-brand img,
.footer-logo img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05) rotate(2deg);
    filter: brightness(1.4) !important;
}

.footer-logo:hover img {
    transform: scale(1.08);
    filter: brightness(1.5) !important;
}

/* Logo Animation on Load */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.navbar-brand img,
.footer-logo img {
    animation: logoFadeIn 0.6s ease;
}

/* Logo Glow Effect */
.navbar-brand img {
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(109, 219, 227, 0.3));
}

.footer-logo img {
    filter: brightness(1.3) drop-shadow(0 0 10px rgba(109, 219, 227, 0.4));
}

/* Login Page Logo */
.login-card img {
    animation: logoFadeIn 0.8s ease;
    filter: drop-shadow(0 5px 15px rgba(28, 180, 190, 0.3));
    transition: all 0.3s ease;
}

.login-card img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(28, 180, 190, 0.5));
}

/* Responsive Logo Sizes */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 35px !important;
    }
    
    .footer-logo img {
        height: 40px !important;
    }
    
    .login-card img {
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand img {
        height: 30px !important;
    }
    
    .footer-logo img {
        height: 35px !important;
    }
    
    .login-card img {
        height: 50px !important;
    }
}

/* Logo in Hero Section */
.slider .navbar-brand img {
    filter: brightness(1.3) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Print Styles for Logo */
@media print {
    .navbar-brand img,
    .footer-logo img {
        filter: none !important;
    }
}

/* ===== Force Unified Navbar Size ===== */
.navbar.navbar-expand-lg {
    padding: 0.8rem 0 !important;
}

.navbar-brand img {
    height: 45px !important;
}

.navbar-brand span {
    font-size: 19px !important;
}

/* Override any conflicting styles */
.wrapper .navbar {
    padding: 0.8rem 0 !important;
}

body .navbar {
    padding: 0.8rem 0 !important;
}

/* ===== تقليل حجم النصوص لتتناسب مع الفورم والواجهات ===== */
/* Reduce Text Sizes for Better Form Proportions */

/* Base Font Size Reduction */
body {
    font-size: 13px !important;
}

/* Headings Size Reduction */
h1 {
    font-size: 1.5rem !important;
}

h2 {
    font-size: 1.35rem !important;
}

h3 {
    font-size: 1.2rem !important;
}

h4 {
    font-size: 1.1rem !important;
}

h5 {
    font-size: 1rem !important;
}

h6 {
    font-size: 0.95rem !important;
}

/* Form Elements */
.form-control,
select.form-control,
textarea.form-control,
input.form-control {
    font-size: 13px !important;
    padding: 7px 10px !important;
}

.form-group label {
    font-size: 13px !important;
    margin-bottom: 5px !important;
}

/* Buttons */
.btn {
    font-size: 13px !important;
    padding: 7px 14px !important;
}

.btn-lg {
    font-size: 14px !important;
    padding: 9px 18px !important;
}

.btn-sm {
    font-size: 12px !important;
    padding: 5px 10px !important;
}

/* Navbar Links */
.navbar-nav .nav-link {
    font-size: 13px !important;
}

.navbar-nav .nav-link i {
    font-size: 15px !important;
}

/* Dropdown Items */
.dropdown-item {
    font-size: 13px !important;
    padding: 8px 14px !important;
}

.dropdown-item i {
    font-size: 15px !important;
}

.dropdown-header {
    font-size: 12px !important;
}

/* Cards and Boxes */
.card-title {
    font-size: 1.1rem !important;
}

.card-text,
.card-body p {
    font-size: 13px !important;
}

/* Tables */
table {
    font-size: 13px !important;
}

th {
    font-size: 13px !important;
}

td {
    font-size: 12px !important;
}

/* Alerts */
.alert {
    font-size: 13px !important;
    padding: 10px 14px !important;
}

.alert i {
    font-size: 16px !important;
}

/* Modals */
.modal-title {
    font-size: 1.2rem !important;
}

.modal-body {
    font-size: 13px !important;
}

/* Footer */
.unified-footer {
    background: #065a63 !important;
        color: #d1f5f7 !important;
    font-size: 12px !important;
}

.footer-text {
    font-size: 12px !important;
}

/* Hero Section */
.slider_text .title {
    font-size: 1.7rem !important;
}

.slider_text .sub-title {
    font-size: 1rem !important;
}

/* Service Boxes */
.service-box h4 {
    font-size: 1.1rem !important;
}

.service-box p {
    font-size: 13px !important;
}

/* Team Boxes */
.team-box h4 {
    font-size: 1.1rem !important;
}

.team-box p {
    font-size: 12px !important;
}

/* Blog Boxes */
.blog-box h4 {
    font-size: 1.1rem !important;
}

.blog-box p {
    font-size: 13px !important;
}

/* Paragraphs */
p {
    font-size: 13px !important;
    line-height: 1.6 !important;
}

/* Lists */
ul li,
ol li {
    font-size: 13px !important;
}

/* Badges */
.badge {
    font-size: 11px !important;
    padding: 3px 7px !important;
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 12px !important;
}

/* Pagination */
.pagination {
    font-size: 13px !important;
}

/* Input Groups */
.input-group-text {
    font-size: 13px !important;
}

/* Responsive Text Sizes */
@media (max-width: 768px) {
    body {
        font-size: 12px !important;
    }
    
    h1 {
        font-size: 1.4rem !important;
    }
    
    h2 {
        font-size: 1.25rem !important;
    }
    
    h3 {
        font-size: 1.1rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
    
    .slider_text .title {
        font-size: 1.5rem !important;
    }
    
    .slider_text .sub-title {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 11px !important;
    }
    
    h1 {
        font-size: 1.3rem !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
    }
    
    h3 {
        font-size: 1rem !important;
    }
    
    .form-control {
        font-size: 12px !important;
    }
    
    .btn {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .slider_text .title {
        font-size: 1.3rem !important;
    }
}

/* ===== تقليل أحجام النصوص لجميع الصفحات ===== */
/* Additional Text Size Reductions for All Pages */

/* Dashboard & Admin Pages */
.dashboard-card,
.stat-card,
.info-card {
    font-size: 13px !important;
}

.dashboard-card h3,
.dashboard-card h4 {
    font-size: 1.1rem !important;
}

.stat-box h2,
.stat-box .counter {
    font-size: 1.4rem !important;
}

.stat-box p,
.stat-box span {
    font-size: 12px !important;
}

/* Appointment Cards */
.appointment-item,
.appointment-card {
    font-size: 13px !important;
}

.appointment-item h5,
.appointment-card h5 {
    font-size: 1rem !important;
}

.appointment-item p,
.appointment-card p {
    font-size: 12px !important;
}

/* Doctor Cards */
.doctor-card,
.doctor-info {
    font-size: 13px !important;
}

.doctor-card h4,
.doctor-info h4 {
    font-size: 1.1rem !important;
}

.doctor-card p,
.doctor-info p {
    font-size: 12px !important;
}

/* Department Cards */
.department-card,
.department-box {
    font-size: 13px !important;
}

.department-card h3,
.department-box h3 {
    font-size: 1.15rem !important;
}

/* News & Events */
.news-item,
.event-item,
.blog-item {
    font-size: 13px !important;
}

.news-item h4,
.event-item h4,
.blog-item h4 {
    font-size: 1.1rem !important;
}

.news-item p,
.event-item p,
.blog-item p {
    font-size: 12px !important;
}

.news-date,
.event-date {
    font-size: 11px !important;
}

/* Gallery */
.gallery-item,
.gallery-caption {
    font-size: 12px !important;
}

.gallery-title {
    font-size: 1rem !important;
}

/* Contact Page */
.contact-info,
.contact-details {
    font-size: 13px !important;
}

.contact-info h4,
.contact-details h4 {
    font-size: 1.1rem !important;
}

.contact-info p,
.contact-details p {
    font-size: 12px !important;
}

/* About Page */
.about-section,
.about-content {
    font-size: 13px !important;
}

.about-section h2,
.about-content h2 {
    font-size: 1.35rem !important;
}

.about-section h3,
.about-content h3 {
    font-size: 1.15rem !important;
}

/* Services Page */
.service-item,
.service-detail {
    font-size: 13px !important;
}

.service-item h3,
.service-detail h3 {
    font-size: 1.15rem !important;
}

.service-item p,
.service-detail p {
    font-size: 12px !important;
}

/* Profile Page */
.profile-card,
.profile-info {
    font-size: 13px !important;
}

.profile-card h3,
.profile-info h3 {
    font-size: 1.15rem !important;
}

.profile-card label,
.profile-info label {
    font-size: 12px !important;
}

/* Login & Auth Pages */
.login-card,
.auth-card {
    font-size: 13px !important;
}

.login-card h2,
.auth-card h2 {
    font-size: 1.35rem !important;
}

.login-card h3,
.auth-card h3 {
    font-size: 1.15rem !important;
}

.login-card label,
.auth-card label {
    font-size: 13px !important;
}

.login-card .form-control,
.auth-card .form-control {
    font-size: 13px !important;
}

/* Breadcrumb */
.breadcrumb-item {
    font-size: 12px !important;
}

.breadcrumb-item a {
    font-size: 12px !important;
}

/* Page Titles */
.page-title,
.section-title h2 {
    font-size: 1.4rem !important;
}

.page-subtitle,
.section-subtitle {
    font-size: 1rem !important;
}

/* Info Boxes */
.info-box,
.alert-box {
    font-size: 13px !important;
}

.info-box h4,
.alert-box h4 {
    font-size: 1.05rem !important;
}

/* List Groups */
.list-group-item {
    font-size: 13px !important;
}

.list-group-item h5 {
    font-size: 1rem !important;
}

.list-group-item p {
    font-size: 12px !important;
}

/* Tabs */
.nav-tabs .nav-link,
.nav-pills .nav-link {
    font-size: 13px !important;
}

.tab-content {
    font-size: 13px !important;
}

/* Tooltips & Popovers */
.tooltip,
.popover {
    font-size: 12px !important;
}

.tooltip-inner,
.popover-body {
    font-size: 12px !important;
}

/* Small Text */
small,
.small {
    font-size: 11px !important;
}

/* Text Muted */
.text-muted {
    font-size: 12px !important;
}

/* Help Text */
.form-text,
.help-block {
    font-size: 11px !important;
}

/* Labels & Spans */
label {
    font-size: 13px !important;
}

span {
    font-size: inherit !important;
}

/* Links */
a {
    font-size: inherit !important;
}

/* Strong & Bold */
strong,
b {
    font-size: inherit !important;
}

/* Emphasis */
em,
i {
    font-size: inherit !important;
}

/* Code & Pre */
code {
    font-size: 12px !important;
}

pre {
    font-size: 12px !important;
}

/* Blockquote */
blockquote {
    font-size: 13px !important;
}

/* Description Lists */
dl,
dt,
dd {
    font-size: 13px !important;
}

/* Figure Caption */
figcaption {
    font-size: 12px !important;
}

/* Legend */
legend {
    font-size: 1.1rem !important;
}

/* Fieldset */
fieldset {
    font-size: 13px !important;
}

/* Select Options */
option {
    font-size: 13px !important;
}

/* Textarea */
textarea {
    font-size: 13px !important;
}

/* Search Box */
.search-box,
.search-form {
    font-size: 13px !important;
}

.search-box input,
.search-form input {
    font-size: 13px !important;
}

/* Filter Box */
.filter-box,
.filter-form {
    font-size: 13px !important;
}

/* Sidebar */
.sidebar,
.sidebar-content {
    font-size: 13px !important;
}

.sidebar h4,
.sidebar-content h4 {
    font-size: 1.1rem !important;
}

/* Widget */
.widget,
.widget-content {
    font-size: 13px !important;
}

.widget-title {
    font-size: 1.1rem !important;
}

/* Timeline */
.timeline,
.timeline-item {
    font-size: 13px !important;
}

.timeline-title {
    font-size: 1rem !important;
}

/* Progress */
.progress {
    font-size: 12px !important;
}

/* Jumbotron */
.jumbotron {
    font-size: 13px !important;
}

.jumbotron h1 {
    font-size: 1.8rem !important;
}

.jumbotron p {
    font-size: 13px !important;
}

/* Well */
.well {
    font-size: 13px !important;
}

/* Panel */
.panel,
.panel-body {
    font-size: 13px !important;
}

.panel-title {
    font-size: 1.1rem !important;
}

/* Media Object */
.media,
.media-body {
    font-size: 13px !important;
}

.media-heading {
    font-size: 1.1rem !important;
}

/* Carousel */
.carousel-caption {
    font-size: 13px !important;
}

.carousel-caption h3 {
    font-size: 1.2rem !important;
}

/* Accordion */
.accordion,
.accordion-item {
    font-size: 13px !important;
}

.accordion-header {
    font-size: 1rem !important;
}

.accordion-button {
    font-size: 13px !important;
}

/* Offcanvas */
.offcanvas,
.offcanvas-body {
    font-size: 13px !important;
}

.offcanvas-title {
    font-size: 1.2rem !important;
}

/* Toast */
.toast,
.toast-body {
    font-size: 13px !important;
}

.toast-header {
    font-size: 13px !important;
}

/* Spinner Text */
.spinner-text {
    font-size: 12px !important;
}

/* Loading Text */
.loading-text {
    font-size: 12px !important;
}

/* Error Messages */
.error-message,
.invalid-feedback {
    font-size: 12px !important;
}

.valid-feedback {
    font-size: 12px !important;
}

/* Success Messages */
.success-message {
    font-size: 12px !important;
}

/* Warning Messages */
.warning-message {
    font-size: 12px !important;
}

/* Info Messages */
.info-message {
    font-size: 12px !important;
}

/* Status Text */
.status-text,
.status-badge {
    font-size: 11px !important;
}

/* Price Text */
.price,
.amount {
    font-size: 13px !important;
}

/* Date Text */
.date,
.time {
    font-size: 12px !important;
}

/* Author Text */
.author,
.by-line {
    font-size: 12px !important;
}

/* Meta Text */
.meta,
.metadata {
    font-size: 11px !important;
}

/* Caption */
.caption {
    font-size: 12px !important;
}

/* Description */
.description {
    font-size: 13px !important;
}

/* Summary */
.summary {
    font-size: 13px !important;
}

/* Excerpt */
.excerpt {
    font-size: 12px !important;
}

/* Read More */
.read-more {
    font-size: 12px !important;
}

/* View All */
.view-all {
    font-size: 12px !important;
}

/* Show More */
.show-more {
    font-size: 12px !important;
}

/* Load More */
.load-more {
    font-size: 12px !important;
}

/* Back to Top */
.back-to-top {
    font-size: 12px !important;
}

/* Social Links */
.social-links,
.social-icons {
    font-size: 14px !important;
}

/* Copyright */
.copyright {
    font-size: 11px !important;
}

/* Terms & Privacy */
.terms,
.privacy {
    font-size: 11px !important;
}

/* Responsive Adjustments for All Elements */
@media (max-width: 768px) {
    .dashboard-card h3,
    .stat-box h2,
    .page-title {
        font-size: 1.2rem !important;
    }
    
    .appointment-item h5,
    .doctor-card h4,
    .service-item h3 {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .dashboard-card h3,
    .stat-box h2,
    .page-title {
        font-size: 1.1rem !important;
    }
    
    .appointment-item h5,
    .doctor-card h4,
    .service-item h3 {
        font-size: 0.95rem !important;
    }
    
    .stat-box .counter {
        font-size: 1.2rem !important;
    }
}

/* ===== Department Cards ===== */
.department-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.department-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0891a0 0%, #1cb4be 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.department-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(8, 145, 160, 0.2);
}

.department-card:hover::before {
    transform: scaleX(1);
}

.department-card .department-icon {
    text-align: center;
    transition: all 0.3s ease;
}

.department-card:hover .department-icon {
    transform: scale(1.1);
}

.department-card h4 {
    transition: color 0.3s ease;
}

.department-card:hover h4 {
    color: #065a63 !important;
}

.department-services ul li {
    transition: all 0.3s ease;
    padding: 8px 0;
}

.department-services ul li:hover {
    padding-left: 10px;
    color: #0891a0 !important;
}

/* ===== Service Cards ===== */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(8, 145, 160, 0.1) 0%, transparent 70%);
    transform: translate(50%, 50%);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(8, 145, 160, 0.25);
}

.service-card:hover::after {
    width: 200px;
    height: 200px;
}

.service-card .service-icon img {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

.service-meta {
    font-size: 14px;
}

.service-meta i {
    font-size: 18px;
}

/* ===== Content Cards ===== */
.content-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #0891a0;
}

.content-card:hover {
    box-shadow: 0 8px 30px rgba(8, 145, 160, 0.2);
    border-left-width: 6px;
}

/* ===== Feature Boxes ===== */
.feature-box {
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 145, 160, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(8, 145, 160, 0.2);
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box i {
    font-size: 50px;
    color: #0891a0;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.feature-box:hover i {
    transform: scale(1.15);
    color: #065a63;
}

/* ===== Statistics Cards ===== */
.stat-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 160, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 35px rgba(8, 145, 160, 0.25) !important;
}

.stat-card i {
    transition: all 0.3s ease;
}

.stat-card:hover i {
    transform: rotateY(360deg);
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.page-header h1 {
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header p {
    position: relative;
    z-index: 1;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: #0891a0;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0891a0 0%, #1cb4be 100%);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #0891a0 0%, #1cb4be 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(8, 145, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(8, 145, 160, 0.4);
    background: linear-gradient(135deg, #065a63 0%, #0891a0 100%);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .department-card,
    .service-card,
    .content-card,
    .feature-box {
        margin-bottom: 20px;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Selection Color ===== */
::selection {
    background: #0891a0;
    color: white;
}

::-moz-selection {
    background: #0891a0;
    color: white;
}

/* ===== About Page Enhancements ===== */
.content-section {
    position: relative;
}

.content-section .content-card {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.content-section .content-card:nth-child(2) {
    animation-delay: 0.4s;
}

.content-section .content-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Image hover effects */
.content-section img {
    transition: all 0.5s ease;
}

.content-section img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(8, 145, 160, 0.3) !important;
}

/* Values section icons animation */
.content-card .zmdi {
    transition: all 0.3s ease;
}

.content-card:hover .zmdi {
    transform: scale(1.1) rotate(5deg);
}

/* Responsive text alignment for RTL */
[dir="rtl"] .content-card p {
    text-align: center;
}

[dir="ltr"] .content-card p {
    text-align: center;
}

/* Enhanced shadow on hover for all cards */
.content-card:hover,
.stat-card:hover {
    box-shadow: 0 10px 40px rgba(8, 145, 160, 0.25) !important;
}

/* Smooth transitions for all interactive elements */
* {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
