/* General Layout */
.wrapper {
    min-height: 100vh;
}

.main-content {
    min-height: 100vh;
    transition: all 0.3s ease;
}

.content {
    padding: 1.5rem;
}

/* Header Styles */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Search Form */
.header-search {
    width: 300px;
}

.search-form {
    background: #f8f9fa;
    border-radius: 50px;
    padding: 0.25rem 1rem;
}

.search-form .input-group-text,
.search-form .form-control {
    padding: 0.5rem 0.75rem;
}

.search-form .form-control:focus {
    box-shadow: none;
}

/* Search Results */
#searchResults {
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

#searchResults::-webkit-scrollbar {
    width: 6px;
}

#searchResults::-webkit-scrollbar-track {
    background: #f8f9fa;
}

#searchResults::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
}

/* RTL Search Specific */
[dir="rtl"] .search-form .input-group-text {
    border-radius: 0 50px 50px 0;
}

[dir="rtl"] .search-form .form-control {
    border-radius: 50px 0 0 50px;
}


/* Notifications */
.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

/* Sidebar */
nav {
    z-index: 900;
}
.sidebar {
    width: 280px;
    background: #fff;
    height: 100vh;
    /* position: sticky; */
    /* top: 0; */
    padding: 1.5rem;
    transition: all 0.3s ease;
    padding-top: 30px !important;
}

.sidebar-collapsed .sidebar {
    margin-right: -280px;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.nav-link i {
    font-size: 1.25rem;
}

/* User Menu */
.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

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

.dropdown-item i {
    font-size: 1.1rem;
}

/* RTL Specific Styles */
[dir="rtl"] .header-search {
    margin-left: 1rem;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-item i {
    margin-left: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-search {
        width: 250px;
    }
    
    .sidebar {
        position: fixed;
        z-index: 1001;
    }
    
    .sidebar-collapsed .main-content {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }
}
