/* Accessibility CSS */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2c3e50;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast a {
    color: #ffff00 !important;
}

body.high-contrast .navbar,
body.high-contrast .rs-toolbar,
body.high-contrast .rs-header-top,
body.high-contrast .menu-area {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast .dropdown-menu {
    background-color: #000 !important;
    border: 1px solid #ffff00 !important;
}

body.high-contrast .btn-outline-primary {
    border-color: #ffff00 !important;
    color: #ffff00 !important;
}

body.high-contrast .btn-primary {
    background-color: #ffff00 !important;
    color: #000 !important;
    border-color: #ffff00 !important;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-inner {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.loader-line-mask {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    right: 0;
    overflow: hidden;
}

.loader-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Header Styles */
.rs-toolbar {
    padding: 10px 0;
}

.rs-toolbar-left {
    display: flex;
    flex-wrap: wrap;
}

.welcome-message {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.welcome-message i {
    margin-right: 5px;
}

.toolbar-share-icon ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.toolbar-share-icon ul li {
    margin-right: 10px;
}

.toolbar-share-icon ul li:last-child {
    margin-right: 0;
}

.toolbar-share-icon ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.toolbar-share-icon ul li a:hover {
    background-color: #fff;
    color: #3498db;
}

.rs-header-top {
    background-color: #f8f9fa;
}

.logo-area {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.site-description {
    font-size: 0.9rem;
    color: #666;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-links .btn {
    margin-right: 10px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.header-links .btn img {
    margin-left: 5px;
}

/* Navigation */
.menu-area {
    background-color: #f8f9fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    padding: 15px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #3498db;
}

.dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.dropdown-item {
    padding: 10px 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* Responsive */
@media (max-width: 991px) {
    .rs-toolbar-left {
        justify-content: center;
    }
    
    .rs-toolbar-right {
        justify-content: center;
        margin-top: 10px;
    }
    
    .logo-area {
        justify-content: center;
    }
    
    .header-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .welcome-message {
        margin-bottom: 5px;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
    }
}

/* Accessibility Controls */
.accessibility-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessibility-controls button i {
    font-size: 12px;
}

/* Search Modal */
.search-form .input-group {
    position: relative;
}

.search-form .form-control {
    padding-right: 50px;
    height: 50px;
    border-radius: 25px;
}

.search-form .btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 50px;
    width: 50px;
    border-radius: 0 25px 25px 0;
    z-index: 10;
}
