/* ================================
   MOBILE RESPONSIVE CSS - UPDATED
================================ */

/* ===== GLOBAL MOBILE RESET ===== */
@media (max-width: 768px) {
    /* Reset box-sizing and spacing */
    * {
        box-sizing: border-box;
    }
    
    body {
        font-size: 14px;
        line-height: 1.4;
        overflow-x: hidden;
    }
    
    /* ===== LAYOUT STRUCTURE ===== */
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 85%;
        max-width: 300px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .dashboard-sidebar.mobile-open {
        left: 0;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
        width: 100%;
    }
    
    .dashboard-content {
        padding: 1rem !important;
        width: 100%;
    }
    
    /* ===== ENHANCED HEADER & NAVIGATION ===== */
    .dashboard-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 0.75rem 1rem !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        text-align: left !important;
        min-height: auto;
        background: white;
        z-index: 998;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-top: 0;
    }
    
    .header-left {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .header-left h1 {
        font-size: 1.3rem !important;
        margin-bottom: 0 !important;
        margin-left: 3.5rem;
    }
    
    .header-left p {
        display: none; /* Hide subtitle in mobile header */
    }
    
    .header-right {
        width: auto !important;
        justify-content: flex-end !important;
    }
    
    .user-profile {
        padding: 0.5rem;
        min-width: auto;
        width: auto;
        margin: 0;
    }
    
    .user-details {
        display: none; /* Hide on mobile */
    }
    
    /* Mobile menu button - fixed position */
    .mobile-menu-btn {
        display: flex !important;
        position: absolute;
        top: 50;
        left: 1rem;
        z-index: 999;
        background: white;
        border: 1px solid var(--sidebar-border);
        border-radius: 8px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin: 0;
    }
    
    /* ===== PAGE HEADER SECTION ===== */
    .page-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
        text-align: left;
        padding: 1rem 0 1.5rem;
        margin-bottom: 1.5rem;
        margin-top: 5rem; /* Increased space for fixed header */
    }
    
    .page-header-content {
        order: 1;
        text-align: left;
    }
    
    .page-header-content h1.page-main-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        color: var(--gcesz-casal);
        text-align: left;
    }
    
    .page-header-content p.page-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0;
        color: var(--gcesz-gray);
        font-weight: 300;
        text-align: left;
    }
    
    .page-side-content {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .page-side-content .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        margin: 0 !important;
        min-height: 48px;
        border-radius: 10px;
        font-weight: 500;
    }
    
    #continueApplicationBtn {
        background: linear-gradient(135deg, var(--gcesz-yuma), var(--gcesz-brandy-rose));
        border: none;
        color: var(--gcesz-shaft);
    }
    
    .page-side-content .btn-primary {
        background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
        border: none;
        color: white;
    }
    
    /* ===== APPLICATIONS LAYOUT ===== */
    .applications-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* ===== VERTICAL STATS SECTION ===== */
    .vertical-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        display: grid;
    }
    
    .vertical-stat-item {
        padding: 1.25rem 1rem 2rem 1rem;
        text-align: center;
        position: relative;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid var(--sidebar-border);
    }
    
    .vertical-stat-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .vertical-stat-number {
        font-size: 1.5rem;
        line-height: 1;
        font-weight: 700;
        color: var(--gcesz-casal);
    }
    
    .vertical-stat-label {
        font-size: 0.8rem;
        color: var(--gcesz-gray);
        font-weight: 500;
    }
    
    /* Hide progress bars, show percentages as badges */
    .vertical-stat-progress {
        display: none !important;
    }
    
    .vertical-progress-percentage {
        position: absolute;
        bottom: 0.75rem;
        right: 1rem;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        background: rgba(87, 163, 148, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 12px;
        border: 1px solid rgba(87, 163, 148, 0.2);
    }
    
    /* Color-coded percentage badges */
    .vertical-stat-item:nth-child(1) .vertical-progress-percentage {
        color: var(--gcesz-casal) !important;
        background: rgba(50, 101, 115, 0.1);
        border-color: rgba(50, 101, 115, 0.2);
    }
    
    .vertical-stat-item:nth-child(2) .vertical-progress-percentage {
        color: var(--gcesz-yuma) !important;
        background: rgba(197, 187, 133, 0.1);
        border-color: rgba(197, 187, 133, 0.2);
    }
    
    .vertical-stat-item:nth-child(3) .vertical-progress-percentage {
        color: var(--gcesz-breaker-bay) !important;
        background: rgba(87, 163, 148, 0.1);
        border-color: rgba(87, 163, 148, 0.2);
    }
    
    .vertical-stat-item:nth-child(4) .vertical-progress-percentage {
        color: var(--gcesz-gray) !important;
        background: rgba(146, 141, 137, 0.1);
        border-color: rgba(146, 141, 137, 0.2);
    }
    
    /* ===== ENHANCED FILTER SECTION ===== */
    .filter-section {
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border: 1px solid #e8ecef;
        box-shadow: 0 2px 8px rgba(50, 101, 115, 0.06);
    }
    
    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-tab {
        padding: 0.875rem 0.5rem;
        border: 2px solid #e8ecef;
        border-radius: 12px;
        background: white;
        color: var(--gcesz-gray);
        font-weight: 500;
        font-size: 0.8rem;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        position: relative;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    }
    
    .filter-tab.active {
        background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 12px rgba(87, 163, 148, 0.25);
        transform: translateY(-1px);
        font-weight: 600;
    }
    
     /* Remove filter check indicator */
    .filter-tab.active::before {
        display: none !important;
    }
    
    .filter-tab:not(.active):hover {
        border-color: var(--gcesz-breaker-bay);
        color: var(--gcesz-breaker-bay);
        background: white;
        transform: translateY(-1px);
    }
    
    /* Enhanced search box */
    .search-box {
        position: relative;
        max-width: 100%;
    }
    
    .search-box i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gcesz-gray);
        z-index: 2;
        font-size: 1.1rem;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.875rem 1rem 0.875rem 3rem;
        border: 2px solid #e8ecef;
        border-radius: 12px;
        font-size: 0.9rem;
        background: white;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
        min-height: 48px;
    }
    
    .search-box input:focus {
        outline: none;
        border-color: var(--gcesz-breaker-bay);
        box-shadow: 0 0 0 3px rgba(87, 163, 148, 0.1);
        background: white;
    }
    
    /* ===== APPLICATION CARDS GRID ===== */
    .application-cards {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .application-card {
        position: relative;
    }
    
    .card-header {
        padding: 1.25rem !important;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    .card-footer {
        padding: 1.25rem !important;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        background: #fafbfc;
        border-top: 1px solid #f1f5f9;
    }
    
    .action-buttons {
        justify-content: center !important;
        order: -1;
        gap: 0.5rem;
    }
    
    .btn-icon {
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ===== ENHANCED APPLICATION CONTENT ===== */
    .applicant-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .applicant-avatar {
        margin: 0 auto;
    }
    
    .parcel-summary {
        padding: 1rem !important;
        position: relative;
    }
    
    .parcel-header {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        position: relative;
        padding-right: 0; /* Increased space for count badge */
    }

    .parcel-title-section {
        flex: 1;
        min-width: 0;
        padding-right: 3rem;
    }

    /* Enhanced plots count badge - positioned closer to right edge */
    .plots-count-badge {
        position: absolute;
        top: -0.25rem;
        right: 1rem;
        background: var(--gcesz-breaker-bay);
        color: white;
        padding: 0.25rem 0.6rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 700;
        min-width: 24px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        z-index: 2;
    }
    
    /* Horizontal plot arrangement - items above "View All Plots" button */
    .parcel-plots {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.75rem;
        justify-content: flex-start !important;
        text-align: left !important;
    }
    
    .plot-item {
        background: rgba(87, 163, 148, 0.1);
        border: 1px solid rgba(87, 163, 148, 0.2);
        border-radius: 8px;
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        color: var(--gcesz-breaker-bay);
        font-weight: 500;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: left;
    }

    .parcel-preview {
        justify-content: left;
    }
    
    /* ===== STATUS BADGES ===== */
    .status-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: 20px;
        font-weight: 600;
    }
    
    /* ===== LOADING & EMPTY STATES ===== */
    .loading-state,
    .empty-state {
        padding: 3rem 1rem !important;
        text-align: center;
    }
    
    .loading-state .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    .empty-state i {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    
    .empty-state h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .empty-state p.section-desc {
        font-size: 0.9rem !important;
    }
    
    /* ===== STATS GRID ===== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem !important;
        text-align: center;
    }
    
    .stat-header {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat-value {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.8rem !important;
    }
    
    /* ===== CONTENT GRID ===== */
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .chart-section,
    .activity-section {
        padding: 1.5rem !important;
    }
    
    /* ===== NAVIGATION ENHANCEMENTS ===== */
    .nav-link {
        padding: 1rem !important;
        min-height: 44px;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    /* ===== FORM ELEMENTS ===== */
    .form-control {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .form-section {
        padding: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.1rem !important;
    }
    
    /* ===== MODAL & OVERLAY COMPONENTS ===== */
    .modal-dialog {
        margin: 0 !important;
        max-width: calc(100% - 1rem) !important;
        min-height: 100vh !important;
        height: 100% !important;
    }
    
    .modal-content {
       border-radius: 0 !important;
        height: 100% !important;
        min-height: 100vh !important;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
       padding: 1rem !important;
        flex-shrink: 0;
        border-bottom: 1px solid #dee2e6;
    }
    
    .modal-body {
         padding: 1rem !important;
        flex: 1;
        overflow-y: auto;
        max-height: none !important;
    }
    
    .modal-footer {
         padding: 1rem !important;
        flex-direction: column;
        gap: 0.75rem;
        flex-shrink: 0;
        border-top: 1px solid #dee2e6;
    }
    
    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* ===== TABLES ===== */
    .applications-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .applications-table th,
    .applications-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* ===== UTILITY CLASSES ===== */
    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* ===== TYPOGRAPHY SCALING ===== */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.3rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 1rem !important; }
    h5 { font-size: 0.9rem !important; }
    h6 { font-size: 0.85rem !important; }
    
    /* ===== ICON SIZES ===== */
    .nav-icon,
    .btn i,
    .card-header i {
        font-size: 1.1rem !important;
    }
}

/* ===== SMALL MOBILE DEVICES (Phones) ===== */
@media (max-width: 480px) {
    .dashboard-content {
        padding: 0.75rem !important;
    }
    
    /* Enhanced header for small screens */
    .dashboard-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    .parcel-title-section {
        padding-right: 2.5rem; /* Adjust space for very small badge */
    }

    .header-left h1 {
        font-size: 1.1rem !important;
        margin-left: 2.75rem;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
          top: 50%;
        left: 0.75rem;
        transform: translateY(-50%);
    }
    
    /* Compact stats */
    .vertical-stats {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .vertical-stat-item {
        padding: 1rem 0.875rem 1.75rem 0.875rem;
    }
    
    .vertical-stat-number {
        font-size: 1.25rem;
    }
    
    .vertical-progress-percentage {
        bottom: 0.5rem;
        right: 0.875rem;
        font-size: 0.75rem !important;
        padding: 0.2rem 0.6rem;
    }
    
    /* Enhanced plots count badge for small screens */
    .plots-count-badge {
        top: -0.2rem;
        right: 0.875rem;
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Compact filters */
    .filter-tabs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.75rem 0.375rem;
        font-size: 0.75rem;
        min-height: 40px;
    }
    
    .filter-section {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    /* Compact cards */
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem !important;
    }
    
    /* Single column stats grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .page-header {
        margin-top: 4.5rem; /* Adjusted for smaller header */
    }
}


@media (max-width: 768px) {
/* ===== PAGE HEADER SECTION ===== */
.page-header {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    text-align: left;
    padding: 1rem 0 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
}

.page-header-content {
    order: 1;
    text-align: left;
}

.page-header-content h1.page-main-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    color: var(--gcesz-casal);
    text-align: left;
}

.page-header-content p.page-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 0;
    color: var(--gcesz-gray);
    font-weight: 300;
    text-align: left;
}

/* ===== VERTICAL STATS SECTION ===== */
.vertical-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    display: grid;
}

.vertical-stat-item {
    padding: 1.25rem 1rem 2rem 1rem;
    text-align: left;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--sidebar-border);
}

.vertical-stat-header {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.vertical-stat-number {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--gcesz-casal);
    text-align: left;
}

.vertical-stat-label {
    font-size: 0.8rem;
    color: var(--gcesz-gray);
    font-weight: 500;
    text-align: left;
}
}
/* ===== VERY SMALL DEVICES (Small phones) ===== */
@media (max-width: 360px) {
    .dashboard-content {
        padding: 0.5rem !important;
    }
    
    /* Header adjustments for very small screens */
    .dashboard-header {
        padding: 0.5rem !important;
    }
    
    
    .header-left h1 {
        font-size: 1rem !important;
        margin-left: 2.5rem;
    }
    
    .mobile-menu-btn {
        left: 0.5rem;
        width: 36px;
        height: 36px;
    }
    
    /* Single column filters */
    .filter-tabs {
        grid-template-columns: 1fr;
    }
    
    .filter-tab {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Hide checkmark on very small screens */
    .filter-tab.active::before {
        display: none !important;
    }
    
    /* Enhanced plots count badge for very small screens */
    .plots-count-badge {
        top: -0.15rem;
        right: 0.75rem;
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .parcel-title-section {
        padding-right: 2.25rem; /* Adjust space for very small badge */
    }

    /* Adjust stat item padding */
    .vertical-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .vertical-stat-item {
        padding: 1rem 0.75rem 1.75rem 0.75rem;
    }
    
    .vertical-progress-percentage {
        right: 0.75rem;
        bottom: 0.375rem;
    }
    
    /* Compact buttons */
    .page-side-content .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    .btn-icon {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-sidebar {
        width: 250px;
    }
    
    .dashboard-main {
        margin-left: 250px !important;
    }
    
    .applications-layout {
        grid-template-columns: 280px 1fr;
    }
    
    .vertical-stats {
        grid-template-columns: 1fr;
    }
    
    /* Keep progress bars visible on tablets */
    .vertical-stat-progress {
        display: block !important;
    }
    
    .vertical-progress-percentage {
        position: static;
        background: none;
        padding: 0;
        border: none;
        color: var(--gcesz-gray) !important;
        font-weight: 400 !important;
        text-align: right;
    }
    
    .application-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Enhanced filter styling for tablets */
    .filter-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-tab {
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .dashboard-content {
        padding: 0.75rem !important;
    }
    
    .dashboard-header {
        position: relative;
        padding: 0.75rem 1rem !important;
    }
    
    .page-header {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .page-side-content {
        flex-direction: row;
        width: auto;
    }
    
    .page-side-content .btn {
        width: auto;
        min-width: 140px;
    }
    
    .vertical-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .application-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Reduce vertical spacing in landscape */
    .applications-layout {
        gap: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
}

/* ===== DARK MODE SUPPORT ===== */
/* @media (max-width: 768px) and (prefers-color-scheme: dark) {
    .dashboard-header {
        background: #1a1a1a;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .filter-section {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        border-color: #333;
    }
    
    .filter-tab {
        background: #2d2d2d;
        border-color: #444;
        color: #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .filter-tab:not(.active):hover {
        border-color: var(--gcesz-breaker-bay);
        color: var(--gcesz-breaker-bay);
        background: #2d2d2d;
    }
    
    .filter-tab.active {
        background: linear-gradient(135deg, var(--gcesz-breaker-bay), var(--gcesz-casal));
        color: white;
    }
    
    .search-box input {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    
    .search-box input:focus {
        border-color: var(--gcesz-breaker-bay);
        background: #2d2d2d;
    }
    
    .search-box i {
        color: #888;
    }
    
    .vertical-stat-item,
    .application-card,
    .stat-card {
        background: #1a1a1a;
        border-color: #333;
        color: #fff;
    }
    
    .vertical-progress-percentage {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu-btn {
        background: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
} */

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (max-width: 768px) {
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .filter-tab {
            border-width: 3px;
        }
        
        .filter-tab.active {
            border-width: 3px;
            border-color: #000;
        }
        
        .vertical-progress-percentage {
            border-width: 2px;
            font-weight: 800;
        }
        
        .btn {
            border-width: 2px;
        }
        
        .plots-count-badge {
            border: 2px solid #000;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        .filter-tab,
        .search-box input,
        .vertical-stat-item,
        .application-card,
        .btn {
            transition: none;
        }
        
        .filter-tab.active {
            transform: none;
        }
        
        .dashboard-sidebar {
            transition: none;
        }
    }
    
    /* Focus indicators for keyboard navigation */
    .filter-tab:focus-visible {
        outline: 3px solid var(--gcesz-breaker-bay);
        outline-offset: 2px;
    }
    
    .search-box input:focus-visible {
        outline: 3px solid var(--gcesz-breaker-bay);
        outline-offset: 0;
    }
    
    .btn:focus-visible {
        outline: 3px solid var(--gcesz-breaker-bay);
        outline-offset: 2px;
    }
}

/* ===== TOUCH FRIENDLY ENHANCEMENTS ===== */
@media (max-width: 768px) {
    /* Improve touch targets */
    .filter-tab,
    .btn,
    .vertical-stat-item,
    .application-card {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Smooth transitions for mobile */
    .vertical-stat-item,
    .application-card,
    .filter-tab,
    .btn {
        transition: all 0.2s ease;
    }
    
    .vertical-stat-item:active,
    .application-card:active,
    .filter-tab:active {
        transform: scale(0.98);
    }
    
    /* Ripple effect on filter tap */
    .filter-tab {
        position: relative;
        overflow: hidden;
    }
    
    .filter-tab::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(87, 163, 148, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
    }
    
    .filter-tab:active::after {
        width: 100px;
        height: 100px;
    }
}

/* ===== PRINT STYLES ===== */
@media print and (max-width: 768px) {
    .dashboard-header,
    .page-side-content,
    .filter-section,
    .action-buttons,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .applications-layout {
        grid-template-columns: 1fr;
    }
    
    .vertical-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .application-cards {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none !important;
    }
    
    .dashboard-main {
        margin-left: 0 !important;
    }
    
    .page-header {
        margin-top: 0;
    }
}