/* Kaiser Permanente Laboratory Portal Template */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@page {
    size: 8.5in 11in;
    margin: 0.75in;
}

html {
    font-size: 10pt;
    width: 100%;
    overflow-x: hidden;
    height: 100%;
    background: #f5f5f5;
}

body {
    font-family: Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    color: #333;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    display: block;
    flex: 1 0 auto;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #0066cc;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 100;
    transition: top 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 12px;
    outline: 3px solid #ffd54f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.container {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    margin: 0;
    min-height: 100vh;
    padding-bottom: 50px;
    flex: 1;
    overflow: visible;
}

.header {
    text-align: center;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 15px;
    margin-bottom: 35px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.header h1 {
    color: #0066cc;
    font-size: 24pt;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 102, 204, 0.1);
}

.header h2 {
    color: #666;
    font-size: 14pt;
    margin: 0;
    font-weight: normal;
}

.header .kaiser-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.main-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.section-card {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-radius: 10px;
    padding: 25px;
    border-left: 5px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
}

.section-card:hover,
.section-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.section-icon {
    font-size: 36px;
    margin-right: 15px;
    color: #0066cc;
}

.section-title {
    color: #0066cc;
    font-size: 16pt;
    font-weight: bold;
}

.section-description {
    color: #333;
    font-size: 10pt;
    margin-bottom: 20px;
    line-height: 1.6;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.links-grid {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-grid li {
    list-style: none;
    margin: 0;
}

.section-card nav {
    display: block;
    margin-top: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #ffffff;
    color: #0066cc;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 9pt;
    font-weight: 600;
    border: 1px solid #d1e7f3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.link-item:hover,
.link-item:focus-visible {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7f3 100%);
    transform: translateX(5px);
    border-color: #0066cc;
    outline: none;
}

.link-item.primary {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    border-color: #004499;
}

.link-item.primary:hover,
.link-item.primary:focus-visible {
    background: linear-gradient(135deg, #004499 0%, #003377 100%);
    color: white;
}

.link-item.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #20c997;
}

.link-item.success:hover,
.link-item.success:focus-visible {
    background: linear-gradient(135deg, #20c997 0%, #17a085 100%);
    color: white;
}

.link-item.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #333;
    border-color: #ff9800;
}

.link-item.warning:hover,
.link-item.warning:focus-visible {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.link-icon {
    font-size: 18px;
    margin-right: 12px;
    min-width: 18px;
}

.link-text {
    flex: 1;
    font-weight: 500;
}

.link-arrow {
    font-size: 14px;
    margin-left: 10px;
}

.status-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 8pt;
    font-weight: bold;
    margin-left: 10px;
}

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

.status-indicator.enhanced {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-indicator.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-indicator.beta {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-indicator.critical {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.footer {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    border-left: 5px solid #0066cc;
    margin-top: 30px;
}

.footer-logo {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 10px;
}

.alert-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 3px solid #f39c12;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    position: relative;
}

.alert-box::before {
    content: '⚠';
    color: #ff9900;
    font-size: 16pt;
    position: absolute;
    right: 15px;
    top: 15px;
}

.alert-box strong {
    color: #856404;
}

.info-box {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 3px solid #17a2b8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h4 {
    color: #0c5460;
    margin-bottom: 10px;
    font-size: 11pt;
}

.instruction-list {
    margin-left: 20px;
    font-size: 9pt;
    line-height: 1.6;
    color: #0c5460;
}

.instruction-list li {
    margin-bottom: 6px;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.info-note {
    margin-top: 12px;
    font-size: 8.5pt;
    color: #084c61;
}

.status-text {
    font-size: 8pt;
    margin-left: 6px;
    color: #333;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    .main-sections {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 18pt;
    }
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    .section-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media print {
    body {
        background: #ffffff;
        padding: 0;
    }
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    .link-item {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
    }
}