/* premium-validation.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #3bb6a6 0%, #1e6fa7 100%);
    min-height: 100vh;
    color: #222;
    padding: 20px 0;
}

.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.modern-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.20);
    margin: 0 auto;
    padding: 24px 32px;
    max-width: 85%;
    width: 85%;
    overflow-x: auto;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f5f9;
}

.header-left input {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    padding: 0 !important;
    width: auto !important;
}

.header-right {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    text-align: right;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 30px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(60, 60, 60, 0.07);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

th,
td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    text-align: center;
    font-size: 0.95rem;
}

.section-header {
    background: #f8fafc !important;
    color: #1e6fa7 !important;
    font-weight: 700 !important;
    text-align: left !important;
    font-size: 1.1rem !important;
    padding: 12px 20px !important;
}

.sub-header td {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}

.row-label {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    text-align: left;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    height: 38px;
    font-size: 0.95rem;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-align: center;
    background: #fff;
    transition: all 0.2s;
    outline: none;
    font-family: 'Inter', sans-serif;
}

input[type="number"]:focus,
input[type="text"]:focus {
    border-color: #3bb6a6;
    box-shadow: 0 0 0 3px rgba(59, 182, 166, 0.1);
}

input[readonly],
.calculated {
    background: #f1f5f9 !important;
    color: #1e6fa7 !important;
    font-weight: 600 !important;
    border-color: #e2e8f0 !important;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3bb6a6 0%, #1e6fa7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 111, 167, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 111, 167, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Navigation Buttons specifically */
.button-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.nav-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.nav-home {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    color: white;
}

.nav-prev {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.nav-next {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

/* Control Buttons (Add/Remove) */
.controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .modern-card {
        padding: 30px 24px;
    }
}

@media print {
    @page {
        margin: 0.5cm;
    }

    body {
        background: white;
        padding: 0;
        font-size: 8pt;
    }

    .modern-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .header-row {
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .header-left input {
        font-size: 14pt !important;
    }

    .header-right {
        font-size: 12pt !important;
    }

    .content-section {
        margin-bottom: 10px !important;
    }

    table {
        margin-bottom: 10px !important;
        font-size: 8pt;
    }

    th,
    td {
        padding: 4px 6px !important;
    }

    .section-header {
        padding: 6px 10px !important;
        font-size: 10pt !important;
    }

    .btn,
    .button-group,
    .controls,
    .nav-buttons,
    .no-print {
        display: none !important;
    }

    input {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        height: auto !important;
        text-align: left !important;
    }

    .results-grid {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 5px !important;
    }

    .stat-card {
        display: table-cell !important;
        border: 1px solid #e2e8f0 !important;
        padding: 4px 8px !important;
        text-align: left !important;
        width: 20% !important;
    }

    .stat-label {
        font-size: 7pt !important;
        margin-bottom: 2px !important;
    }

    .stat-value {
        font-size: 9pt !important;
    }

    .stat-subtext {
        font-size: 7pt !important;
        margin-top: 1px !important;
    }

    .chart-wrapper {
        height: 350px !important;
        margin-top: 10px !important;
        page-break-inside: avoid;
    }
}

/* Utility classes */
.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}
/* LabQuants Logo Styles */
.labquants-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    user-select: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.labquants-logo i {
    font-size: 1.35rem;
    color: #3bb6a6 !important;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.logo-brand {
    font-weight: 800;
    font-size: 1.05rem;
    color: #1e3a8a;
    letter-spacing: -0.02em;
}

.logo-url {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

@media print {
    .labquants-logo {
        border: none !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
        box-shadow: none !important;
    }
}
