/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Authentication Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin: 1rem 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.modal-content button {
    background: #34495e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.modal-content button:hover {
    background: #2c3e50;
}

.error {
    color: #e74c3c;
    margin-top: 1rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Main Layout - Corporate styling */
#mainContent {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    overflow-x: hidden;
}

/* Navigation Styles - Corporate */
.main-nav, .topic-nav {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.nav-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
    display: block;
    margin-top: 0.2rem;
    color: #bdc3c7;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-dropdown, .topic-dropdown {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dropdown:hover, .topic-dropdown:hover {
    background: rgba(255, 255, 255, 0.2);
}

.section-dropdown option, .topic-dropdown option {
    background: #2c3e50;
    color: white;
}

.logout-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.back-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

/* Hero Header Styles */
.hero-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
    font-weight: 400;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.hero-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: #ecf0f1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.hero-stat .stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Container */
.content-container {
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

/* Document Paper Style */
.document-paper {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

/* Hero Header */
.document-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.document-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.document-hero .document-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.document-hero .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.document-hero .summary-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Document Content */
.document-content {
    padding: 2rem;
}

/* Natural Flow Sections */
.verbatim-section {
    margin: 2rem 0;
}

.verbatim-section h3 {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.verbatim-text {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

.meaning-section {
    margin: 2rem 0 3rem 0;
}

.meaning-section h3 {
    color: #28a745;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.meaning-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.meaning-section ul {
    color: #333;
    font-size: 1rem;
    line-height: 1.7;
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

.meaning-section li {
    margin-bottom: 0.5rem;
}

/* Key Takeaways Header */
.key-takeaways-header {
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.key-takeaways-header::before,
.key-takeaways-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
}

.key-takeaways-header::before {
    left: 0;
}

.key-takeaways-header::after {
    right: 0;
}

/* Action Grid Container */
.action-grid {
    margin: 0 0 1rem 0;
}

.executive-summary h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.executive-summary .document-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.executive-summary .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.executive-summary .summary-text {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

/* Source Citation - Under hero */
.source-section {
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    padding: 1rem 2rem;
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Introduction Text */
.intro-text {
    color: #555;
    line-height: 1.7;
    margin: 1.5rem 0;
    font-size: 1rem;
}

/* Section Navigation */
.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.section-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.section-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

/* Section Separators */
.section-separator {
    margin: 5.5rem 0 2rem 0;
    border-top: 2px solid #e9ecef;
    position: relative;
}

.section-separator::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

/* Section Headers */
.section-header {
    color: #1565c0;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
    margin-left: -1.5rem;
}

/* Content Layout - Side by side for related items */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.content-grid.two-column {
    grid-template-columns: 1fr 1fr;
}

.content-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #dee2e6;
}

.content-card.verbatim {
    border-left-color: #6c757d;
    background: white;
}

.content-card.meaning {
    border-left-color: #28a745;
    background: white;
}

.content-card.can-do {
    border-left-color: #007bff;
    background: white;
}

.content-card.cannot-do {
    border-left-color: #dc3545;
    background: white;
}

.content-card.issue {
    border-left-color: #b8860b;
    background: #ffc107;
    color: white;
}

.content-card.issue h3 {
    color: #333 !important;
}

.content-card.issue p {
    color: #333;
}

.content-card.recommend {
    border-left-color: #28a745;
    background: white;
}

.content-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.content-card.verbatim h3 { color: #6c757d; }
.content-card.meaning h3 { color: #28a745; }
.content-card.can-do h3 { color: #007bff; }
.content-card.cannot-do h3 { color: #dc3545; }
.content-card.issue h3 { color: #ffc107; }
.content-card.recommend h3 { color: #28a745; }

.content-card p {
    margin: 0;
    line-height: 1.6;
}

.content-card ul {
    margin: 0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.content-card li {
    margin-bottom: 0.4rem;
}

.content-card .quote-text {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Not applicable styling */
.content-card.not-applicable {
    opacity: 0.5;
    background: #f8f9fa;
}

/* Dashboard */
.dashboard {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dashboard h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.stat-card.critical {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.alert-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.alert-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Risk Row Layout - Two separate rows */
.risk-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.critical-row {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.critical-row .risk-item {
    background: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.warning-row {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.warning-row .risk-item {
    background: rgba(255, 255, 255, 0.9);
    flex: 1;
}

/* Compact Risk Grid - Legacy support */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.risk-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
    transition: transform 0.2s ease;
}

.risk-item:hover {
    transform: translateY(-2px);
}

.risk-item.critical {
    background: #fff5f5;
    border-left-color: #e74c3c;
}

.risk-item.warning {
    background: #fffbf0;
    border-left-color: #f39c12;
}

.risk-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.risk-item strong {
    color: #2c3e50;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.risk-item p {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

/* Legacy alert styles for backward compatibility */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid;
}

.alert.critical {
    background: #fff5f5;
    border-left-color: #e74c3c;
    color: #721c24;
}

.alert.warning {
    background: #fffbf0;
    border-left-color: #f39c12;
    color: #8a6d3b;
}

.topics-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.topics-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topic-card.high-risk {
    border-left: 4px solid #e74c3c;
}

.topic-card.medium-risk {
    border-left: 4px solid #f39c12;
}

.topic-card.low-risk {
    border-left: 4px solid #3498db;
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.topic-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.risk-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.risk-badge.critical {
    background: #e74c3c;
    color: white;
}

.risk-badge.warning {
    background: #f39c12;
    color: white;
}

.risk-badge.info {
    background: #3498db;
    color: white;
}

.coverage-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.coverage-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ecf0f1;
}

.coverage-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: middle;
}

th:first-child, td:first-child {
    text-align: left;
}

th {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 0.9rem;
    color: #2c3e50;
}

td.covered {
    color: #27ae60;
    font-weight: 600;
    text-align: center;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Legacy styles for backward compatibility - will be removed */
.topic-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
}

.topic-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.topic-header .risk-level {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.topic-header .risk-level.critical {
    background: #e74c3c;
}

.topic-header .risk-level.warning {
    background: #f39c12;
}

.topic-header .risk-level.info {
    background: #3498db;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow-x: auto;
}

/* Document Structure Styles */
.document-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.info-header {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #bdc3c7;
}

.sub-header {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
}

/* Legal List Styles */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    line-height: 1.5;
    position: relative;
}

.legal-list .label {
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* Specific item types */
.verbatim-item {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    font-family: 'Courier New', monospace;
}

.verbatim-item .label {
    color: #495057;
}

.meaning-item {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
}

.meaning-item .label {
    color: #155724;
}

.can-do-item {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.can-do-item .label {
    color: #0c5460;
}

.cannot-do-item {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.cannot-do-item .label {
    color: #721c24;
}

.issue-item {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.issue-item .label {
    color: #856404;
}

.recommend-item {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.recommend-item .label {
    color: #155724;
}

.matters-item {
    background: #cce5ff;
    border-left: 4px solid #007bff;
}

.matters-item .label {
    color: #004085;
}

.nested-item {
    background: #f8f9fa;
    border-left: 3px solid #dee2e6;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.regular-item {
    background: #ffffff;
    border-left: 3px solid #e9ecef;
}

/* Text formatting */
.quote-text {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-style: italic;
    color: #495057;
}

.regular-text {
    margin: 0.75rem 0;
    color: #2c3e50;
    line-height: 1.6;
}

/* Utility classes */
.spacer {
    height: 1rem;
}

.section-divider {
    height: 2px;
    background: linear-gradient(to right, #dee2e6, #adb5bd, #dee2e6);
    margin: 2rem 0;
    border-radius: 1px;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 2rem 0;
    font-style: italic;
    color: #856404;
    text-align: center;
}

.verbatim-quote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.translation {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.action-items {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.action-items h3 {
    color: #856404;
    margin-bottom: 1rem;
}

.red-flags {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.red-flags h3 {
    color: #721c24;
    margin-bottom: 1rem;
}

/* Table Styles */
.table-container {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ownership-table, .coverage-table, .data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.ownership-table th, .coverage-table th, .data-table th {
    background: #2c3e50;
    color: white;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ownership-table th:first-child, .coverage-table th:first-child, .data-table th:first-child {
    border-radius: 8px 0 0 0;
}

.ownership-table th:last-child, .coverage-table th:last-child, .data-table th:last-child {
    border-radius: 0 8px 0 0;
}

.ownership-table td, .coverage-table td, .data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    line-height: 1.4;
}

.ownership-table tr:nth-child(even), .coverage-table tr:nth-child(even), .data-table tr:nth-child(even) {
    background: #f8f9fa;
}

.ownership-table tr:hover, .coverage-table tr:hover, .data-table tr:hover {
    background: #e3f2fd;
    transition: background-color 0.2s ease;
}

.ownership-table td:first-child, .data-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.ownership-table td:nth-child(2),
.ownership-table td:nth-child(3) {
    text-align: center;
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 500;
}

.ownership-table td:last-child {
    color: #6c757d;
    font-style: italic;
}

/* Coverage table specific styling */
.coverage-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    min-width: 200px;
}

.coverage-table td:not(:first-child) {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.coverage-table td:not(:first-child):contains("✅") {
    color: #27ae60;
}

.coverage-table td:not(:first-child):contains("❓") {
    color: #f39c12;
}

.coverage-table td:not(:first-child):contains("-") {
    color: #95a5a6;
}

/* Responsive table */
@media (max-width: 768px) {
    .table-container {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .ownership-table, .coverage-table, .data-table {
        font-size: 0.8rem;
    }
    
    .ownership-table th, .coverage-table th, .data-table th,
    .ownership-table td, .coverage-table td, .data-table td {
        padding: 0.5rem 0.4rem;
    }
    
    .ownership-table th, .coverage-table th, .data-table th {
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
    }
    
    .main-nav, .topic-nav {
        padding: 0.4rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .document-paper {
        margin: 1rem;
        border-radius: 0;
    }
    
    .document-hero {
        padding: 2rem 1rem;
    }
    
    .document-hero h1 {
        font-size: 1.8rem;
    }
    
    .document-hero .document-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .document-content {
        padding: 1rem;
    }
    
    .action-grid {
        padding: 1rem;
    }
    
    .content-grid.two-column {
        grid-template-columns: 1fr;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .risk-item {
        padding: 0.75rem;
    }
    
    .risk-icon {
        font-size: 1.25rem;
    }
    
    .section-dropdown, .topic-dropdown {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .logout-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .source-section {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .section-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
} 