/* White Theme Override Styles */

/* FontAwesome CDN Fallback - Load if local fails */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/* Ensure all sections have proper white theme styling */
.white-theme {
    background-color: #ffffff !important;
}

/* Section Backgrounds */
.section {
    background-color: #f8f9fa;
}

.section:nth-child(even) {
    background-color: #ffffff;
}

/* Text Colors Override */
.white-theme h1,
.white-theme h2,
.white-theme h3,
.white-theme h4,
.white-theme h5,
.white-theme h6 {
    color: #333333 !important;
}

.white-theme p {
    color: #666666 !important;
}

/* Navigation Override */
.white-theme .main-menu li a {
    color: #333333 !important;
}

.white-theme .main-menu li:hover a,
.white-theme .main-menu li.active a {
    color: #8DC6D8 !important;
    border-color: #8DC6D8 !important;
}

/* Mobile Menu Override */
@media screen and (max-width: 950px) {
    .white-theme nav[role="navigation"] ul {
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .white-theme nav[role="navigation"] li a {
        color: #333333 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
    
    .white-theme nav[role="navigation"] li:hover a,
    .white-theme nav[role="navigation"] li.active a {
        color: #8DC6D8 !important;
    }
}

/* Button Styles */
.white-theme .button,
.white-theme .btn,
.white-theme button {
    background: linear-gradient(45deg, #8DC6D8, #7bb3c7);
    color: #ffffff !important;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.white-theme .button:hover,
.white-theme .btn:hover,
.white-theme button:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 198, 216, 0.3);
}

/* Specific button color overrides */
.white-theme .btn-primary,
.white-theme .btn-success,
.white-theme .btn-info,
.white-theme .btn-warning,
.white-theme .btn-danger,
.white-theme .btn-secondary {
    color: #ffffff !important;
}

.white-theme .btn-primary:hover,
.white-theme .btn-success:hover,
.white-theme .btn-info:hover,
.white-theme .btn-warning:hover,
.white-theme .btn-danger:hover,
.white-theme .btn-secondary:hover,
.white-theme .btn-primary:focus,
.white-theme .btn-success:focus,
.white-theme .btn-info:focus,
.white-theme .btn-warning:focus,
.white-theme .btn-danger:focus,
.white-theme .btn-secondary:focus {
    color: #ffffff !important;
}

/* Admin button overrides */
.white-theme .action-buttons .btn,
.white-theme .secondary-actions .btn {
    color: #ffffff !important;
}

/* Outline button styles */
.white-theme .btn-outline-primary,
.white-theme .btn-outline-secondary,
.white-theme .btn-outline-success,
.white-theme .btn-outline-info,
.white-theme .btn-outline-warning,
.white-theme .btn-outline-danger {
    color: #333333;
    border-color: #8DC6D8;
    background-color: transparent;
}

.white-theme .btn-outline-primary:hover,
.white-theme .btn-outline-secondary:hover,
.white-theme .btn-outline-success:hover,
.white-theme .btn-outline-info:hover,
.white-theme .btn-outline-warning:hover,
.white-theme .btn-outline-danger:hover {
    background: linear-gradient(45deg, #8DC6D8, #7bb3c7);
    border-color: #8DC6D8;
    color: #ffffff !important;
}

/* Text buttons and links styled as buttons */
.white-theme a.btn,
.white-theme a.button {
    color: #ffffff !important;
    text-decoration: none;
}

.white-theme a.btn:hover,
.white-theme a.button:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* Form Elements */
.white-theme input,
.white-theme textarea,
.white-theme select {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    color: #333333;
    border-radius: 5px;
    padding: 10px 15px;
}

.white-theme input:focus,
.white-theme textarea:focus,
.white-theme select:focus {
    border-color: #8DC6D8;
    box-shadow: 0 0 0 0.2rem rgba(141, 198, 216, 0.25);
    outline: none;
}

/* Links */
.white-theme a {
    text-decoration: none;
}

.white-theme a:hover {
    color: #333333;
    text-decoration: none;
}

/* Cards and Containers */
.white-theme .card,
.white-theme .container-box {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Owl Carousel Override */
.white-theme .owl-carousel .owl-dots button.owl-dot {
    background-color: rgba(51, 51, 51, 0.3) !important;
    border: 2px solid rgba(51, 51, 51, 0.5) !important;
}

.white-theme .owl-carousel .owl-dots button.active {
    background-color: #8DC6D8 !important;
    border-color: #8DC6D8 !important;
}

/* Tab Styles */
.white-theme #tabs ul li a {
    color: #333333 !important;
}

.white-theme #tabs ul .ui-tabs-active a {
    color: #8DC6D8 !important;
}

.white-theme #tabs ul li a:after {
    background-color: rgba(51, 51, 51, 0.3) !important;
}

.white-theme #tabs ul .ui-tabs-active a:after {
    background-color: #8DC6D8 !important;
}

.white-theme #tabs ul .ui-tabs-active a:before {
    border-color: #8DC6D8 !important;
}

/* Scrollbar Styling */
.white-theme ::-webkit-scrollbar {
    width: 8px;
}

.white-theme ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.white-theme ::-webkit-scrollbar-thumb {
    background: #8DC6D8;
    border-radius: 4px;
}

.white-theme ::-webkit-scrollbar-thumb:hover {
    background: #7bb3c7;
}

/* Responsive Text Sizes */
@media (max-width: 768px) {
    .white-theme h1 {
        font-size: 2rem;
    }
    
    .white-theme h2 {
        font-size: 1.75rem;
    }
    
    .white-theme h3 {
        font-size: 1.5rem;
    }
    
    /* Mobile Header Fixes */
    .white-theme .main-header {
        padding: 0 10px;
    }
    
    .white-theme .main-header .logo {
        padding-left: 15px !important;
        line-height: 70px;
    }
    
    .white-theme .main-header .logo img {
        width: 100px !important;
        height: auto !important;
        margin-bottom: 10px;
    }
    
    .white-theme .main-header .logo a {
        font-size: 18px !important;
    }
    
    /* Mobile Menu Improvements */
    .white-theme .menu-link {
        padding-right: 15px !important;
        padding-top: 20px !important;
        font-size: 24px !important;
    }
}

@media (max-width: 576px) {
    .white-theme h1 {
        font-size: 1.75rem;
    }
    
    .white-theme h2 {
        font-size: 1.5rem;
    }
    
    .white-theme h3 {
        font-size: 1.25rem;
    }
    
    .white-theme p {
        font-size: 14px !important;
        line-height: 1.6;
    }
    
    /* Mobile Header Fixes for Small Screens */
    .white-theme .main-header .logo {
        padding-left: 10px !important;
    }
    
    .white-theme .main-header .logo img {
        width: 80px !important;
        height: auto !important;
        margin-bottom: 5px;
    }
    
    .white-theme .main-header .logo a {
        font-size: 16px !important;
    }
    
    .white-theme .menu-link {
        padding-right: 10px !important;
        padding-top: 25px !important;
        font-size: 20px !important;
    }
}

/* Mobile Navigation Enhancements */
@media screen and (max-width: 950px) {
    .white-theme nav[role="navigation"] ul {
        background-color: rgba(255, 255, 255, 0.98) !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .white-theme nav[role="navigation"] li a {
        color: #333333 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        padding: 15px 20px !important;
        font-size: 14px !important;
        text-align: left !important;
    }
    
    .white-theme nav[role="navigation"] li:hover a,
    .white-theme nav[role="navigation"] li.active a {
        color: #8DC6D8 !important;
        background-color: rgba(141, 198, 216, 0.1) !important;
    }
    
    /* Mobile Submenu */
    .white-theme .main-menu li .sub-menu {
        background-color: rgba(248, 249, 250, 0.95) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        border-left: 3px solid #8DC6D8;
    }
    
    .white-theme .main-menu li .sub-menu li a {
        padding-left: 40px !important;
        font-size: 13px !important;
        color: #666666 !important;
    }
    
    .white-theme .main-menu li .sub-menu li a:hover {
        color: #8DC6D8 !important;
        background-color: rgba(141, 198, 216, 0.05) !important;
    }
}

/* Mobile Form Elements */
@media (max-width: 768px) {
    .white-theme input,
    .white-theme textarea,
    .white-theme select {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    .white-theme .button,
    .white-theme .btn,
    .white-theme button {
        padding: 15px 25px;
        font-size: 14px;
        border-radius: 20px;
        min-height: 48px; /* Touch-friendly minimum size */
    }
}

/* Mobile Tables */
@media (max-width: 768px) {
    .white-theme .table-responsive {
        border: none;
        margin-bottom: 1rem;
    }
    
    .white-theme table {
        font-size: 12px;
    }
    
    .white-theme table th,
    .white-theme table td {
        padding: 8px 4px;
        white-space: nowrap;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .white-theme footer {
        padding: 20px 15px;
    }
    
    .white-theme footer p {
        font-size: 12px !important;
        line-height: 1.4;
        margin-bottom: 10px;
    }
}

/* Loading Screen Mobile */
@media (max-width: 768px) {
    .modern-loader {
        padding: 20px;
    }
    
    .loader-content {
        padding: 20px !important;
        margin: 10px !important;
        border-radius: 10px;
    }
    
    .loader-logo {
        width: 80px !important;
        margin-bottom: 15px;
    }
    
    .loader-text {
        font-size: 14px !important;
        margin-bottom: 15px;
    }
    
    .loader-spinner {
        width: 30px !important;
        height: 30px !important;
    }
}

/* Touch Device Optimizations */
@media (pointer: coarse) {
    .white-theme .button,
    .white-theme .btn,
    .white-theme button,
    .white-theme a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .white-theme .main-menu li a {
        padding: 15px 20px !important;
    }
}

/* Landscape Mobile */
@media screen and (max-width: 950px) and (orientation: landscape) {
    .white-theme .main-header {
        height: 60px;
    }
    
    .white-theme .main-header .logo {
        line-height: 60px;
    }
    
    .white-theme .main-header .logo img {
        width: 70px !important;
        height: auto !important;
    }
    
    .white-theme .menu-link {
        padding-top: 15px !important;
    }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .white-theme .main-header .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Mobile Accessibility */
@media (max-width: 768px) {
    .white-theme *:focus {
        outline: 3px solid #8DC6D8 !important;
        outline-offset: 2px;
    }
    
    .white-theme button:focus,
    .white-theme a:focus {
        box-shadow: 0 0 0 3px rgba(141, 198, 216, 0.3) !important;
    }
}

/* Dark Mode Mobile Support */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    .white-theme .main-header {
        background-color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .white-theme nav[role="navigation"] ul {
        background-color: rgba(15, 23, 42, 0.98) !important;
    }
    
    .white-theme nav[role="navigation"] li a {
        color: #e2e8f0 !important;
    }
}

/* Enhanced Mobile Menu Functionality */
@media screen and (max-width: 950px) {
    /* Ensure menu link is visible and clickable */
    .white-theme .menu-link {
        display: block !important;
        float: right;
        font-size: 24px !important;
        color: #fff !important;
        text-decoration: none;
        z-index: 1000;
        position: relative;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    /* Navigation container */
    .white-theme nav[role="navigation"] {
        clear: both;
        -webkit-transition: all 0.3s ease-out;
        -moz-transition: all 0.3s ease-out;
        -ms-transition: all 0.3s ease-out;
        -o-transition: all 0.3s ease-out;
        transition: all 0.3s ease-out;
        position: relative;
        /*z-index: 999;*/
    }
    
    /* Hidden menu by default */
    .white-theme .js nav[role="navigation"] {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
    }
    
    /* Active menu state */
    .white-theme nav[role="navigation"].active,
    .white-theme .main-nav.active,
    .white-theme #menu.active {
        max-height: 500px !important;
        overflow-y: auto;
        opacity: 1 !important;
        display: block !important;
    }
    
    /* Menu list styling */
    .white-theme nav[role="navigation"] ul,
    .white-theme nav[role="navigation"].active ul,
    .white-theme .main-nav.active ul,
    .white-theme #menu.active ul {
        top: 0;
        width: 100%;
        position: relative;
        margin: 0;
        padding: 0;
        border-top: 1px solid rgba(141, 198, 216, 0.3) !important;
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
        overflow-y: auto;
    }
    
    /* Menu items */
    .white-theme nav[role="navigation"] li a {
        display: block !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
        text-align: left !important;
        color: #333333 !important;
        font-size: 14px !important;
        text-transform: uppercase;
        font-weight: 600 !important;
        line-height: 1.5;
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .white-theme nav[role="navigation"] li:hover a,
    .white-theme nav[role="navigation"] li.active a {
        color: #8DC6D8 !important;
        background-color: rgba(141, 198, 216, 0.1) !important;
        transform: translateX(5px);
    }
    
    /* Submenu styling */
    .white-theme .main-menu li .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        background-color: rgba(248, 249, 250, 0.95) !important;
        width: 100% !important;
        margin: 0 !important;
        border-left: 3px solid #8DC6D8;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    }
    
    .white-theme .main-menu li .sub-menu li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    
    .white-theme .main-menu li .sub-menu li a {
        padding-left: 40px !important;
        font-size: 13px !important;
        color: #666666 !important;
        font-weight: 500 !important;
    }
    
    .white-theme .main-menu li .sub-menu li a:hover {
        color: #8DC6D8 !important;
        background-color: rgba(141, 198, 216, 0.05) !important;
        padding-left: 45px !important;
    }
}

/* Force show menu when active - additional specificity */
@media screen and (max-width: 950px) {
    .white-theme body.js nav[role="navigation"].active {
        max-height: none !important;
        height: auto !important;
        display: block !important;
    }
    
    .white-theme nav.active,
    .white-theme .main-nav.active,
    .white-theme #menu.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Animation keyframes for mobile menu */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 500px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

/* FontAwesome Icon Fixes */
.white-theme .fa,
.white-theme .fas,
.white-theme .far,
.white-theme .fal,
.white-theme .fab,
.white-theme [class^="fa-"],
.white-theme [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "FontAwesome" !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
    font-weight: 900 !important;
}

/* Ensure solid icons have proper weight */
.white-theme .fas,
.white-theme .fa-solid {
    font-weight: 900 !important;
}

/* Ensure regular icons have proper weight */
.white-theme .far,
.white-theme .fa-regular {
    font-weight: 400 !important;
}

/* Ensure light icons have proper weight */
.white-theme .fal,
.white-theme .fa-light {
    font-weight: 300 !important;
}

/* Ensure brand icons have proper weight */
.white-theme .fab,
.white-theme .fa-brands {
    font-weight: 400 !important;
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
}

/* Fix common icon display issues */
.white-theme i[class^="fa-"]::before,
.white-theme i[class*=" fa-"]::before,
.white-theme .fa::before,
.white-theme .fas::before,
.white-theme .far::before,
.white-theme .fal::before,
.white-theme .fab::before {
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Prevent icon inheritance issues */
.white-theme .fa,
.white-theme .fas,
.white-theme .far,
.white-theme .fal,
.white-theme .fab {
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-wrap: normal !important;
    white-space: nowrap !important;
    direction: ltr !important;
}

/* Fix for navigation icons specifically */
.white-theme .main-menu .fa,
.white-theme .nav-icon .fa,
.white-theme .nav-icon .fas,
.white-theme .nav-icon i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Button icon fixes */
.white-theme .btn .fa,
.white-theme .btn .fas,
.white-theme .btn i[class^="fa-"],
.white-theme .button .fa,
.white-theme .button .fas,
.white-theme .button i[class^="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    margin-right: 8px !important;
}

/* Ensure icons don't inherit unwanted styles */
.white-theme .fa,
.white-theme .fas,
.white-theme .far,
.white-theme .fal,
.white-theme .fab,
.white-theme [class^="fa-"],
.white-theme [class*=" fa-"] {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    vertical-align: baseline !important;
    line-height: 1 !important;
}