/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* World Clocks */
.world-clocks {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 0;
    border-bottom: 2px solid #ff6b35;
}

.clocks-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.clocks-group {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding-right: 3rem;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.indicators-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.clock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.clock i {
    color: #ff6b35;
    font-size: 0.9rem;
}

.clock-location {
    color: #ccc;
    min-width: 60px;
}

.clock-time {
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    min-width: 50px;
}

/* Market Indicators */
.indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.indicator i {
    font-size: 0.8rem;
    color: #ff6b35;
}

.indicator-label {
    color: #999;
    font-size: 0.8rem;
}

.indicator-value {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    min-width: 70px;
}

.indicator-value .positive {
    color: #4CAF50;
}

.indicator-value .negative {
    color: #f44336;
}

.indicator-value .warning {
    color: #FFC107;
}

.indicator-value .normal {
    color: white;
}

.indicator-value .error {
    color: #666;
    font-style: italic;
}

/* Market refresh indicator */
.market-refresh-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.8rem;
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
    font-size: 0.85rem;
}

.market-refresh-info i {
    font-size: 0.8rem;
    color: #ff6b35;
    animation: pulse 2s ease-in-out infinite;
}

.market-refresh-info span {
    color: #999;
    font-size: 0.8rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.title {
    color: #d32f2f;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title i {
    color: #ff6b35;
    animation: pulse 2s infinite;
}

.subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
    display: block;
    margin-top: 0.2rem;
}

.header-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d32f2f;
}

.stat-time {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.stat-label {
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filtros */
.filters {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filters .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #d32f2f;
    border-color: #d32f2f;
    color: white;
}

.refresh-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.refresh-settings {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.refresh-btn.loading {
    position: relative;
    padding-right: 2.5rem;
}

.refresh-btn.loading i {
    animation: spin 1s linear infinite;
}

.refresh-btn.loading::after {
    content: '';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.auto-refresh label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.refresh-interval select {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: #495057;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.refresh-interval select:focus {
    outline: none;
    border-color: #d32f2f;
}

.refresh-timer {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #d32f2f;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: 60vh;
}

/* AI Summary Section */
.ai-summary-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    text-align: center;
}

.summary-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.summary-title i {
    font-size: 1.5rem;
}


.summary-content {
    padding: 2rem;
    min-height: 200px;
    position: relative;
}

.summary-loading {
    text-align: center;
    color: #666;
}

.summary-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(118, 75, 162, 0.3);
    border-top: 3px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.summary-text {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.9;
}

.summary-text p {
    margin-bottom: 1.3rem;
    text-align: justify;
}

.summary-text p:last-of-type {
    margin-bottom: 1.5rem;
}

.summary-text strong {
    color: #764ba2;
    font-weight: 700;
}

.summary-text strong.section-number {
    color: #667eea;
    font-size: 1.1rem;
}

/* Bullet points styling */
.summary-text .bullet-point {
    margin-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
}

.summary-text .bullet {
    position: absolute;
    left: -1.5rem;
    color: #764ba2;
    font-weight: bold;
    font-size: 1.2rem;
}

/* AI Summary Formatted Styles - Matching 1.png */
.ai-summary-formatted {
    font-family: Arial, sans-serif;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.ai-header {
    background-color: #283593;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ai-metadata {
    padding: 5px 0;
    font-size: 16px;
    color: #333;
}

.ai-metadata strong {
    font-weight: bold;
    margin-right: 10px;
}

.ai-executive-content {
    background-color: #e8eaf6;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 4px;
    font-style: italic;
    color: #424242;
    line-height: 1.6;
}

.ai-subsection {
    color: #283593;
    font-weight: bold;
    font-size: 16px;
    margin: 15px 0 10px 0;
}

.ai-bullet {
    padding: 8px 0 8px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.ai-text {
    padding: 5px 0;
    font-size: 15px;
    color: #333;
}

.ai-threat-critical {
    color: #d32f2f;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.ai-threat-high {
    color: #f57c00;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.ai-threat-moderate {
    color: #fbc02d;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.ai-threat-low {
    color: #388e3c;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
}

.ai-justification {
    padding: 5px 0;
    font-size: 15px;
    color: #424242;
    font-style: italic;
}

/* Professional Summary Styles */
.professional-summary {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: #1a1a1a;
    line-height: 1.8;
}

.professional-summary h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #34495e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.professional-summary h4 {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
}

/* Metadata section styling */
.metadata-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.metadata-section .metadata-item {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

/* Executive Summary styling */
.executive-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-left: 4px solid #2c3e50;
    margin: 1rem 0 2rem 0;
    font-style: italic;
    color: #495057;
}

/* Report sections */
.report-section {
    margin-bottom: 2rem;
}

/* Professional list styling */
.professional-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
}

.professional-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.professional-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #34495e;
}

.summary-metadata {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.metadata-item {
    display: inline-block;
    margin-right: 2rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.metadata-item strong {
    color: #2c3e50;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.summary-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.summary-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

.trend-up {
    color: #e74c3c;
}

.trend-up:before {
    content: "↑" !important;
    color: #e74c3c;
}

.trend-down {
    color: #27ae60;
}

.trend-down:before {
    content: "↓" !important;
    color: #27ae60;
}

.trend-neutral {
    color: #3498db;
}

.trend-neutral:before {
    content: "→" !important;
    color: #3498db;
}

/* Threat Level Assessment Styles */
.threat-level {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.threat-critical {
    background: #f8f9fa;
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.threat-high {
    background: #f8f9fa;
    border-left: 4px solid #fd7e14;
    color: #fd7e14;
}

.threat-moderate {
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.threat-low {
    background: #f8f9fa;
    border-left: 4px solid #28a745;
    color: #28a745;
}

/* Justification styling */
.justification {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.loading {
    text-align: center;
    padding: 3rem 0;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Responsive adjustments for market indicators */
@media (max-width: 1400px) {
    .clocks-row {
        justify-content: center;
    }
    
    .clocks-group {
        border-right: none;
        padding-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .indicators-group {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card.international {
    border-left: 5px solid #007bff;
}

.news-card.israeli {
    border-left: 5px solid #0066cc;
}

.news-card.iranian {
    border-left: 5px solid #28a745;
}

.news-content {
    padding: 1.5rem;
}

.news-content-full {
    padding: 1.75rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.news-source {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.news-date {
    color: #6c757d;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-description {
    color: #6c757d;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-author {
    font-size: 0.8rem;
    color: #868e96;
    font-style: italic;
}

.read-more {
    color: #d32f2f;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #b71c1c;
}

/* Load More */
.load-more {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: white;
    color: #d32f2f;
    border: 2px solid #d32f2f;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li i {
    color: #ff6b35;
    width: 16px;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.source-tag {
    background: #333;
    color: #ccc;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #555;
}

.source-tag.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.8rem;
}

/* Mobile Warning */
.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    z-index: 99999;
    color: white;
    overflow: auto;
}

.mobile-warning-content {
    max-width: 90%;
    margin: 30px auto;
    padding: 30px 15px;
    text-align: center;
}

.mobile-warning i {
    font-size: 3.5rem;
    color: #FFD700;
    margin-bottom: 20px;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.mobile-warning h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    padding: 0 10px;
    word-wrap: break-word;
}

.mobile-warning p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 10px 0;
    color: #ffffff;
    padding: 0 10px;
}

.mobile-warning ul {
    text-align: left;
    max-width: 100%;
    margin: 15px auto;
    padding: 0 15px;
}

.mobile-warning li {
    margin: 8px 0;
    list-style: none;
    padding-left: 25px;
    position: relative;
    font-size: 0.85rem;
    color: #ffffff;
}

.mobile-warning li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2rem;
}

.device-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.device-info small {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* Mostrar apenas em mobile */
@media (max-width: 767px) {
    .mobile-warning {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    body > *:not(.mobile-warning) {
        display: none !important;
    }
    
    body {
        overflow: hidden;
    }
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
    cursor: pointer;
    background: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    color: #000;
}

.modal-body {
    padding: 2rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .clocks-row {
        gap: 1.5rem;
        font-size: 0.85rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-stats {
        justify-content: center;
    }
    
    .filters .container {
        flex-direction: column;
        align-items: center;
    }
    
    .refresh-settings {
        justify-content: center;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .summary-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .news-card {
        margin: 0 auto;
        max-width: 100%;
    }
}

/* Estilos para o botão PDF */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pdf-summary-btn {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(215, 47, 47, 0.2);
}

.pdf-summary-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 47, 47, 0.3);
}

.pdf-summary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.pdf-summary-btn i {
    font-size: 1.1rem;
}

.pdf-summary-btn .fa-spinner {
    animation: fa-spin 1s infinite linear;
}

@media (max-width: 768px) {
    .summary-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pdf-summary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* NEW: Beta Features Panel */
.beta-features-panel {
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 2px solid #ffc107;
    padding: 0.5rem 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.panel-header h3 {
    color: #ffc107;
    font-size: 1rem;
    font-weight: 600;
}

.panel-toggle {
    background: #ffc107;
    border: none;
    border-radius: 4px;
    color: #000;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.panel-toggle:hover {
    background: #f57c00;
    color: white;
}

.features-toggles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 6px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.feature-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
}

.feature-toggle label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: white;
}

.feature-toggle input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.feature-toggle input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.toggle-label i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
}

.feature-toggle small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: 1.7rem;
}

/* NEW: Military Events Section */
.military-events-section {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.military-events-section h2 {
    color: #dc3545;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.military-events-section h2 i {
    margin-right: 0.5rem;
}

.military-events-list {
    display: grid;
    gap: 1rem;
}

.military-event-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.military-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.event-type.airstrike {
    background: #dc3545;
    color: white;
}

.event-type.missile {
    background: #fd7e14;
    color: white;
}

.event-type.explosion {
    background: #e83e8c;
    color: white;
}

.event-type.naval {
    background: #0dcaf0;
    color: black;
}

.event-type.ground {
    background: #198754;
    color: white;
}

.event-confidence {
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.event-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.event-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.event-details span {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.event-details i {
    margin-right: 0.25rem;
    color: #999;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #999;
}

.event-source {
    font-weight: 500;
    color: #666;
}

@media (max-width: 768px) {
    .features-toggles {
        grid-template-columns: 1fr;
    }
    
    .event-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #666;
}

.breadcrumb-item::after {
    content: "›";
    margin: 0 0.5rem;
    color: #999;
    font-size: 1.2rem;
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item a {
    color: #1a1a2e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
    font-weight: 500;
}

.breadcrumb-item i {
    font-size: 0.85rem;
}

/* SEO Optimization Styles */
.news-card::before {
    content: "war tracker conflict tracker gdelt";
    position: absolute;
    font-size: 0;
    color: transparent;
    user-select: none;
}

.news-card::after {
    content: "iran israel war map live interactive war map israel";
    position: absolute;
    font-size: 1px;
    color: rgba(255,255,255,0.01);
    left: -9999px;
}

.header::before {
    content: "GDELT news integration war tracker dashboard conflict monitoring";
    position: absolute;
    opacity: 0;
    font-size: 0;
}

.footer::after {
    content: "iran israel war tracker gdelt global database events language tone";
    display: block;
    height: 0;
    overflow: hidden;
    font-size: 0;
}

/* Micro-text SEO */
.seo-microtext {
    font-size: 1px;
    color: #fafafa;
    position: absolute;
    bottom: 0;
    line-height: 0.1;
}

