/* Mobile-First CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --border-radius: 10px;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* Layout Containers */
.login-body {
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 15px;
}

.login-container, .registration-container {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.registration-container {
    max-width: 500px;
    margin: 20px auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover, .btn-primary:focus {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-secondary:hover, .btn-secondary:focus {
    background: #545b62;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    width: auto;
    padding: 0.5rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.text-muted {
    color: var(--gray) !important;
}

/* Dashboard Styles */
.dashboard {
    padding: 1rem;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--dark);
}

.stat-label {
    color: var(--gray);
    font-size: 0.8rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 1.25rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.action-card:hover, .action-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.hero-section h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Job Cards */
.job-card {
    transition: var(--transition);
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

/* Service Icons */
.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* OTP Input */
.otp-input {
    letter-spacing: 6px;
    font-size: 1.25rem;
    text-align: center;
    font-weight: bold;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 100%;
}

/* Type Cards */
.type-card {
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.type-card:hover, .type-card:focus {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.type-card.selected {
    border-color: var(--primary);
    background-color: #f8f9fa;
}

/* Main Content Area */
.main-content {
    padding: 1rem;
    background: #f8f9fa;
    min-height: calc(100vh - 56px);
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    background: var(--primary);
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.stat-info p {
    color: var(--gray);
    font-size: 0.8rem;
    margin: 0;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
}

.content-section h2 {
    margin-bottom: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.content-section p {
    line-height: 1.6;
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* Admin Links */
.admin-links {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-links a:hover, .admin-links a:focus {
    text-decoration: underline;
}

/* Enhanced Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 0.5rem;
    flex: 1;
    text-align: center;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Side Navigation for Mobile */
.side-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1001;
    padding: 1rem;
    overflow-y: auto;
}

.side-nav.open {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Enhanced Form Styles */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Card Grid Improvements */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

/* Search and Filter Components */
.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    padding-left: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.filter-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Button Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-group .btn {
    flex: 1;
    margin-bottom: 0;
}

/* Badges and Labels */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--gray);
    color: white;
}

.badge-primary {
    background: var(--primary);
}

.badge-success {
    background: var(--success);
}

.badge-warning {
    background: var(--warning);
    color: var(--dark);
}

.badge-danger {
    background: var(--danger);
}

/* Modal for Mobile */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1002;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Additional Utility Classes */
.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enhanced Mobile Responsive Features */

/* Improved Touch Targets for Mobile */
@media (max-width: 768px) {
    .btn, 
    .action-card, 
    .nav-item, 
    .filter-tab {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        font-size: 16px;
    }
}

/* Enhanced Mobile Navigation with Safe Areas */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.75rem;
    padding: 0.5rem;
    flex: 1;
    text-align: center;
    transition: var(--transition);
    border-radius: 8px;
}

.nav-item.active {
    color: var(--primary);
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* Swipeable Carousel for Mobile */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    touch-action: pan-y;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Pull-to-Refresh Animation */
.pull-to-refresh {
    position: relative;
    overflow: hidden;
}

.ptr-element {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.ptr-element.active {
    transform: translateY(0);
}

/* Enhanced Mobile Forms */
@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .radio-option,
    .checkbox-option {
        margin-bottom: 0.5rem;
    }
}

/* Mobile-Optimized Data Tables */
@media (max-width: 768px) {
    .data-table {
        display: block;
    }
    
    .data-table thead {
        display: none;
    }
    
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }
    
    .data-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius);
        padding: 0.75rem;
    }
    
    .data-table td {
        padding: 0.5rem 0;
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    .data-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        width: 45%;
        font-weight: 600;
        color: var(--dark);
    }
}

/* Enhanced Mobile Search */
.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-clear {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    display: none;
}

.search-input:not(:placeholder-shown) + .search-clear {
    display: block;
}

/* Mobile-First Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 576px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile-Optimized Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card-horizontal {
    display: flex;
    flex-direction: row;
}

@media (max-width: 576px) {
    .card-horizontal {
        flex-direction: column;
    }
}

.card-media {
    position: relative;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1rem;
}

.card-actions {
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Enhanced Mobile Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

@media (min-width: 769px) {
    .modal {
        align-items: center;
    }
    
    .modal-content {
        border-radius: var(--border-radius);
        max-height: 90vh;
        transform: scale(0.9);
    }
    
    .modal.active .modal-content {
        transform: scale(1);
    }
}

/* Mobile-First Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* Enhanced Mobile Typography */
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover, .action-card:hover, .job-card:hover, .stat-card:hover, .type-card:hover {
        transform: none;
    }
    
    .btn:active, .action-card:active, .job-card:active, .stat-card:active, .type-card:active {
        transform: scale(0.98);
    }
}

/* Small screen adjustments */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
    
    .login-container, .registration-container {
        padding: 1rem;
    }
    
    .stats-grid, .action-grid, .stats-container {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .login-body {
        padding: 10px;
        align-items: flex-start;
    }
    
    .login-container {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Safe Area Insets for Notched Devices */
@supports (padding: max(0px)) {
    .mobile-bottom-nav,
    .modal-content {
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    }
    
    .mobile-header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #2d3748;
        --dark: #f7fafc;
    }
    
    body {
        background-color: #1a202c;
        color: #e2e8f0;
    }
    
    .login-container, .registration-container, 
    .stat-card, .action-card, .job-card,
    .content-section {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .form-control {
        background: #4a5568;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .form-control:focus {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .text-muted {
        color: #a0aec0 !important;
    }
    
    .skeleton {
        background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
    }
    
    .mobile-bottom-nav {
        background: #2d3748;
        border-top-color: #4a5568;
    }
}

/* Enhanced Responsive Breakpoints */
@media (min-width: 576px) {
    .mobile-nav {
        display: none;
    }
    
    .menu-toggle {
        display: none;
    }
}

@media (max-width: 575px) {
    .desktop-nav {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .mobile-nav,
    .menu-toggle,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card, .content-section {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}