body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: #f5f5f5; 
}

/* Navbar Styles */
.navbar {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.navbar-brand-container {
    display: flex;
    align-items: center;
}

.navbar-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-brand-text {
    color: #ecf0f1;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: rgba(0, 0, 0, 0.7) 2px 2px 4px;
}

.navbar-brand-link:hover .navbar-brand-text {
    #color: #536069;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Navbar Styles */
@media (max-width: 800px) {
    .navbar-container {
        padding: 0 1rem;
        flex-wrap: wrap;
    }
    
    .navbar-logo {
        height: 35px;
    }
    
    .navbar-brand-text {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .navbar-nav {
        order: 4;
    }
    
    .nav-menu {
        width: 100%;
        flex-direction: column;
        background-color: #34495e;
        margin-top: 1rem;
        border-radius: 8px;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
        text-align: left;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Hamburger animation */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.5rem;
    }
    
    .navbar-logo {
        height: 30px;
    }
    
    .navbar-brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-brand-link {
        gap: 0.5rem;
    }
    
    .parameters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .parameters-info-card {
        min-width: auto;
    }
    
    /* Remove padding from max-width 1200px containers on mobile */
    [style*="max-width: 1200px"],
    .navbar-container,
    .info-section,
    .live-data-section,
    .submit-main-container,
    .instructions-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Mobile date filter alignment fixes */
    div[style*="display: inline-block"][style*="marginRight: 2rem"],
    div[style*="display: inline-block"] {
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    /* Date picker container alignment */
    .DateInput,
    .DateInput_input {
        width: 100% !important;
        max-width: none !important;
    }
    
    /* Date filter labels */
    label[style*="marginRight: 0.5rem"] {
        margin-bottom: 0.5rem !important;
        display: block !important;
        font-weight: bold !important;
    }
}

/* Small-screen tweak: align hero primary button left under 390px */
@media (max-width: 390px) {
    .hero-buttons {
        text-align: left !important;
    }
    .hero-btn-primary {
        padding: 0.25rem !important;
        font-size: 0.9rem !important;
        margin-right: 5px !important;
    }
    .hero-btn-secondary {
        padding: 0.25rem !important;
        font-size: 0.9rem !important;
        margin-right: 0px !important;
    }
}

/* Hero button hover effects */
.hero-btn-primary:hover {
    background-color: #c0392b !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background-color: #2980b9 !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.hero-btn-primary, .hero-btn-secondary {
    transition: all 0.3s ease;
}

/* Standardized button hover effects */
.btn-standard {
    transition: all 0.2s ease !important;
}

.btn-standard:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
}

/* Specific button type hover effects */
.btn-clear-filters:hover {
    background-color: #5a6268 !important;
}

.btn-export-csv:hover {
    background-color: #218838 !important;
}

.btn-submit:hover {
    background-color: #2980b9 !important;
}

.btn-details:hover {
    background-color: #2980b9 !important;
}

.btn-home-details:hover {
    background-color: #2980b9 !important;
}

.btn-subscribe:hover {
    background-color: #229954 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-standard:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Admin Styles */
.admin-link {
    color: #e74c3c !important;
    font-weight: 600;
}

.admin-link:hover {
    color: #c0392b !important;
    background-color: rgba(231, 76, 60, 0.1);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.admin-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.admin-tab.active-tab {
    background-color: white;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

.admin-samples-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.admin-samples-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.admin-samples-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.admin-samples-table tr:hover {
    background-color: #f8f9fa;
}

.sample-status-validated {
    color: #28a745;
    font-weight: 600;
}

.sample-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.admin-action-btn {
    padding: 6px 12px;
    margin: 0 2px;
    font-size: 0.85rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-validate {
    background-color: #28a745;
    color: white;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

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

.admin-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.admin-stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.admin-stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Home Page Styles */
.hero-section {
    position: relative;
    height: 500px;
    margin-bottom: 3rem;
}

.hero-image {
    width: 100vw;
    max-width: 1200px;
    height: 500px;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 10px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: 1200px;
    height: 500px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-logo-container {
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}

.hero-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}



.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

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

.hero-btn-primary {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.hero-btn-secondary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.photo-credit-container {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 3;
    max-width: 1200px;
    width: 100vw;
    margin: 0 auto;
    transform: translateX(0);
}

.photo-credit {
    font-size: 0.8rem;
    opacity: 0.8;
    text-align: right;
    font-style: italic;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    margin: 0;
    padding: 0 20px 10px 0;
}

.live-data-section {
    background-color: white;
    margin: 2rem auto;
    padding: 3rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100vw;
}

.live-data-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.live-parameters {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.info-section {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.parameters-info-card {
    flex: 2;
    min-width: 600px;
}

.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.parameter-group {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.parameter-group h4 {
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.parameter-group ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.parameter-group li {
    margin-bottom: 0.3rem;
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Submit page specific styles */
.page-title {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}



.form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.fields-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fields-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.fields-row .form-field {
    flex: 1;
    min-width: 250px;
}

.note-text {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.submit-section {
    margin-top: 2rem;
    text-align: center;
}



.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.info-title {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.info-list {
    margin-left: 1.5rem;
    line-height: 1.6;
}

.info-list li {
    margin-bottom: 0.5rem;
    color: #34495e;
}

/* Submit page redesigned styles */
.submit-page-container {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.submit-hero-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.submit-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.submit-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.instructions-section {
    background-color: white;
    margin: 2rem auto;
    padding: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: calc(100% - 2rem);
}

.instructions-title {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.instructions-list {
    margin-left: 1.5rem;
    line-height: 1.8;
    color: #34495e;
    font-size: 1.1rem;
}

.instructions-list li {
    margin-bottom: 0.8rem;
}

.submit-main-container {
    background-color: white;
    margin: 2rem auto;
    padding: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100vw;
}

.submit-form-section {
    background-color: white;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
    flex: 1;
    min-width: 300px;
}

.submit-form-section:last-of-type {
    margin-bottom: 2rem;
}

.submit-section-title {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.submit-fields-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem 3rem;
    align-items: start;
}

.form-row-aligned {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
    min-width: 0;
}

.form-label-aligned {
    font-weight: 500;
    color: #2c3e50;
    font-size: 1rem;
    text-align: left;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1;
}

.form-input-aligned {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #34495e;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input-aligned:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-dropdown-aligned {
    width: 100%;
    box-sizing: border-box;
}

.form-dropdown-aligned .Select-control {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #34495e;
    background-color: white;
    margin-top: 5px;
    margin-bottom: 5px;
}

.form-dropdown-aligned .Select-control:hover {
    border-color: #bdc3c7;
}

.form-dropdown-aligned .Select-control.is-focused {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-dropdown-aligned .Select-placeholder {
    color: #7f8c8d;
    font-size: 1rem;
}

.form-dropdown-aligned .Select-value-label {
    color: #34495e !important;
    font-size: 1rem;
}

.form-dropdown-aligned .Select-arrow {
    border-top-color: #7f8c8d;
}

.form-dropdown-aligned .Select-menu-outer {
    border: 2px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-dropdown-aligned .Select-option {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #34495e;
    background-color: white;
}

.form-dropdown-aligned .Select-option:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.form-dropdown-aligned .Select-option.is-focused {
    background-color: #3498db;
    color: white;
}

.section-note {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    flex: 1;
    min-width: 300px;
}



.submit-status {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: left;
    display: none;
}

.submit-status.show {
    display: block !important;
}

.submit-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.submit-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important;
}

/* Validation alerts within submit-status */
.submit-status .validation-warning {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    color: #f57c00;
}

.submit-status .validation-error {
    background-color: #ffebee;
    border: 1px solid #f44336;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    color: #d32f2f;
}

.submit-status ul {
    margin: 0 0 0 0;
    padding-left: 1.2rem;
}

.submit-status li {
    margin-bottom: 0.3rem;
}

.submit-button-section {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.submit-btn {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    min-width: 200px;
}

/* Tablet responsive for submit page */
@media (max-width: 1100px) {
    .instructions-section {
        margin: 1.5rem;
        padding: 2rem 1.5rem;
        width: calc(100% - 3rem);
    }
    
    .instructions-title {
        font-size: 1.6rem;
    }
    
    .instructions-list {
        margin-left: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 1100px) {
    .submit-fields-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row-aligned {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .submit-hero-title {
        font-size: 2.2rem;
    }
    
    .submit-hero-subtitle {
        font-size: 1rem;
    }
    
    .instructions-section {
        margin: 1rem 0.5rem;
        padding: 1.5rem 1rem;
        width: calc(100% - 1rem);
        border-radius: 8px;
    }
    
    .instructions-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .instructions-list {
        margin-left: 0.5rem;
        font-size: 0.95rem;
        line-height: 1.6;
        padding-left: 1rem;
    }
    
    .instructions-list li {
        margin-bottom: 0.6rem;
    }
    
    .submit-form-section {
        padding: 1.5rem;
    }
    
    .form-row-aligned {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
    
    .form-label-aligned {
        margin-bottom: 0.5rem;
    }
    
    .form-input-aligned {
        width: 100%;
    }
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

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

.form-row {
    display: contents;
}

.form-group {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 0.5rem;
    }
    
    .form-section {
        padding: 1rem;
        border-radius: 6px;
    }
}

/* Samples table styling */
.sample-row:hover {
    background-color: #f8f9fa !important;
    transition: background-color 0.2s ease;
}

.sample-row td {
    vertical-align: middle;
}

/* Sortable header styling */
.sortable-header:hover {
    background-color: #e9ecef !important;
    transition: background-color 0.2s ease;
}

.sortable-header:active {
    background-color: #dee2e6 !important;
}

/* Pagination styling */
.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background-color: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.pagination-btn:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

/* Table container responsive design */
@media (max-width: 768px) {
    .samples-table-container {
        font-size: 0.9rem;
    }
    
    .samples-table-container th,
    .samples-table-container td {
        padding: 0.75rem !important;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Date picker styling */
.DateInput_input {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: 1rem;
line-height: 24px;
background-color: #fff;
width: 100%;
padding: 11px 11px 9px;
border: 0;
border-top: 0;
border-right: 0;
border-bottom: 2px solid transparent;
border-left: 0;
border-radius: 0;
}

/* Enhanced table styling */
.samples-table {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.samples-table thead tr {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.samples-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
    position: relative;
}

.samples-table tbody tr {
    transition: all 0.2s ease;
}

.samples-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.samples-table tbody tr:nth-child(even):hover {
    background-color: #e1f5fe !important;
}

.samples-table tbody td {
    font-size: 0.95rem;
    color: #495057;
    vertical-align: middle;
}

/* Sort button hover effects */
.samples-table thead th button:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
    color: #2980b9 !important;
    border-radius: 4px;
}

/* Action button enhanced styling */
.samples-table tbody td a {
    transition: all 0.2s ease;
    font-weight: 500;
}

.samples-table tbody td a:hover {
    background-color: #2980b9!important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Table container shadow enhancement */
.samples-table {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Responsive table improvements */
@media (max-width: 992px) {
    .samples-table {
        font-size: 0.9rem;
    }
    
    .samples-table thead th,
    .samples-table tbody td {
        padding: 0.6rem !important;
    }
    
    .samples-table tbody td a {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 576px) {
    .samples-table {
        font-size: 0.8rem;
    }
    
    .samples-table thead th,
    .samples-table tbody td {
        padding: 0.5rem !important;
    }
    
    .samples-table tbody td a {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 420px) {
    .samples-table {
        font-size: 0.7rem;
    }
    
    .samples-table thead th,
    .samples-table tbody td {
        font-size: 0.7rem;
        padding: 0.5rem !important;
    }
    
    .samples-table tbody td a {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem !important;
    }
}

/* Chart containers - enable horizontal scrolling for all screen sizes */
#visits-chart-container,
#visits-monthly-chart-container {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Chart flex containers - maintain original sizing but enable scrolling */
#visits-chart-container > div[style*="display: flex"],
#visits-monthly-chart-container > div[style*="display: flex"] {
    min-width: max-content !important;
    flex-wrap: nowrap !important;
    width: auto !important;
}

/* Individual chart bars - keep original sizes */
#visits-chart-container > div[style*="display: flex"] > div,
#visits-monthly-chart-container > div[style*="display: flex"] > div {
    flex-shrink: 0 !important;
}

/* Mobile responsive fixes for visualize page controls */
@media (max-width: 480px) {
    /* Visualize controls container - stack vertically on mobile */
    .visualize-controls-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    /* Individual control items - full width on mobile */
    .visualize-control-item {
        flex: none !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    /* Ensure dropdowns take full width */
    .visualize-control-item .Select-control {
        width: 100% !important;
    }
    
    /* Submit form mobile responsive - reduce field width */
    .submit-form-fields {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Admin Panel Mobile Responsive Styles */
    
    /* Admin page background container - reduce padding */
    div[style*="backgroundColor: #f8f9fa"][style*="minHeight: 100vh"] {
        padding: 1rem !important;
    }
    
    /* Admin login form - adjust padding and max width */
    #login-form > div {
        max-width: none !important;
    }
    
    /* Admin login form title - smaller on mobile */
    #login-form h1 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Admin login form inputs - better mobile spacing */
    #login-username, #login-password {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Admin tabs - stack vertically on mobile */
    .admin-tabs {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .admin-tab {
        width: 100% !important;
        text-align: center !important;
        border-radius: 6px !important;
        border-bottom: none !important;
        border-left: 4px solid transparent !important;
    }
    
    .admin-tab.active-tab {
        border-bottom: none !important;
        border-left: 4px solid #3498db !important;
    }
    
    /* Admin dashboard header - stack welcome message and logout button */
    #admin-dashboard > div:first-child > div:first-child > div {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    #logout-btn {
        margin-left: 0 !important;
        margin-top: 1rem !important;
        width: auto !important;
    }
    
    /* Admin statistics grid - single column on mobile */
    .admin-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .admin-stat-card {
        padding: 1rem !important;
    }
    
    .admin-stat-number {
        font-size: 2rem !important;
    }
    
    /* Admin action buttons container - better mobile layout */
    div:has(#select-all-btn) {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    /* First row - select all button */
    #select-all-btn {
        width: 100% !important;
        margin: 0 !important;
        order: -1 !important;
    }
    
    /* Second row - action buttons */
    div:has(#select-all-btn) > button:not(#select-all-btn) {
        flex: 1 1 calc(50% - 0.375rem) !important;
        min-width: 0 !important;
        margin: 0 !important;
        text-align: center !important;
        font-size: 0.8rem !important;
        padding: 8px 6px !important;
    }
    
    /* Create a wrapper effect for the action buttons */
    #bulk-validate-btn, #bulk-unvalidate-btn, #bulk-delete-btn, #refresh-samples-btn {
        flex-grow: 1 !important;
        flex-basis: calc(50% - 0.375rem) !important;
    }
    
    /* DataTable mobile styles */
    .admin-samples-table .dash-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* DataTable cells - better mobile sizing */
    .admin-samples-table .dash-spreadsheet-container .dash-spreadsheet-inner table {
        min-width: 600px !important;
    }
    
    .admin-samples-table .dash-spreadsheet-container .dash-spreadsheet-inner th,
    .admin-samples-table .dash-spreadsheet-container .dash-spreadsheet-inner td {
        font-size: 0.8rem !important;
        padding: 8px !important;
        white-space: nowrap !important;
    }
    

    
    /* Charts mobile - ensure proper horizontal layout and scrolling */
    #visits-chart-container,
    #visits-monthly-chart-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Chart flex containers - force horizontal layout on mobile */
    #visits-chart-container > div[style*="display: flex"],
    #visits-monthly-chart-container > div[style*="display: flex"] {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        min-width: max-content !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
    }
    
    /* Individual chart bars - maintain regular width and prevent wrapping */
    #visits-chart-container > div[style*="display: flex"] > div,
    #visits-monthly-chart-container > div[style*="display: flex"] > div {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        width: 60px !important;
        min-width: 60px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Chart text labels - smaller font for mobile readability */
    #visits-chart-container div[style*="fontSize: 0.8rem"],
    #visits-monthly-chart-container div[style*="fontSize: 0.8rem"] {
        font-size: 0.65rem !important;
    }
    
    #visits-chart-container div[style*="fontSize: 0.7rem"],
    #visits-monthly-chart-container div[style*="fontSize: 0.7rem"] {
        font-size: 0.6rem !important;
    }
    
    /* Logs tab mobile responsiveness */
    
    /* Logs container - better mobile spacing */

    
    /* Filters container - stack vertically */
    div[style*="display: inline-block"]:has(#service-filter),
    div[style*="display: inline-block"]:has(#log-level-filter) {
        display: block !important;
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
    }
    
    /* Filter labels - better mobile styling */
    div:has(#service-filter) label,
    div:has(#log-level-filter) label {
        display: block !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
        color: #2c3e50 !important;
    }
    
    /* Dropdown components - full width and better touch targets */
    #service-filter, #log-level-filter {
        width: 100% !important;
    }
    
    #service-filter > div, #log-level-filter > div {
        width: 100% !important;
        min-width: none !important;
        min-height: 44px !important;
    }
    
    /* Logs content area mobile optimization */
    #logs-content {
        margin-top: 1rem !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }
    
    #logs-content pre {
        font-size: 0.7rem !important;
        padding: 0.75rem !important;
        max-height: 350px !important;
        line-height: 1.3 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Loading message mobile styling */
    #logs-content p {
        padding: 1.5rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Modals mobile responsiveness */
    #delete-confirmation-modal > div > div {
        margin: 1rem !important;
        padding: 1.5rem !important;
        max-width: none !important;
    }
    
    #edit-sample-modal > div > div {
        margin: 1rem !important;
        padding: 1.5rem !important;
        max-width: none !important;
        max-height: 90vh !important;
    }
    
    /* Modal buttons - stack vertically */
    #delete-confirmation-modal div[style*="textAlign: right"] {
        text-align: center !important;
    }
    
    #edit-sample-modal div[style*="textAlign: right"] {
        text-align: center !important;
    }
    
    #delete-confirmation-modal div[style*="textAlign: right"] > button,
    #edit-sample-modal div[style*="textAlign: right"] > button {
        display: block !important;
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }
    
    /* Location breakdown mobile adjustments */
    div:has(.admin-stat-card) + div div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}