@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;700&display=swap');

body, h1, h2, h3, h4, h5, h6, .navbar, .btn, .form-control, .card, .lead {
    font-family: 'Prompt', Arial, sans-serif !important;
}

/* Custom Blue Scheme and Website Styles for MatiewSakhon */
:root {
    --bs-primary: #1565c0;
    --bs-primary-rgb: 21,101,192;
    --bs-navbar-bg: #0d47a1;
}

.navbar {
    background-color: #09306e !important;
}

.navbar-brand, .navbar-toggler-icon {
    color: #fff !important;
}

.nav-btn-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

footer {
    background-color: #0d47a1;
    color: #fff;
}

/* === Navbar Outline Button Custom Colors === */
.navbar .btn-outline-primary {
  color: #fff !important;
  border-color: #2986f5 !important;
  background: transparent !important;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.navbar .btn-outline-primary:hover, .navbar .btn-outline-primary:focus {
  color: #fff !important;
  background: #2986f5 !important;
  border-color: #2986f5 !important;
}

.auth-card input.form-control {
    background: #f8fbff !important;
    color: #222 !important;
    border: 1.5px solid #b6d0f7 !important;
    border-radius: 0.75rem;
    transition: background 0.2s, border 0.2s, color 0.2s;
}
.auth-card input.form-control:focus {
    background: #eaf4ff !important;
    border-color: #2986f5 !important;
    color: #111 !important;
    box-shadow: 0 0 0 2px #2986f533;
}

/* Evenly space and separate navigation buttons */
.nav-btn-group .btn-group {
    gap: 0.75rem;
}

.nav-btn-group .btn {
    border-radius: 0.5rem !important;
    box-shadow: 0 1px 4px rgba(21,101,192,0.08);
    margin: 0;
}

/* Button hover effects */
.btn, .btn-primary, .btn-outline-light {
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.btn:hover:not(.btn-quick-bookmark), .btn-primary:hover {
    background-color: #115293 !important;
    color: #fff !important;
}

/* Ensure attraction bookmark buttons stay red on hover */
.btn-quick-bookmark.btn-outline-danger:hover,
.btn-quick-bookmark.btn-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}

/* Hero search input bright style */
.p-5.mb-4 input.form-control {
    background: #f8fbff !important;
    color: #222 !important;
    border: 1.5px solid #b6d0f7 !important;
}
.p-5.mb-4 input.form-control:focus,
.p-5.mb-4 input.form-control:hover {
    background: #eaf4ff !important;
    border-color: #2986f5 !important;
    color: #111 !important;
    box-shadow: 0 0 0 2px #2986f533;
}

/* Search button: blue by default, white with blue text on hover */
.p-5.mb-4 .btn-light {
    background: #2986f5 !important;
    color: #fff !important;
    border: none !important;
    transition: background 0.2s, color 0.2s;
}
.p-5.mb-4 .btn-light:hover {
    background: #fff !important;
    color: #2986f5 !important;
    border: none !important;
} 

/* Navbar solid button hover for profile and logout */
.navbar .btn-success {
  background: #157347 !important;
  border-color: #157347 !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.navbar .btn-success:hover, .navbar .btn-success:focus {
  background: #115c37 !important;
  border-color: #115c37 !important;
  color: #fff !important;
}
.navbar .btn-danger {
  background: #bb2d3b !important;
  border-color: #bb2d3b !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.navbar .btn-danger:hover, .navbar .btn-danger:focus {
  background: #8a1f28 !important;
  border-color: #8a1f28 !important;
  color: #fff !important;
}
.navbar .btn-primary {
  background: #1565c0 !important;
  border-color: #1565c0 !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.navbar .btn-primary:hover, .navbar .btn-primary:focus {
  background: #0d47a1 !important;
  border-color: #0d47a1 !important;
  color: #fff !important;
}

/* ===== NAVIGATION RESPONSIVE IMPROVEMENTS ===== */



/* Mobile navigation improvements */
@media (max-width: 767.98px) {
    /* Make navbar more mobile-friendly */
    .navbar {
        padding: 0.5rem 1rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Search bar mobile optimization */
    .navbar .form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 25px !important;
        padding: 0.6rem 1rem !important;
    }
    
    .navbar .btn {
        border-radius: 25px !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Second navigation row mobile layout */
    .container-fluid.border-bottom {
        background: #f8fbff !important;
        padding: 0.75rem 1rem !important;
    }
    
    .container-fluid.border-bottom .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Bookmark button mobile optimization */
    .btn[href*="bookmarks.php"] {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    

    
    /* User profile button mobile optimization */
    .btn[href*="profile.php"],
    .btn[href*="login.php"],
    .btn[href*="register.php"] {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    /* Logout button mobile optimization */
    .btn[href*="logout.php"] {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Tablet navigation improvements */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar .form-control {
        font-size: 15px !important;
    }
    
    .container-fluid.border-bottom .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }
}

/* ===== CARD LAYOUT RESPONSIVE IMPROVEMENTS ===== */

/* Ensure cards always have white background */
.card {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.card-body {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.card-title {
    color: #000000 !important;
}

.card-title a {
    color: #000000 !important;
}

.card-title a:hover {
    color: #0056b3 !important;
}

/* Mobile card improvements */
@media (max-width: 575.98px) {
    /* Card grid adjustments */
    .row.row-cols-1.row-cols-md-4 {
        margin: 0 !important;
    }
    
    .row.row-cols-1.row-cols-md-4 > * {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Card content adjustments */
    .card {
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .card-img-top {
        border-radius: 12px 12px 0 0 !important;
    }
    
    /* Quick bookmark button mobile optimization */
    .btn-quick-bookmark {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        border-radius: 50% !important;
    }
    
    /* Card title mobile optimization */
    .card-title {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card-title a {
        color: #1a202c !important;
        text-decoration: none !important;
    }
    
    .card-title a:hover {
        color: #2d3748 !important;
    }
}

/* Tablet card improvements */
@media (min-width: 576px) and (max-width: 767.98px) {
    .row.row-cols-1.row-cols-md-4 > * {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .card {
        border-radius: 15px !important;
    }
    
    .card-img-top {
        border-radius: 15px 15px 0 0 !important;
    }
    
    .btn-quick-bookmark {
        width: 30px !important;
        height: 30px !important;
    }
}

/* ===== SEARCH AND AUTCOMPLETE RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 767.98px) {
    /* Autocomplete dropdown mobile optimization */
    #searchAutocomplete {
        max-height: 250px !important;
        border-radius: 0 0 15px 15px !important;
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15) !important;
    }
    
    .autocomplete-item {
        padding: 0.75rem !important;
    }
    
    .autocomplete-item img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .autocomplete-item .fw-bold {
        font-size: 0.9rem !important;
    }
    
    .autocomplete-item .text-muted {
        font-size: 0.8rem !important;
    }
}

/* ===== HERO IMAGE RESPONSIVE IMPROVEMENTS ===== */

@media (max-width: 575.98px) {
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-5 img {
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .mb-5 img {
        border-radius: 15px !important;
    }
}

/* === Enhanced Manage Users Page Styles === */
.manage-users-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.15);
}

.header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    backdrop-filter: blur(10px);
}

.header-icon i {
    font-size: 1.8rem;
    color: white;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Statistics Cards */
.stats-section {
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bs-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-card-primary::before { background: #3b82f6; }
.stat-card-success::before { background: #10b981; }
.stat-card-info::before { background: #06b6d4; }
.stat-card-warning::before { background: #f59e0b; }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-card-primary .stat-icon { background: #3b82f6; }
.stat-card-success .stat-icon { background: #10b981; }
.stat-card-info .stat-icon { background: #06b6d4; }
.stat-card-warning .stat-icon { background: #f59e0b; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Action Bar */
.action-bar {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 10;
}

.search-input {
    padding-left: 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    min-width: 150px;
}

.btn-add-user {
    background: #3b82f6;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-add-user:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Table Container */
.table-container {
    padding: 0;
}

.table-header {
    background: #f8fafc;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-title {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.table-count {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Modern Table */
.modern-table {
    margin: 0;
    border: none;
}

.modern-table thead th {
    background: #f8fafc;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-table tbody td {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.modern-table tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Sortable Headers */
.sortable {
    cursor: pointer;
    transition: background 0.2s ease;
}

.sortable:hover {
    background: #e5e7eb;
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-icon {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* User Row Styling */
.user-id .id-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.user-details strong {
    color: #1f2937;
    font-weight: 600;
}

.email-text {
    color: #6b7280;
    font-size: 0.9rem;
}

.name-cell {
    color: #374151;
    font-weight: 500;
}

/* Status Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-admin {
    background: #3b82f6;
    color: white;
}

.badge-user {
    background: #10b981;
    color: white;
}

.badge-verified {
    background: #10b981;
    color: white;
}

.badge-pending {
    background: #f59e0b;
    color: white;
}

.badge-unverified {
    background: #6b7280;
    color: white;
}

.badge-secondary {
    background: #9ca3af;
    color: white;
}

/* Date Styling */
.date-info {
    text-align: center;
}

.date-main {
    font-weight: 600;
    color: #1f2937;
}

.date-time {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.action-buttons .btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

.btn-edit:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.btn-delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-view:hover {
    background: #06b6d4;
    border-color: #06b6d4;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.empty-title {
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Enhanced Modals */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.modal-title-section {
    flex: 1;
}

.modal-title {
    margin: 0;
    color: #1f2937;
    font-weight: 600;
}

.modal-subtitle {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.modal-body {
    padding: 2rem;
}

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

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
}

/* User Details View */
.user-details-view {
    padding: 1rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-item label {
    font-weight: 600;
    color: #374151;
    min-width: 150px;
}

.detail-item span {
    color: #6b7280;
    text-align: right;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First Approach - Base styles for mobile devices */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .page-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Header adjustments */
    .page-header {
        padding: 1rem 0 !important;
    }
    
    .header-icon {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.75rem !important;
    }
    
    .header-icon i {
        font-size: 1.2rem !important;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .navbar .container-fluid {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .navbar .d-flex {
        width: 100% !important;
        max-width: none !important;
    }
    
    .navbar .form-control {
        font-size: 0.9rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .navbar .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Second navigation row */
    .container-fluid.border-bottom {
        padding: 0.5rem 1rem !important;
        overflow: visible !important;
    }
    
    .container-fluid.border-bottom .d-flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: stretch !important;
    }
    
    .container-fluid.border-bottom .btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.75rem !important;
        justify-content: center !important;
    }
    
    /* Main content container */
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    /* Hero image adjustments */
    .mb-5 img {
        border-radius: 10px !important;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem !important;
    }
    
    .card-img-top {
        height: 200px !important;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-title {
        font-size: 1rem !important;
    }
    
    /* Grid adjustments */
    .row-cols-md-4 {
        --bs-columns: 1 !important;
    }
    
    /* Statistics cards */
    .stat-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .stat-number {
        font-size: 1.8rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* Action bar */
    .action-bar {
        padding: 1rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .search-box {
        max-width: none !important;
    }
    
    .filter-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    
    .filter-select {
        min-width: auto !important;
    }
    
    /* Table adjustments */
    .table-header {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        padding: 1rem !important;
    }
    
    .modern-table {
        font-size: 0.8rem !important;
    }
    
    .modern-table thead th {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    .modern-table tbody td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .action-buttons {
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        height: auto !important;
        padding: 0.5rem !important;
        font-size: 0.7rem !important;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-footer {
        padding: 1rem !important;
    }
    
    .detail-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .detail-item span {
        text-align: left !important;
    }
    
    /* Button adjustments */
    .btn-add-user {
        width: 100% !important;
        margin-top: 0.5rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .page-title {
        font-size: 1.75rem !important;
    }
    
    .header-icon {
        width: 45px !important;
        height: 45px !important;
    }
    
    .navbar .container-fluid {
        flex-direction: row !important;
    }
    
    .navbar .d-flex {
        max-width: 400px !important;
    }
    
    .container-fluid.border-bottom .d-flex {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .row-cols-md-4 {
        --bs-columns: 2 !important;
    }
    
    .card-img-top {
        height: 220px !important;
    }
    
    .stat-card {
        padding: 1.25rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .action-bar {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .filter-group {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
    
    .table-header {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    
    .action-buttons {
        flex-direction: row !important;
    }
    
    .action-buttons .btn {
        width: auto !important;
        height: 36px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .page-title {
        font-size: 2rem !important;
    }
    
    .header-icon {
        width: 50px !important;
        height: 50px !important;
        margin-right: 1rem !important;
    }
    
    .navbar .d-flex {
        max-width: 500px !important;
    }
    
    .row-cols-md-4 {
        --bs-columns: 3 !important;
    }
    
    .card-img-top {
        height: 240px !important;
    }
    
    .stat-card {
        padding: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2.2rem !important;
    }
    
    .action-bar {
        flex-direction: row !important;
    }
    
    .filter-group {
        flex-direction: row !important;
    }
    
    .table-header {
        flex-direction: row !important;
    }
    
    .action-buttons {
        flex-direction: row !important;
    }
    
    .modal-dialog {
        margin: 1.75rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .row-cols-md-4 {
        --bs-columns: 4 !important;
    }
    
    .card-img-top {
        height: 250px !important;
    }
    
    .navbar .d-flex {
        max-width: 600px !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px !important;
    }
    
    .navbar .d-flex {
        max-width: 700px !important;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .page-header {
        padding: 0.75rem 0 !important;
    }
    
    .page-title {
        font-size: 1.5rem !important;
    }
    
    .header-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .stat-card {
        padding: 0.75rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .container-fluid.border-bottom,
    .btn,
    .action-buttons {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .card {
        break-inside: avoid !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover,
    .stat-card:hover,
    .btn:hover {
        transform: none !important;
    }
}

 