/* Button Components */
.btn-primary, .btn-secondary, .btn-success, .btn-purple, .btn-gray {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #1D3747 0%, #4a90a4 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #15262f 0%, #3c7489 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 55, 71, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #9ca3af;
    color: #1f2937;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-purple {
    background: linear-gradient(135deg, #1D3747 0%, #4a90a4 100%);
    color: white;
}

.btn-purple:hover:not(:disabled) {
    background: linear-gradient(135deg, #15262f 0%, #3c7489 100%);
}

.btn-gray {
    background: #6b7280;
    color: white;
}

.btn-gray:hover:not(:disabled) {
    background: #4b5563;
}

.btn-primary:disabled, .btn-secondary:disabled, .btn-success:disabled, .btn-purple:disabled, .btn-gray:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Overview Components */
.overview-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.stat-header i {
    color: #4a90a4;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.stat-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-status.success {
    background: #10b981;
    color: white;
    font-weight: 700;
}

.stat-status.error {
    background: #ef4444;
    color: white;
    font-weight: 700;
}

.stat-status.warning {
    background: #f59e0b;
    color: white;
    font-weight: 700;
}

/* Consolidation Summary */
.consolidation-summary {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.consolidation-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.consolidation-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.consolidation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.consolidation-item:last-child {
    border-bottom: none;
}

.consolidation-item .label {
    font-weight: 500;
    color: #6b7280;
}

.consolidation-item .value {
    font-weight: 600;
    color: #1f2937;
}

.consolidation-item .label {
    font-weight: 600;
    color: #1e40af;
}

.consolidation-item .value {
    font-weight: 700;
    color: #1f2937;
}

/* Source Content */
.source-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.source-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.source-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.source-error {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.source-error i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #f59e0b;
}

.source-error h4 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.crawl-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crawl-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.crawl-stat .label {
    font-weight: 600;
    color: #374151;
}

.crawl-stat .value {
    font-weight: 600;
    color: #1f2937;
}

.crawl-stat .value.success {
    color: #059669;
}

/* Insight Cards */
.insight-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.insight-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.insight-card.multi-source {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}

.insight-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.insight-type {
    background: linear-gradient(135deg, #1D3747 0%, #4a90a4 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.multi-source-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ai-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-left: 8px;
    display: inline-block;
}

.ai-badge i {
    margin-right: 3px;
    font-size: 9px;
}

.insight-scores {
    display: flex;
    gap: 16px;
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.score-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.score-value.impact-6, .score-value.impact-7 { background: #fef3c7; color: #d97706; }
.score-value.impact-8, .score-value.impact-9 { background: #dbeafe; color: #1d4ed8; }
.score-value.impact-10 { background: #d1fae5; color: #065f46; }

.score-value.reliability-0, .score-value.reliability-1 { background: #fee2e2; color: #dc2626; }
.score-value.reliability-2, .score-value.reliability-3 { background: #fef3c7; color: #d97706; }
.score-value.reliability-4, .score-value.reliability-5 { background: #d1fae5; color: #065f46; }

.insight-headline {
    padding: 16px 24px 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
}

.insight-summary {
    padding: 0 24px 16px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.insight-sources {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.insight-sources h5 {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    transition: all 0.2s ease;
}

.source-link:hover {
    background: #f1f5f9;
    border-color: #4a90a4;
    color: #1D3747;
}

.source-link i {
    color: #6b7280;
    font-size: 11px;
}

.source-type {
    font-weight: 600;
    color: #4a90a4;
}

.source-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.insight-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.insight-actions button {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
}

.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.insight-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.source-types {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #059669;
}

/* Website Analysis Sections */
.detected-events {
    margin-bottom: 24px;
}

.detected-events h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detected-events i {
    color: #4a90a4;
}

.event-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #10b981;
}

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

.event-type {
    background: #1D3747;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.confidence-score {
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.event-description {
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.5;
}

.event-indicators {
    font-size: 13px;
    color: #6b7280;
}

.event-indicators strong {
    color: #374151;
}

/* Page Structure Styling */
.page-structure {
    margin-bottom: 24px;
}

.page-structure h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-structure i {
    color: #4a90a4;
}

.headings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.heading-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.heading-item:hover {
    background: #f1f5f9;
    border-color: #4a90a4;
}

.heading-level {
    background: #4a90a4;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

.heading-text {
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

/* Key Links Styling */
.key-links {
    margin-bottom: 24px;
}

.key-links h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-links i {
    color: #4a90a4;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-item:hover {
    background: #f8fafc;
    border-color: #4a90a4;
    color: #1D3747;
    transform: translateX(4px);
}

.link-item i {
    color: #4a90a4;
    font-size: 12px;
    min-width: 16px;
}

.link-item span {
    flex: 1;
    line-height: 1.4;
}

/* Modern Info Bubble - Real World Style */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.info-bubble-trigger {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.info-bubble-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: scale(1.05);
}

.info-bubble {
    position: absolute;
    top: 60px; /* Fixed position below the panel header */
    right: 20px;
    width: 320px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.info-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #e1e5e9;
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.info-bubble-content {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.info-bubble-header {
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-bubble-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.info-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.info-close:hover {
    color: #495057;
}

.info-bubble-body {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.scoring-section {
    margin-bottom: 16px;
}

.scoring-section:last-child {
    margin-bottom: 0;
}

.scoring-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scoring-section p {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.scoring-section ul {
    margin: 0;
    padding-left: 16px;
    list-style: none;
}

.scoring-section li {
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
    position: relative;
}

.scoring-section li::before {
    content: '•';
    color: #007bff;
    position: absolute;
    left: -12px;
}

.highlight {
    background: #e7f3ff;
    color: #0056b3;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin: 8px 0;
    display: inline-block;
}

.score-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.score-example {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.score-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.score-badge.impact-high { background: #d4edda; color: #155724; }
.score-badge.impact-medium { background: #fff3cd; color: #856404; }
.score-badge.impact-low { background: #f8d7da; color: #721c24; }

.reliability-factors {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.factor {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}

.factor i {
    color: #28a745;
    font-size: 10px;
    margin-top: 2px;
}

.algorithm-note {
    background: #f8f9fa;
    border-left: 3px solid #007bff;
    padding: 8px 10px;
    margin-top: 12px;
    font-size: 11px;
    color: #495057;
    line-height: 1.4;
}

/* Action Section */
.action-section {
    text-align: center;
}

/* No Insights State */
.no-insights {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-insights i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

.no-insights h4 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

/* Settings */
.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    font-size: 14px;
}

.setting-group select,
.setting-group input[type="range"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #495057;
    transition: border-color 0.2s ease;
}

.setting-group select:focus,
.setting-group input[type="range"]:focus {
    outline: none;
    border-color: #4a90a4;
    box-shadow: 0 0 0 2px rgba(74, 144, 164, 0.1);
}

.setting-group input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e1e5e9;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4a90a4;
    border-radius: 50%;
    cursor: pointer;
}

.setting-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4a90a4;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* News Articles */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.articles-summary {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.summary-stats {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.news-article {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.news-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.article-used {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.article-filtered {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    opacity: 0.8;
}

.article-status {
    position: absolute;
    top: 12px;
    right: 12px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-badge.used {
    background: #10b981;
    color: white;
}

.status-badge.filtered {
    background: #f59e0b;
    color: white;
}

.article-header {
    margin-bottom: 12px;
    margin-right: 140px; /* Space for status badge */
}

.article-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.article-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #4a90a4;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
}

.article-source,
.article-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.filter-reason {
    margin-bottom: 16px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

.filter-reason small {
    color: #92400e;
    font-weight: 500;
}

.article-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.article-actions .btn-secondary,
.article-actions .btn-purple {
    padding: 6px 12px;
    font-size: 12px;
}

.no-articles {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.no-articles i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}

/* About Modal Styles */
.about-section {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.about-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.about-section h4 {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-section h4 i {
    color: #4a90a4;
    font-size: 18px;
}

.about-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a90a4;
}

.step-number {
    background: #4a90a4;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content h5 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-content p {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e1e5e9;
}

.feature-item i {
    color: #4a90a4;
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-item h5 {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-item p {
    color: #6b7280;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.use-cases {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.use-case i {
    color: #4a90a4;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.use-case span {
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.getting-started ol {
    padding-left: 20px;
    color: #4b5563;
}

.getting-started li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.getting-started strong {
    color: #1f2937;
}

.tech-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    background: #4a90a4;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.developer-links {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.dev-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a90a4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dev-link:hover {
    color: #1d3747;
}

.dev-link i {
    font-size: 16px;
}

/* About Button Styling */
.about-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.about-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
}

/* Input with Action Button */
.input-with-action {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.input-with-action input {
    flex: 1;
}

.input-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
}

.ai-insights-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.ai-insights-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.ai-insights-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.ai-insights-btn i {
    font-size: 14px;
}

/* AI Insights Modal */
.ai-insights-modal .modal-content {
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
}

.ai-modal-content {
    display: flex;
    flex-direction: column;
}

.ai-insights-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.company-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.powered-by {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
}

.ai-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* AI Loading State */
.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.ai-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f4f6;
    border-left: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

.ai-loading h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-loading p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 32px;
}

.ai-progress-steps {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.ai-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.ai-step.active {
    opacity: 1;
}

.ai-step.completed {
    opacity: 0.8;
    color: #10b981;
}

.ai-step i {
    font-size: 20px;
    color: #8b5cf6;
}

.ai-step.completed i {
    color: #10b981;
}

.ai-step span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

/* AI Insights Content */
.ai-insights-content {
    padding: 24px;
}

.ai-insights-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e1e5e9;
}

.ai-insights-header h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-insights-header i {
    color: #8b5cf6;
}

.ai-insights-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
}

.stat-item i {
    color: #8b5cf6;
}

.ai-category-section {
    margin-bottom: 32px;
}

.ai-category-header {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ai-no-insights {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.ai-no-insights i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.ai-no-insights h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-no-insights p {
    color: #6b7280;
    font-size: 14px;
}

.ai-insight-group {
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
}

.ai-insight-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ai-insight-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.4;
}

.ai-insight-category {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: max-content;
}

.category-leadership {
    background: #dbeafe;
    color: #1d4ed8;
}

.category-awards {
    background: #fef3c7;
    color: #d97706;
}

.category-ma {
    background: #e0e7ff;
    color: #6366f1;
}

.ai-impact-score {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.impact-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.impact-high {
    background: #fee2e2;
    color: #dc2626;
}

.impact-medium {
    background: #fef3c7;
    color: #d97706;
}

.impact-low {
    background: #e5e7eb;
    color: #6b7280;
}

.ai-insight-summary {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.ai-sources {
    margin-top: 16px;
}

.ai-sources-header {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-sources-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ai-source-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    padding: 6px 12px;
    background: #f9fafb;
    border-radius: 4px;
    border-left: 3px solid #8b5cf6;
    transition: all 0.2s ease;
}

.ai-source-link:hover {
    background: #f3f4f6;
    color: #374151;
    border-left-color: #7c3aed;
}

.ai-source-link i {
    margin-right: 6px;
    color: #8b5cf6;
}

/* AI Error State */
.ai-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.ai-error i {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.ai-error h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-error p {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
}

/* AI Footer */
.ai-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.ai-footer-info i {
    color: #8b5cf6;
}

/* Responsive Design for AI Modal */
@media (max-width: 768px) {
    .ai-insights-modal .modal-content {
        max-width: 95vw;
        height: 90vh;
        margin: 20px;
    }
    
    .input-with-action {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .input-action-btn {
        justify-content: center;
    }
    
    .modal-header-info {
        display: none;
    }
    
    .ai-progress-steps {
        flex-direction: column;
        gap: 16px;
    }
}

.no-articles h5 {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}
