/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Filter Sidebar Styles */
.filter-sidebar-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.filter-sidebar {
    width: 360px;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.75rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.filter-sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
    margin: 0;
}

.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.filter-sidebar-header h3 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-sidebar-header h3 i {
    color: var(--primary-color);
}

.filter-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.filter-toggle-btn:hover {
    color: var(--primary-color);
}

.filter-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section h4 {
    margin: 0 0 1.25rem 0;
    color: var(--dark-color);
    font-size: 1.0625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.filter-section h4 i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 18px;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark-color);
}

.filter-group label i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group input[type="date"],
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus,
.filter-group input[type="date"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 164, 224, 0.1);
    background: rgba(0, 164, 224, 0.02);
}

.filter-group input[type="date"]:disabled {
    background: var(--light-color);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Style for date inputs to show disabled dates better */
.filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(0.5);
}

.filter-group input[type="date"]:disabled::-webkit-calendar-picker-indicator {
    cursor: not-allowed;
    opacity: 0.5;
}

.date-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
}

.date-input {
    cursor: pointer;
}

.date-range-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.date-range-actions .btn {
    width: 100%;
}

/* Price Range Slider */
.price-range-container {
    padding: 1rem 0;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.price-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.price-range-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-range-inputs input {
    flex: 1;
}

/* Date Range Picker */
.date-range-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 164, 224, 0.03);
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 164, 224, 0.1);
}

/* Multi-select Checkboxes */
.multi-select-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.multi-select-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.multi-select-item:hover {
    background: var(--light-color);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.filter-actions .btn {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.multi-select-item input[type="checkbox"] {
    cursor: pointer;
}

.multi-select-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: normal;
}

/* Advanced Search Section */
.advanced-search-section {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.search-criteria {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-criteria-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-criteria-row select {
    flex: 1;
}

.search-criteria-row input {
    flex: 2;
}

.remove-criteria-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.add-criteria-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Saved Searches */
.saved-searches-list {
    max-height: 200px;
    overflow-y: auto;
}

.saved-search-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.saved-search-item:hover {
    background: var(--light-color);
}

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

.saved-search-name {
    flex: 1;
    font-weight: 500;
}

.saved-search-actions {
    display: flex;
    gap: 0.5rem;
}

.saved-search-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.25rem;
}

.saved-search-actions button:hover {
    color: var(--primary-color);
}

/* Search History */
.search-history-list {
    max-height: 200px;
    overflow-y: auto;
}

.search-history-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.search-history-item:hover {
    background: var(--light-color);
}

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

.search-history-time {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.filter-actions button,
.filter-actions .btn {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-actions .btn-secondary {
    background: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.filter-actions .btn-secondary:hover {
    background: #e5e7eb;
    border-color: var(--primary-color);
}

/* Main Content Area */
.filter-main-content {
    flex: 1;
    min-width: 0;
}

/* Notification Dropdown Styles */
.notification-dropdown-container {
    position: relative;
}

.notification-bell {
    position: relative;
}

.nav-action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: bold;
    border: 2px solid white;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.2s ease;
}

.notification-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--dark-color);
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.notification-actions .btn-link {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.notification-actions .btn-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.notification-dropdown-content {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.notification-dropdown-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-dropdown-item:hover {
    background: var(--light-color);
}

.notification-dropdown-item.unread {
    background: rgba(0, 164, 224, 0.05);
}

.notification-dropdown-item.unread .notification-item-title {
    font-weight: 600;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.notification-dropdown-item.unread .notification-item-icon {
    background: rgba(0, 164, 224, 0.1);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-item-message {
    font-size: 0.8125rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.notification-item-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

.notification-item-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.notification-dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
}

.notification-dropdown-footer .btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.notification-dropdown-footer .btn-link:hover {
    color: var(--secondary-color);
}

.no-notifications {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.notification-error {
    padding: 1rem;
    text-align: center;
    color: var(--danger-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-sidebar-container {
        flex-direction: column;
    }
    
    .filter-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .filter-sidebar.collapsed {
        display: none;
    }
    
    .filter-main-content {
        width: 100%;
    }
    
    .notification-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
        max-height: 400px;
    }
}

:root {
    --primary-color: #00a4e0;
    --secondary-color: #0088c0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-light: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
}

/* Navbar */
/* Modern Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1001;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 0.5rem 0;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-link:hover .nav-logo {
    transform: scale(1.05);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    min-height: 44px;
}

.nav-link i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link-text {
    display: inline;
}

.nav-link:hover {
    background-color: rgba(0, 164, 224, 0.08);
    color: var(--primary-color);
}

.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link.active {
    background-color: rgba(0, 164, 224, 0.12);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
    flex-shrink: 0;
}

.nav-action-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
    position: relative;
    font-size: 1.125rem;
    min-width: 44px;
    min-height: 44px;
}

.nav-action-btn:hover {
    background-color: rgba(0, 164, 224, 0.08);
    color: var(--primary-color);
}

.nav-action-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-menu-toggle:hover {
    background-color: rgba(0, 164, 224, 0.08);
    color: var(--primary-color);
}

.mobile-menu-toggle.active {
    color: var(--primary-color);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* User Dropdown */
.user-dropdown-container {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.user-menu-btn:hover {
    background-color: rgba(0, 164, 224, 0.08);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-color);
}

.user-menu-btn i.fa-chevron-down {
    font-size: 0.75rem;
    color: var(--text-light);
    transition: transform 0.2s;
}

.user-dropdown-container:hover .user-menu-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 2rem);
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(0, 164, 224, 0.1), rgba(0, 164, 224, 0.05));
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name-large {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: capitalize;
}

.user-dropdown-menu {
    padding: 0.5rem 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
}

.user-dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.user-dropdown-item:hover i {
    color: var(--primary-color);
}

.user-dropdown-item.logout {
    color: var(--danger-color);
}

.user-dropdown-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.user-dropdown-item.logout:hover i {
    color: var(--danger-color);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Login Page */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 240px;
    height: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.login-header h1 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
}

.login-form {
    margin-top: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Prevent zoom on iOS input focus */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-primary:active {
    background-color: var(--secondary-color);
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Dashboard */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* Dashboard Deals Container */
.dashboard-deals-container {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

/* Dashboard Stats Section */
.dashboard-stats-section {
    margin-bottom: 2.5rem;
}

.dashboard-stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.deals-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deals-header h2 i {
    color: var(--primary-color);
}

/* Modern Stat Cards */
.modern-stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Compact Stat Cards */
.compact-stat-card {
    padding: 0.75rem 0.875rem;
    gap: 0.625rem;
    flex-direction: row;
    align-items: center;
}

.compact-stat-card .stat-icon-wrapper {
    flex-shrink: 0;
}

.compact-stat-card .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
}

.compact-stat-card .stat-content h3 {
    font-size: 1.25rem;
    margin: 0;
}

.compact-stat-card .stat-content p {
    font-size: 0.75rem;
    margin: 0;
}

.modern-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 164, 224, 0.15);
    border-color: var(--primary-color);
}

.modern-stat-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.stat-icon-wrapper {
    display: flex;
    align-items: center;
}

.modern-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 164, 224, 0.3);
}

.modern-stat-card .stat-content {
    flex: 1;
}

.modern-stat-card .stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.modern-stat-card .stat-content p {
    color: var(--text-light);
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Deal Cards */
.modern-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.modern-deal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.modern-deal-card {
    background: linear-gradient(135deg, rgba(0, 164, 224, 0.05), rgba(0, 164, 224, 0.02));
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 164, 224, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.modern-deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 164, 224, 0.1), rgba(0, 164, 224, 0.05));
    border-radius: 50%;
    transform: translate(30px, -30px);
    transition: transform 0.3s ease;
}

.modern-deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 164, 224, 0.2);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 164, 224, 0.08), rgba(0, 164, 224, 0.04));
}

.modern-deal-card:hover::before {
    transform: translate(20px, -20px) scale(1.2);
}

.deal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.deal-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
    line-height: 1.3;
}

.deal-count-inline {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 0.25rem;
}

/* Compact Deal Cards */
.compact-deal-card {
    padding: 0.75rem 0.875rem;
}

.compact-deal-card .deal-card-header {
    margin-bottom: 0.5rem;
}

.compact-deal-card .deal-card-header h3 {
    font-size: 0.875rem;
    line-height: 1.2;
}

.compact-deal-card .deal-card-price {
    padding: 0;
}

.compact-deal-card .price-value-modern {
    font-size: 1.125rem;
}

.deal-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.price-label-modern {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: var(--light-color);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--light-color);
}


/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-requested {
    background-color: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-paid {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-ticketed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-travelled {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-payment_pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* Deals Grid */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.deal-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sector-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sector-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.sector-card:hover {
    box-shadow: 0 4px 16px rgba(0, 164, 224, 0.15);
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light-color);
}

.sector-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.deal-count-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.sector-body {
    flex: 1;
    margin-bottom: 1.25rem;
}

.sector-route {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.route-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.route-city {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9375rem;
}

.route-code {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.route-arrow {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.sector-price {
    text-align: center;
    padding: 0.5rem 0;
}

.price-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sector-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
}

.sector-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.deal-count-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.sector-body {
    flex: 1;
    margin-bottom: 1.25rem;
}

.sector-route {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
}

.route-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.route-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.route-city {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9375rem;
}

.route-code {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.route-arrow {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.sector-price {
    text-align: center;
    padding: 0.5rem 0;
}

.price-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sector-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: var(--primary-color);
}

.dashboard-section {
    margin-bottom: 2.5rem;
}

.deals-sectors-section {
    margin-bottom: 2.5rem;
}

.stats-section {
    margin-bottom: 2.5rem;
}

.bookings-section {
    margin-bottom: 2.5rem;
}

.booking-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    background: var(--light-color);
    color: var(--text-color);
}

.text-center {
    text-align: center;
}

.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.deal-header h3 {
    color: var(--dark-color);
}

.deal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.deal-body p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deal-body i {
    color: var(--text-light);
    width: 20px;
}

.deal-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Dashboard Sections */
.dashboard-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

/* Dashboard bottom row: Packages + Notifications */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-bottom-row .dashboard-section {
    margin-bottom: 0;
}

.dashboard-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.dashboard-package-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.dashboard-package-card:hover {
    border-color: var(--primary-color);
    background: rgba(0, 164, 224, 0.06);
}

.dashboard-package-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.dashboard-package-meta {
    font-size: 0.8125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-package-meta i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.dashboard-package-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--light-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.dashboard-notification-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 164, 224, 0.06);
}

.dashboard-notification-item.unread {
    background: rgba(0, 164, 224, 0.06);
    border-color: rgba(0, 164, 224, 0.25);
}

.dashboard-notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 164, 224, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-notification-item.unread .dashboard-notification-icon {
    background: rgba(0, 164, 224, 0.25);
}

.dashboard-notification-content {
    flex: 1;
    min-width: 0;
}

.dashboard-notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.dashboard-notification-message {
    font-size: 0.8125rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-notification-time {
    font-size: 0.75rem;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }

    .dashboard-packages-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    margin: 0;
    color: var(--dark-color);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Form Styles */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-color);
}

.form-group small {
    color: var(--text-light);
    font-size: 0.875rem;
}

.checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 0.375rem;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Detail Pages */
.detail-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.detail-item span {
    color: var(--text-color);
    font-size: 1rem;
}

.detail-item .highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
}

.subagent-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.subagent-list li {
    padding: 0.5rem;
    background: var(--light-color);
    border-radius: 0.375rem;
}

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-current {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    font-weight: 600;
}

.pagination-info {
    color: var(--text-light);
    font-size: 0.875rem;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: var(--danger-color);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 1rem 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: var(--text-light);
}

.footer-svg {
    width: auto;
    height: auto;
    max-width: 600px;
    max-height: 150px;
    display: block;
    margin: 0 auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .modern-deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

/* Responsive Navigation */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.25rem;
    }
    
    .nav-menu {
        gap: 0.125rem;
    }
    
    .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .nav-link-text {
        display: none;
    }
    
    .nav-link {
        padding: 0.625rem;
        min-width: 44px;
        justify-content: center;
    }
    
    .nav-link i {
        margin: 0;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-btn {
        padding: 0.5rem;
    }
    
    .nav-actions {
        gap: 0.25rem;
        padding-left: 0.75rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 64px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .nav-main {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem 1rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        display: flex;
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-container {
        position: relative;
    }
    
    .nav-main.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 2px solid var(--border-color);
    }
    
    .nav-link {
        width: 100%;
        padding: 0.875rem 1rem;
        justify-content: flex-start;
        border-radius: 0.5rem;
        min-width: auto;
        font-size: 1rem;
    }
    
    .nav-link-text {
        display: inline;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(0, 164, 224, 0.12);
        border-left: 3px solid var(--primary-color);
    }
    
    .nav-actions {
        width: 100%;
        padding: 1rem 0 0 0;
        border-left: none;
        border-top: 2px solid var(--border-color);
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .notification-dropdown-container,
    .user-dropdown-container {
        width: 100%;
    }
    
    .notification-bell,
    .user-menu-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
        border-radius: 0.5rem;
    }
    
    .user-name {
        display: inline;
        flex: 1;
        text-align: left;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        animation: none;
    }
    
    .notification-dropdown {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        max-height: 60vh;
        overflow-y: auto;
        box-shadow: none;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
    }
    
    .nav-brand {
        flex: 1;
    }
    
    .nav-link {
        min-height: 48px;
    }
    
    .notification-bell,
    .user-menu-btn {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 60px;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .nav-main {
        top: 60px;
        padding: 1rem 0.75rem;
    }
    
    .nav-link {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
}

.mobile-menu-backdrop {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(2px);
}

@media (max-width: 480px) {
    .mobile-menu-backdrop {
        top: 60px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    /* Dashboard */
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    .dashboard-header p {
        font-size: 0.875rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

    /* Dashboard Stats Section - Mobile */
    .dashboard-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .dashboard-deals-container {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .modern-stat-card {
        padding: 1rem;
    }

    .modern-stat-card .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .modern-stat-card .stat-content h3 {
        font-size: 1.5rem;
    }

    .modern-deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .modern-deal-card {
        padding: 1rem;
    }

    /* Deals Grid */
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .deal-card {
        padding: 1rem;
    }

    .deal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .deal-price {
        font-size: 1.25rem;
    }

    /* Tables - Convert to Cards on Mobile */
    .table-container {
        overflow-x: visible;
    }

    .data-table {
        display: none;
    }

    .data-table.mobile-view {
        display: block;
    }

    .table-card {
        display: block;
        background: white;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .table-card-row {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .table-card-row:last-child {
        border-bottom: none;
    }

    .table-card-label {
        font-weight: 600;
        color: var(--text-light);
        font-size: 0.875rem;
    }

    .table-card-value {
        color: var(--text-color);
        text-align: right;
    }

    /* Forms */
    .login-container {
        padding: 1rem;
        min-height: calc(100vh - 100px);
    }

    .login-box {
        padding: 2rem 1.5rem;
    }

    .login-logo {
        width: 200px;
    }

    .login-header h1 {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
        min-height: 44px; /* Better touch target */
    }

    .btn-sm {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        min-height: 36px;
    }

    /* Dashboard Sections */
    .dashboard-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .dashboard-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    /* Form Controls */
    .form-control {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch target */
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }

    .footer-container {
        padding: 0 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Extra Small Devices */
    .nav-brand {
        font-size: 1.25rem;
    }

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

    .dashboard-container {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 0.875rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }

    .stat-content h3 {
        font-size: 1.25rem;
    }

    .stat-content p {
        font-size: 0.8125rem;
    }

    .deal-card {
        padding: 0.875rem;
    }

    /* Dashboard Stats Section - Extra Small */
    .dashboard-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .compact-stat-card {
        padding: 0.75rem;
    }
    
    .compact-stat-card .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .compact-stat-card .stat-content h3 {
        font-size: 1.25rem;
    }
    
    .compact-stat-card .stat-content p {
        font-size: 0.75rem;
    }
    
    .dashboard-deals-container {
        padding: 0.875rem;
    }
    
    .modern-deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }

    .modern-stat-card {
        padding: 0.875rem;
    }

    .modern-stat-card .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .modern-stat-card .stat-content h3 {
        font-size: 1.25rem;
    }

    .modern-deal-card {
        padding: 0.875rem;
    }

    .price-value-modern {
        font-size: 1.25rem;
    }

    .login-box {
        padding: 1.5rem 1rem;
    }

    .dashboard-section {
        padding: 0.875rem;
    }

    /* Keep icons on very small screens for better UX */
    .nav-link i {
        display: inline-block;
        width: 20px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn:hover {
        opacity: 1;
    }

    .nav-link:hover {
        background-color: transparent;
    }

    .nav-link:active {
        background-color: var(--light-color);
    }

    .deal-card:hover {
        transform: none;
    }

    .deal-card:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .login-container {
        min-height: auto;
        padding: 1rem;
    }

    .login-box {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }

    .dashboard-container {
        padding: 0;
    }

    .dashboard-section {
        page-break-inside: avoid;
    }
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background: var(--light-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 164, 224, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-content {
    display: none;
    padding: 1.5rem;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
}

.close {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: var(--danger-color);
}

.modal form {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 164, 224, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--light-color);
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-list input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge-admin {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.badge-subagent {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header,
    .modal form,
    .modal-footer {
        padding: 1rem;
    }

    .tabs {
        flex-wrap: nowrap;
    }

    .tab-btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}


/* Reports & Analytics */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

/* Document Management */
.document-management-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.upload-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
    background: var(--light-color);
}

.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(0, 164, 224, 0.05);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-content i {
    font-size: 3rem;
    color: var(--primary-color);
}

.upload-hint {
    font-size: 0.875rem;
    color: var(--text-light);
}

.upload-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    width: 0%;
}

.document-gallery-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gallery-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.gallery-filters input,
.gallery-filters select {
    flex: 1;
}

.document-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.document-icon {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-color);
}

.document-info {
    flex: 1;
}

.document-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.document-info p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0.25rem 0;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.no-documents {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.modal-large {
    max-width: 90%;
    width: 90%;
}

.modal-large .modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow: auto;
}

/* Profile Pages */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .document-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-filters {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-large {
        width: 95%;
        max-width: 95%;
    }
}
