/* Custom styles for aQRate Integration Solution */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0891b2;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding: 20px 0;
}

.main-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Header */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--primary-color);
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3em;
    margin-bottom: 15px;
}

.page-header .tagline {
    font-size: 1.5em;
    color: #666;
    font-weight: 300;
}

/* Value Proposition */
.value-prop {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
    border-left: 4px solid var(--accent-color);
}

.value-prop p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.value-prop p:last-child {
    margin-bottom: 0;
}

/* Flow Diagram */
.flow-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
}

.flow-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.flow-box.customer {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: var(--primary-light);
}

.flow-box.aqrate {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-dark);
}

.flow-box.lab {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-color: var(--secondary-color);
}

.flow-box .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.flow-box .title {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.flow-box .subtitle {
    font-size: 0.9em;
    opacity: 0.9;
}

.flow-arrow {
    font-size: 3em;
    color: var(--primary-dark);
    margin: 0 20px;
    display: flex;
    align-items: center;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-box h3 {
    color: var(--primary-dark);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.highlight-box ul {
    margin-left: 25px;
    font-size: 1.1em;
}

.highlight-box li {
    margin: 10px 0;
    color: var(--text-dark);
}

/* Integration Options */
.section-title {
    color: var(--primary-color);
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
}

.integration-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
    font-style: italic;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-3px);
}

.option-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.option-card h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.option-card .description {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05em;
}

.what-lab-does {
    background: var(--light-bg);
    padding: 18px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.what-lab-does h4 {
    color: var(--primary-dark);
    font-size: 1.05em;
    margin-bottom: 12px;
    font-weight: 600;
}

.what-lab-does ul {
    margin-left: 20px;
    margin-bottom: 0;
}

.what-lab-does li {
    margin: 8px 0;
    color: var(--text-muted);
}

/* Badges */
.badge.easy {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.badge.moderate {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.badge.advanced {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

.badge.realtime {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

.badge.batch {
    background: #f1f5f9;
    color: #475569;
    font-weight: 600;
}

/* Code Examples */
.code-example {
    background: var(--dark-bg);
    color: #e2e8f0;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9em;
    line-height: 1.6;
    border: 1px solid #334155;
}

.code-header {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95em;
}

/* Comparison Table */
.comparison-table {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table thead {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
}

.comparison-table thead th {
    color: #ffffff !important;
    background-color: #2563eb !important;
    font-weight: 600;
    padding: 18px !important;
    text-align: left !important;
    border-bottom: 2px solid #1e40af !important;
}

.comparison-table thead tr {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%) !important;
}

.comparison-table tbody tr:hover {
    background: #f0f9ff;
}

.comparison-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.method-name {
    font-weight: bold;
    color: var(--primary-color);
}

.check-mark {
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

.x-mark {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.contact-section h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.contact-section p {
    font-size: 1.1em;
}

.contact-section p:last-child {
    display: none;
}

/* Table Header Override - Force white text */
table.comparison-table thead th,
.table.comparison-table thead th,
.comparison-table > thead > tr > th {
    color: #ffffff !important;
    background: #2563eb !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 30px 20px;
    }

    .page-header h1 {
        font-size: 2em;
    }

    .value-prop h2 {
        font-size: 1.8em;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
}

@media print {
    body {
        background: white;
    }

    .main-container {
        box-shadow: none;
    }
}
