/* MSDC Official Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #00BFFF 50%, #4FC3F7 100%);
    min-height: 100vh;
    color: #2c3e50;
    line-height: 1.6;
}

/* Landing Page Styles */
.landing-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Header Section */
.header-section {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    z-index: 10;
}

.logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    gap: 3rem;
    flex-wrap: wrap;
}

.logo-images-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.title-container {
    flex: 1;
    text-align: center;
}

.coat-arms {
    height: 100px;
    width: auto;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.3));
}

.msdc-logo {
    height: 200px;
    width: auto;
    filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.3));
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0.5rem 0;
    letter-spacing: 2px;
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #FF4444;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    margin: 1rem 0;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.3rem;
    color: #e8f4fd;
    margin: 0.5rem 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Main Interface */
.main-interface {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 10;
}

.interface-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 100%;
}

.msdc-btn {
    background: linear-gradient(45deg, #00BFFF, #4FC3F7);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.msdc-btn:hover {
    background: linear-gradient(45deg, #4FC3F7, #87CEEB);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.msdc-btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(45deg, #00BFFF, #4FC3F7);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #4FC3F7, #87CEEB);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #495057, #343a40);
}

.btn-danger {
    background: linear-gradient(45deg, #FF4444, #DC143C);
}

.btn-danger:hover {
    background: linear-gradient(45deg, #DC143C, #B22222);
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #00BFFF;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00BFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Test Interface */
.test-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

.test-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.test-header-compact {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-left, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    flex: 0 0 auto;
    text-align: center;
}

.header-right {
    justify-content: flex-end;
}

.btn-small {
    padding: 5px 10px !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
}

.timer {
    font-size: 1.3rem;
    font-weight: bold;
    color: #FF4444;
    text-align: center;
}

.question-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.question-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.option-group {
    margin-bottom: 1rem;
}

.options-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.options-list {
    flex: 1;
    max-width: 50%;
}

.options-list.full-width {
    max-width: 100%;
}

.diagram-side {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-side img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.option-label:hover {
    border-color: #00BFFF;
    background-color: #f8f9fa;
}

.option-label.selected {
    border-color: #00BFFF;
    background-color: #E0F7FF;
}

.option-input {
    margin-right: 10px;
}

.navigation-controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.navigation-controls-simple {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 2px solid #e9ecef;
}

.mark-review-label {
    transition: all 0.3s ease;
}

.mark-review-label:hover {
    color: #00BFFF !important;
}

/* Results Page */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.results-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.score-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FF4444, #FF6B6B);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.score-number {
    font-size: 3rem;
    font-weight: bold;
}

.performance-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #00BFFF;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00BFFF;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .logo-section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    /* Position coat-arms to the left */
    .coat-arms {
        order: 0;
        height: 60px;
        width: 60px;
        border-radius: 50%;
        padding: 5px;
        background: rgba(255, 255, 255, 0.9);
        object-fit: cover;
    }
    
    /* Position msdc-logo to the right */
    .msdc-logo {
        order: 2;
        height: 120px;
        width: 120px;
        border-radius: 50%;
        padding: 8px;
        background: rgba(255, 255, 255, 0.9);
        object-fit: cover;
    }
    
    /* Position text in the center */
    .logo-section > div {
        order: 1;
        flex: 1;
        text-align: center;
        min-width: 0;
    }
    
    .main-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .header-section {
        padding: 1rem 0.5rem;
    }
    
    .main-interface {
        padding: 1rem;
    }
    
    .form-row, .form-row-three {
        grid-template-columns: 1fr;
    }
    
    .interface-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .navigation-controls {
        justify-content: center;
    }
    
    .navigation-controls-simple {
        gap: 0.5rem;
    }
    
    .navigation-controls-simple .msdc-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .performance-breakdown {
        grid-template-columns: 1fr;
    }
    
    .options-container {
        flex-direction: column;
    }
    
    .options-list,
    .diagram-side {
        max-width: 100%;
    }
    
    .subject-selection {
        grid-template-columns: 1fr;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .topic-card {
        padding: 1rem;
        min-height: 70px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Custom reduced padding for mobile topic cards on test launch page */
    .mobile-topic-reduced-padding {
        padding: 0.4rem 0.8rem !important;
    }
    
    .topic-card h4 {
        font-size: 0.95rem;
        line-height: 1.4;
        white-space: nowrap;
        overflow: visible;
        width: 100%;
    }
    
    /* Reduce padding around topic slider on mobile */
    #launchStep3 > div > div[style*="padding: 0 50px"] {
        padding: 0 5px !important;
    }
    
    .test-header-compact {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left, .header-center, .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .progress-indicator {
        padding: 0 0.5rem;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    /* Winner banner adjustments for mobile */
    #winnerBanner .interface-card {
        padding: 1.5rem;
    }
    
    #winnerDetails > div {
        padding: 1rem !important;
    }
    
    #winnerDetails .main-title {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce logo sizes for mobile phones */
    .coat-arms {
        height: 40px;
        width: 40px;
        border-radius: 50%;
        padding: 4px;
        background: rgba(255, 255, 255, 0.95);
        object-fit: cover;
    }
    
    .msdc-logo {
        height: 80px;
        width: 80px;
        border-radius: 50%;
        padding: 6px;
        background: rgba(255, 255, 255, 0.95);
        object-fit: cover;
    }
    
    .logo-section {
        gap: 0.5rem;
    }
    
    .main-title {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .brand-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .header-section {
        padding: 0.5rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .logo-section {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .interface-card {
        padding: 1.5rem 1rem;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .msdc-btn {
        width: 100%;
        max-width: 250px;
        font-size: 0.95rem;
    }
    
    /* Competition sessions box */
    body > div.landing-container > div[style*="position: fixed"] {
        position: fixed !important;
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        padding: 10px !important;
        font-size: 0.85rem;
    }
    
    body > div.landing-container > div[style*="position: fixed"] h4 {
        font-size: 0.95rem;
    }
    
    body > div.landing-container > div[style*="position: fixed"] p {
        font-size: 0.75rem !important;
    }
    
    /* Topic grid - keep 2 columns on small mobile */
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .topic-card {
        padding: 0.5rem 0.3rem;
        min-height: 60px;
    }
    
    .topic-card h4 {
        font-size: 0.8rem;
        line-height: 1.2;
        word-break: break-word;
    }
    
    .topic-card small {
        font-size: 0.65rem;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    /* Winner banner mobile adjustments */
    #winnerBanner {
        margin-bottom: 1rem !important;
    }
    
    #winnerBanner h2 {
        font-size: 1.1rem !important;
    }
    
    #winnerDetails > div {
        padding: 0.8rem !important;
    }
    
    #winnerDetails > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
}

/* Multi-Step Form Styles */
.modal-multistep {
    max-height: 90vh;
    overflow-y: auto;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 2rem;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(45deg, #00BFFF, #4FC3F7);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.progress-step.completed .step-circle {
    background: #FF4444;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
}

.progress-step.active .step-label {
    color: #00BFFF;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 0.5rem 1.5rem;
}

.form-step {
    min-height: 350px;
}

/* Subject Selection Cards */
.subject-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.subject-card {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.subject-card:hover {
    border-color: #00BFFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
}

.subject-card input[type="radio"] {
    display: none;
}

.subject-card input[type="radio"]:checked + .subject-content {
    color: #00BFFF;
}

.subject-card input[type="radio"]:checked ~ * {
    border-color: #00BFFF;
}

.subject-card:has(input[type="radio"]:checked) {
    border-color: #00BFFF;
    background: linear-gradient(135deg, #E0F7FF 0%, #B3E5FC 100%);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.3);
}

.subject-content {
    transition: all 0.3s ease;
}

.subject-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.subject-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

/* Radio Button Cards */
.radio-button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-button-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.radio-button-card:hover {
    border-color: #00BFFF;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
}

.radio-button-card input[type="radio"] {
    display: none;
}

/* Mobile Fixed Footer for Bottom Buttons */
.mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    .mobile-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        border-top: 2px solid #e9ecef;
        padding: 0.75rem 0.5rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .mobile-footer .button-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin: 0;
        padding: 0;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-footer .msdc-btn {
        flex: 1;
        min-width: 0;
        padding: 0.6rem 0.4rem;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-footer .msdc-btn span {
        font-size: 1rem;
        display: block;
        margin-bottom: 0.1rem;
    }
    
    /* Hide desktop navigation when mobile footer is active */
    .step-navigation:not(.mobile-footer) {
        display: none !important;
    }
    
    /* Add bottom padding to content to prevent footer overlap */
    .registration-card,
    .launch-card {
        padding-bottom: 80px !important;
    }
    
    .form-step {
        margin-bottom: 80px;
    }
}

.radio-button-card:has(input[type="radio"]:checked) {
    border-color: #FF4444;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFD0D0 100%);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.radio-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radio-icon {
    font-size: 2.5rem;
    min-width: 50px;
}

.radio-content h4 {
    margin: 0 0 0.3rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.radio-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.form-label-small {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.step-navigation {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

/* Topic Selection Cards */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.topic-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.topic-card:hover {
    border-color: #00BFFF;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.1);
    transform: translateY(-2px);
}

.topic-card input[type="radio"] {
    display: none;
}

.topic-card:has(input[type="radio"]:checked) {
    border-color: #FF4444;
    background: linear-gradient(135deg, #FFE5E5 0%, #FFD0D0 100%);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

.topic-card h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.topic-card p {
    margin: 0.3rem 0 0 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Success and Error Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Mobile: Stack test type cards vertically and fix scrolling */
@media (max-width: 768px) {
    /* Make test type selection cards stack vertically on mobile */
    .form-step div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Enable scrolling on form steps */
    .form-step {
        overflow-y: auto !important;
        max-height: calc(100vh - 250px) !important;
        padding-bottom: 100px !important;
    }
    
    /* Ensure the interface card allows scrolling */
    .interface-card.modal-multistep {
        overflow: visible !important;
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure launch card has proper bottom padding for mobile footer */
    .interface-card {
        padding-bottom: 100px !important;
    }
}