/* Header and Navigation */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.nav {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
    background-color: #eff6ff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0;
}

.subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Compliance Dashboard */
.compliance-dashboard {
    margin-bottom: 4rem;
}

.compliance-dashboard h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.timeline-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.timeline-phase {
    font-weight: 600;
    color: #3b82f6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-date {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Timeline Item Colors */
.timeline-item.immediate {
    border-left: 4px solid #dc2626;
}

.timeline-item.phase1 {
    border-left: 4px solid #ea580c;
}

.timeline-item.phase2 {
    border-left: 4px solid #3b82f6;
}

/* Domains Section */
.domains-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 2rem;
    text-align: center;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #2563eb;
}

/* Domains Table */
.domains-table {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
    align-items: center;
}

.domain-row:hover {
    background-color: #f8fafc;
}

.domain-row:last-child {
    border-bottom: none;
}

.col-domain strong {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.col-domain p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.col-citation {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.col-deadline {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.col-audience {
    color: #64748b;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #2563eb;
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    color: #3b82f6;
    font-weight: 600;
    margin: 0;
}

.close {
    color: #64748b;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* Modal Content Styles */
.subdomain-list {
    list-style: none;
    margin: 1rem 0;
}

.subdomain-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background-color: #f8fafc;
    border-left: 3px solid #1e40af;
    border-radius: 0 6px 6px 0;
}

.subdomain-list li h4 {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subdomain-list li p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.requirement-item {
    background-color: #f8fafc;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    border-left: 4px solid #1e40af;
}

.requirement-item h4 {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.requirement-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .domain-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .table-header {
        display: none;
    }
    
    .domain-row {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .col-domain,
    .col-citation,
    .col-deadline,
    .col-audience,
    .col-actions {
        margin-bottom: 0.5rem;
    }
    
    .col-domain::before {
        content: "Domain: ";
        font-weight: 600;
        color: #374151;
    }
    
    .col-citation::before {
        content: "CFR Citation: ";
        font-weight: 600;
        color: #374151;
    }
    
    .col-deadline::before {
        content: "Deadline: ";
        font-weight: 600;
        color: #374151;
    }
    
    .col-audience::before {
        content: "Audience: ";
        font-weight: 600;
        color: #374151;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .timeline-item {
        padding: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Enhanced bullet point spacing for important notes */
.important-notes ul, .critical-info ul, .maritime-specific ul, .exemption-info ul, .warning-box ul, .scenario-box ul, .requirement-box ul, .applicability-box ul, .flexibility-box ul, .tech-examples ul, .implementation-card ul, .qualification-card ul, .drill-card ul, .timeline-card ul, .training-card ul, .ot-specific ul {
    padding-left: 2.5rem;
}

.important-notes li, .critical-info li, .maritime-specific li, .exemption-info li, .warning-box li, .scenario-box li, .requirement-box li, .applicability-box li, .flexibility-box li, .tech-examples li, .implementation-card li, .qualification-card li, .drill-card li, .timeline-card li, .training-card li, .ot-specific li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}
