@media screen and (max-width: 768px) {

    .navbar-nav .nav-link::before {
        display:none;
    }
    .navbar-light .navbar-nav .nav-link.active,
    .navbar-light .navbar-nav .show>.nav-link,
    .navbar-nav .nav-link:hover{
        background: rgba(0, 0, 0, .1)
    }
    
    .show .dropdown .dropdown-menu{
        width: 100%;
    }
    .show .dropdown .dropdown-menu.show{
        position: relative;
        z-index: 1;
    }
    #form-section .form-ctn{
        min-width: 100%;
    }
    
    .admin-nav{
		left:-300px;
	}
	.admin-nav.active{
		left:0;
		width:300px;
	}
    .admin-nav.active .admin-user-ctn {
        padding:12px 0;
        margin-bottom: 8px;
        box-shadow:0 0 0 1px var(--faint-light);
        height: auto;        
    }

    .admin-main{
		width:100%;
		left:0;
	}
	.admin-main.active{
		left:300px;
		width:calc(100% - 300px);
        white-space:nowrap;
	}
	.admin-main .admin-top-bar{
        position:fixed;
        width:100%;
    }
    
    .admin-search-box{
		width:80%;
	}

    .admin-search-box{
        max-width: 300px;
    }

    /* Mobile Navigation Enhancements */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 0.375rem;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    /* Mobile Menu Improvements */
    .navbar-collapse {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding-top: 1rem;
    }

    /* Touch-friendly buttons and links */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Mobile card spacing */
    .card {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Mobile form improvements */
    .form-control, .form-select {
        font-size: 1rem;
        padding: 0.75rem;
        border-radius: 0.375rem;
        min-height: 44px;
    }

    .form-label {
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* Mobile table responsiveness */
    .table-responsive {
        border: none;
    }

    .table-responsive .table {
        margin-bottom: 0;
    }

    /* Mobile modal improvements */
    .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    .modal-content {
        border-radius: 0.5rem;
    }

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

    .modal-body {
        padding: 1.25rem;
    }

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

    /* Mobile badge improvements */
    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        border-radius: 0.375rem;
    }

    /* Mobile list group improvements */
    .list-group-item {
        padding: 0.75rem 1.25rem;
        border-radius: 0.375rem;
        margin-bottom: 0.25rem;
    }

    /* Mobile breadcrumb improvements */
    .breadcrumb {
        font-size: 0.875rem;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        content: "/";
        padding: 0 0.5rem;
    }

    /* Mobile pagination improvements */
    .pagination {
        justify-content: center;
    }

    .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 44px;
        text-align: center;
    }

    /* Mobile progress bar improvements */
    .progress {
        height: 0.75rem;
        border-radius: 0.375rem;
    }

    /* Mobile tab improvements */
    .nav-tabs {
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }

    .nav-tabs .nav-link {
        border: none;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        padding: 0.75rem 1rem;
        font-weight: 500;
    }

    .nav-tabs .nav-link.active {
        border-bottom-color: #007bff;
        background-color: transparent;
    }

    /* Mobile dropdown improvements */
    .dropdown-menu {
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        border-radius: 0.375rem;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Mobile input group improvements */
    .input-group-text {
        background-color: #f8f9fa;
        border: 1px solid #ced4da;
        color: #6c757d;
        padding: 0.75rem;
        min-height: 44px;
    }

    /* Mobile custom controls */
    .custom-control-label {
        font-size: 0.9rem;
        padding-left: 0.5rem;
    }

    .custom-control-input:checked ~ .custom-control-label::before {
        background-color: #007bff;
        border-color: #007bff;
    }

    /* Mobile floating action button for PWA */
    .fab {
        position: fixed;
        bottom: 2rem;
        right: 1rem;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background-color: #007bff;
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
        z-index: 1030;
        display: none; /* Hidden by default, shown when PWA install available */
    }

    .fab:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

    /* Mobile-specific spacing adjustments */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile search improvements */
    .search-container {
        margin-bottom: 1rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem 0 0 0.5rem;
        border-right: none;
        min-height: 44px;
    }

    .search-btn {
        border-radius: 0 0.5rem 0.5rem 0;
        padding: 0.75rem 1.25rem;
        min-height: 44px;
    }

    /* Mobile notification bell improvements */
    .notification-bell {
        position: relative;
        font-size: 1.25rem;
    }

    .notification-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: #dc3545;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }

    /* Mobile dashboard widget improvements */
    .dashboard-widget {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .widget-header {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
        font-weight: 600;
    }

    .widget-body {
        padding: 1rem;
    }

    /* Mobile job card improvements */
    .job-card {
        border: 1px solid #e9ecef;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        padding: 1rem;
        transition: all 0.2s ease;
    }

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

    .job-title {
        font-size: 1.1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #007bff;
    }

    .job-company {
        color: #6c757d;
        font-weight: 500;
        margin-bottom: 0.25rem;
    }

    .job-location {
        color: #6c757d;
        font-size: 0.9rem;
    }

    /* Mobile footer improvements */
    .footer {
        padding: 2rem 0 1rem;
        background-color: #f8f9fa;
        border-top: 1px solid #e9ecef;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-link {
        color: #6c757d;
        text-decoration: none;
        font-size: 0.9rem;
        padding: 0.5rem;
        border-radius: 0.25rem;
        transition: all 0.2s ease;
    }

    .footer-link:hover {
        color: #007bff;
        background-color: rgba(0, 123, 255, 0.1);
    }

    /* PWA install button styles */
    #pwa-install-btn {
        display: none;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 2rem;
        padding: 0.75rem 2rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        z-index: 1040;
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0% { transform: translateX(-50%) scale(1); }
        50% { transform: translateX(-50%) scale(1.05); }
        100% { transform: translateX(-50%) scale(1); }
    }

    /* Offline indicator */
    .offline-indicator {
        position: fixed;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background-color: #ffc107;
        color: #212529;
        text-align: center;
        padding: 1rem;
        font-weight: 500;
        z-index: 1050;
        display: none !important;
        border-radius: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .offline-indicator.show {
        display: block !important;
        animation: slideUp 0.3s ease;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    /* Mobile-specific animations */
    @media (prefers-reduced-motion: no-preference) {
        .card, .btn, .job-card {
            transition: all 0.2s ease;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .btn-primary {
            background-color: #000;
            border-color: #000;
        }

        .card {
            border: 2px solid #000;
        }
    }

    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
        .card {
            background-color: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
        }

        .form-control {
            background-color: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
        }

        .form-control:focus {
            background-color: #2d3748;
            border-color: #63b3ed;
            color: #e2e8f0;
        }

        .dropdown-menu {
            background-color: #2d3748;
            border-color: #4a5568;
        }

        .dropdown-item {
            color: #e2e8f0;
        }

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