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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
}

.app-container {
    width: 100%;
    margin: 0;
    background: white;
    min-height: 100vh;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
}

.header-content {
    width: 100%;
    margin: 0;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo i {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0 2rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    color: #2c3e50;
    border-bottom-color: #3498db;
    background: white;
}

.tab-button i {
    font-size: 1.1rem;
}

/* Tab Content */
.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2.5rem;
    margin: 0 0 2rem 0;
    border-radius: 0;
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
}

.panel-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.panel-header-text {
    text-align: left;
    flex: 1;
}

.panel-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.panel-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Filters - Modern Design */
.filters-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Searchable Select */
.searchable-select-container {
    position: relative;
    width: 100%;
}

.searchable-input {
    width: 100%;
    height: 32px;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    background: white;
    box-sizing: border-box;
}

.searchable-input:focus {
    outline: none;
    border-color: #007bff;
}

.searchable-select {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 3px 3px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.searchable-select.show {
    display: block;
}

.searchable-option {
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.searchable-option:hover {
    background: #f8f9fa;
}

.searchable-option.selected {
    background: #e3f2fd;
    color: #1976d2;
}

.searchable-option:last-child {
    border-bottom: none;
}

/* Enhanced Filter Components */
.enhanced-filter-container {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    flex-wrap: wrap;
}

.search-input-container {
    position: relative;
    flex: 0 0 180px;
    min-width: 180px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    z-index: 1;
}

.enhanced-search-input {
    width: 100%;
    height: 44px;
    padding: 12px 12px 12px 40px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.enhanced-search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    max-width: 240px;
    font-size: 0.95rem;
    color: #1f2937;
    box-sizing: border-box;
    flex: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.filter-dropdown-btn:hover {
    background: linear-gradient(180deg, #ffffff, #eef2ff);
    border-color: #a5b4fc;
    box-shadow: 0 2px 6px rgba(59,113,202,0.12);
}

.filter-dropdown-btn.active {
    background: #ffffff;
    border-color: #3b82f6;
    color: #1f2937;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.filter-dropdown-btn.active .dropdown-icon {
    transform: rotate(180deg);
}

.filter-text {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-icon {
    margin-left: 8px;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(31,41,55,0.12);
    z-index: 10000;
    min-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.filter-dropdown.show {
    display: block;
}

.filter-options {
    padding: 8px 0;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    color: #334155;
}

.filter-option:hover {
    background: #f8f9fa;
}

.filter-option.selected {
    background: #e3f2fd;
    color: #1976d2;
}

.filter-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: #3498db;
}

.filter-option-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-count {
    margin-left: 8px;
    padding: 2px 6px;
    background: #e9ecef;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #6c757d;
}

.filter-option.selected .filter-count {
    background: #bbdefb;
    color: #1976d2;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    font-weight: 700;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
}

.filter-select,
.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background: white;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    line-height: 1.5;
    min-height: 44px;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.score-range-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #dee2e6;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.score-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#score-display {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.clear-filters-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: start;
    min-height: 44px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

/* Results Summary - Simplified */
.results-summary {
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.results-summary i {
    color: #667eea;
    font-size: 1.25rem;
}

.results-summary span {
    font-weight: 700;
    color: #495057;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

.data-table th {
    background: #f8f9fa;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Center align headers for score columns in Active Brands table */
#active-brands-table th:nth-child(2),
#active-brands-table th:nth-child(3),
#active-brands-table th:nth-child(4),
#active-brands-table th:nth-child(5),
#active-brands-table th:nth-child(6),
#active-brands-table th:nth-child(7) {
    text-align: center;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.data-table th.sortable:hover {
    background: #e9ecef;
}

.data-table th.sortable i {
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.data-table th.sortable:hover i {
    opacity: 1;
}

.data-table th.sort-asc i::before {
    content: "\f0de";
    opacity: 1;
    color: #3498db;
}

.data-table th.sort-desc i::before {
    content: "\f0dd";
    opacity: 1;
    color: #3498db;
}

.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Active Brands Table Specific Styling - Modern Professional Design */
#active-brands-table {
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

#active-brands-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

#active-brands-table th {
    color: white !important;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.2rem 1rem !important;
    border: none !important;
    background: transparent !important;
}

#active-brands-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

#active-brands-table tbody tr {
    background-color: white;
}

#active-brands-table tbody tr:hover {
    background-color: #f9fafb !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#active-brands-table tbody td {
    padding: 1rem !important;
    color: #374151;
    font-size: 0.9rem;
    vertical-align: middle;
    background-color: inherit;
}

#active-brands-table th:nth-child(1),
#active-brands-table td:nth-child(1) {
    width: 18%; /* Company Name */
    font-weight: 600;
}

#active-brands-table th:nth-child(2),
#active-brands-table td:nth-child(2) {
    width: 10%; /* Priority */
    text-align: center;
}

#active-brands-table th:nth-child(3),
#active-brands-table td:nth-child(3) {
    width: 10%; /* Final Score */
    text-align: center;
}

#active-brands-table th:nth-child(4),
#active-brands-table td:nth-child(4) {
    width: 10%; /* Total Articles */
    text-align: center;
}

#active-brands-table th:nth-child(5),
#active-brands-table td:nth-child(5) {
    width: 13%; /* Expansion & Product */
    text-align: center;
}

#active-brands-table th:nth-child(6),
#active-brands-table td:nth-child(6) {
    width: 13%; /* Marketing & Campaigns */
    text-align: center;
}

#active-brands-table th:nth-child(7),
#active-brands-table td:nth-child(7) {
    width: 13%; /* Funding & Finance */
    text-align: center;
}

#active-brands-table th:nth-child(8),
#active-brands-table td:nth-child(8) {
    width: 13%; /* Brand Fit Score */
    text-align: center;
}

.data-table tbody tr {
    transition: background-color 0.3s ease;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.data-table tbody tr:nth-child(even):hover {
    background: #f1f3f4;
}

/* Priority Badges - Modern Design */
.priority-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.priority-p2 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.priority-p3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.priority-p4 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Score Display - Modern Circular Badges */
.score-cell {
    font-weight: 700;
    text-align: center;
}

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.final-score-badge {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.score-high {
    color: #28a745;
}

.score-medium {
    color: #ffc107;
}

.score-low {
    color: #dc3545;
}

/* IP Selection - Modern Design */
.ip-selection-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
}

.ip-selection-container label {
    font-weight: 700;
    color: #495057;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.ip-select {
    padding: 0.9rem 2rem;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.ip-select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.ip-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Loading Overlay */
.loading-overlay {
    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;
}

.loading-spinner {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.loading-spinner p {
    color: #495057;
    font-weight: 500;
}

/* Scraping Controls Styles */
.scraping-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.scraping-panel, .archive-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scraping-panel h3, .archive-section h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.scraping-panel p, .archive-section p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.scraping-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scraping-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.scraping-btn.primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.scraping-btn.primary:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.scraping-btn.secondary {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.scraping-btn.secondary:hover {
    background: linear-gradient(135deg, #c82333 0%, #e55a00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.progress-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

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

.progress-title {
    font-weight: 600;
    color: #2c3e50;
}

.progress-percentage {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.progress-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.archive-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

#archiveSelector {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
}

.archive-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.archive-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #520dc2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.archive-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.archive-label {
    font-weight: 600;
    color: #1976d2;
    font-size: 0.9rem;
}

.archive-date {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .scraping-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .progress-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .archive-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scraping-actions {
        flex-direction: column;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid #007bff;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info .notification-content i {
    color: #17a2b8;
}

.notification-content span {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.app-container {
        margin: 0;
        box-shadow: none;
    }
    
    .app-header {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .panel-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .panel-header-text {
        text-align: center;
    }
    
    .tab-navigation {
        padding: 0 1rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
    
    /* Adjust column widths for mobile */
    #active-brands-table th:nth-child(1),
    #active-brands-table td:nth-child(1) {
        width: 25%; /* Slightly wider company name on mobile */
    }
    
    #active-brands-table th:nth-child(2),
    #active-brands-table td:nth-child(2),
    #active-brands-table th:nth-child(3),
    #active-brands-table td:nth-child(3) {
        width: 10%; /* Slightly narrower score columns on mobile */
    }
    
    #active-brands-table th:nth-child(4),
    #active-brands-table td:nth-child(4),
    #active-brands-table th:nth-child(5),
    #active-brands-table td:nth-child(5),
    #active-brands-table th:nth-child(6),
    #active-brands-table td:nth-child(6),
    #active-brands-table th:nth-child(7),
    #active-brands-table td:nth-child(7) {
        width: 12%; /* Slightly narrower category columns on mobile */
    }
}

/* Clickable Score */
.clickable-score {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.clickable-score:hover {
    background: rgba(52, 152, 219, 0.1) !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clickable-score::after {
    content: "👁️";
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-score:hover::after {
    opacity: 1;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #495057;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
}

.modal-body p:last-of-type {
    margin-bottom: 1.5rem;
}

#modal-reasoning {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    line-height: 1.6;
    color: #495057;
}


/* Comprehensive Pitch Modal Styles */
.comprehensive-pitch-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Real Time Data Tab Styles */
.insights-dashboard {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.insight-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.insight-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.insight-content p {
    color: #7f8c8d;
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Real Time Data Table Styles */
#realtime-table {
    font-size: 0.9rem;
}

#realtime-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    padding: 1rem 0.75rem;
}

#realtime-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-bottom: 1px solid #e9ecef;
}

#realtime-table .title-cell {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.4;
}

#realtime-table .link-cell {
    text-align: center;
}

.external-link-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.external-link-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.external-link-btn i {
    margin-right: 0.25rem;
}

/* Date formatting */
.date-cell {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.marketing {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.funding {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.leadership {
    background: #e8f5e8;
    color: #388e3c;
}

.category-badge.expansion {
    background: #fff3e0;
    color: #f57c00;
}

/* Load More Button */
.load-more-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* Responsive adjustments for Real Time Data */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .insight-card {
        padding: 1rem;
    }
    
    .insight-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .insight-content h3 {
        font-size: 1.5rem;
    }
    
    #realtime-table .title-cell {
        max-width: 200px;
    }
}

.company-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.company-header h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.company-details {
    color: #6c757d;
    font-size: 0.9rem;
}

.company-details span {
    margin: 0 0.5rem;
}

.pitch-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pitch-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
}

.pitch-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pitch-section h4 i {
    color: #3498db;
}

.score-display {
    margin-bottom: 1rem;
}

.score-value {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.score-value.score-high {
    background: #d4edda;
    color: #155724;
}

.score-value.score-medium {
    background: #fff3cd;
    color: #856404;
}

.score-value.score-low {
    background: #f8d7da;
    color: #721c24;
}

.reasoning-content h5 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.reasoning-content p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-metric {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.activity-metric strong {
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.activity-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    color: #6c757d;
}

.activity-list li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.no-data {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
}

.pitch-points {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pitch-list {
    margin: 0;
    padding-left: 1.5rem;
    color: #495057;
}

.pitch-list li {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.clickable-company-name {
    color: #1f2937;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.clickable-company-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.clickable-company-name:hover {
    color: #667eea;
    transform: translateX(2px);
}

.clickable-company-name:hover::after {
    width: 100%;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

/* News Strip Styles */
.news-strip-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b82f6 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(30, 60, 114, 0.4), 0 8px 16px rgba(42, 82, 152, 0.3);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.news-strip-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(30, 60, 114, 0.5), 0 12px 24px rgba(42, 82, 152, 0.4);
}

.news-strip-header {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.news-strip-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #1e40af 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(29, 78, 216, 0.3);
    animation: pulse 2s infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.news-strip-icon i {
    color: white;
    font-size: 1.2rem;
}

.news-strip-title {
    flex: 1;
    color: white;
}

.news-strip-title h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.news-strip-title p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.news-strip-controls {
    display: flex;
    gap: 0.5rem;
}

.news-control-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.news-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.news-strip-content {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.news-carousel {
    position: relative;
    overflow: hidden;
    height: 85px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

.news-carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.8s ease-in-out;
    backdrop-filter: blur(15px);
    opacity: 0;
    transform: translateX(100%);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.news-item.active {
    opacity: 1;
    transform: translateX(0);
}

.news-item.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.news-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.news-nav-prev {
    left: 10px;
}

.news-nav-next {
    right: 10px;
}

.news-item-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 90%;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.news-item-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.news-item-company {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.news-item-title {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    word-wrap: break-word;
    max-width: 70%;
}

.news-item-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.news-item-read-more {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.4);
    backdrop-filter: blur(10px);
}

.news-item-read-more:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
}

.news-strip-paused .news-ticker-content {
    animation-play-state: paused;
}

.news-strip-paused .news-strip-icon {
    animation-play-state: paused;
}

/* News Strip Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.news-modal.show {
    display: flex;
}

.news-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.news-modal-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.news-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.news-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.news-modal-body {
    padding: 1.5rem;
}

.news-modal-article {
    margin-bottom: 1.5rem;
}

.news-modal-company {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.news-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-modal-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-modal-category {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.news-modal-source {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.news-modal-date {
    background: #e8f5e8;
    color: #388e3c;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.news-modal-link {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-modal-link:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Responsive Design for News Strip */
@media (max-width: 768px) {
    .news-strip-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .news-strip-controls {
        justify-content: center;
    }
    
    .news-item {
        min-width: 250px;
        max-width: 300px;
    }
    
    .news-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-item-company,
    .news-item-category,
    .news-item-read-more {
        margin: 0;
    }
    
    .news-modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Time-based Filter */
.time-filter-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.time-filter-header {
    text-align: center;
    margin-bottom: 20px;
}

.time-filter-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.time-filter-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

.time-filter-options {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.time-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.time-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.time-filter-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.time-filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.time-filter-btn i {
    font-size: 1rem;
}

/* Active Brands Dashboard Styles */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.featured-card {
    border: 2px solid #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transform: scale(1.02);
}

.featured-card .metric-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.company-list {
    margin-top: 15px;
}

.company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
    gap: 12px;
}

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

.company-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.company-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Company Logo Color Schemes */
.company-logo.logo-z { background: linear-gradient(135deg, #8b5cf6, #7c3aed); } /* ZEPTO - Purple */
.company-logo.logo-k { background: linear-gradient(135deg, #ef4444, #dc2626); } /* KIA - Red */
.company-logo.logo-r { background: linear-gradient(135deg, #3b82f6, #2563eb); } /* RAZORPAY - Blue */
.company-logo.logo-m { background: linear-gradient(135deg, #1d4ed8, #1e40af); } /* META - Dark Blue */
.company-logo.logo-b { background: linear-gradient(135deg, #f59e0b, #d97706); } /* BOAT - Orange */
.company-logo.logo-a { background: linear-gradient(135deg, #10b981, #059669); } /* ADANI - Green */
.company-logo.logo-u { background: linear-gradient(135deg, #f97316, #ea580c); } /* UPI - Orange */
.company-logo.logo-s { background: linear-gradient(135deg, #06b6d4, #0891b2); } /* SWIGGY - Cyan */
.company-logo.logo-p { background: linear-gradient(135deg, #ec4899, #db2777); } /* PAYTM - Pink */
.company-logo.logo-f { background: linear-gradient(135deg, #6366f1, #4f46e5); } /* FLIPKART - Indigo */

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

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

.company-score {
    font-weight: 700;
    color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.metric-card:nth-child(1) .metric-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.metric-card:nth-child(2) .metric-icon {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

.metric-card:nth-child(3) .metric-icon {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.metric-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.metric-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

/* Priority Leads Header Section */
#activeBrands .section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px 12px 0 0;
    color: white;
    margin-bottom: 0;
}

#activeBrands .section-header h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

#activeBrands .section-header p {
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.95;
    font-weight: 400;
}

.active-brands-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.active-brands-filters .filter-group {
    flex: 1;
    min-width: 200px;
}

.active-brands-filters .filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #495057;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.active-brands-filters select,
.active-brands-filters input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.active-brands-filters select:focus,
.active-brands-filters input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.active-brands-filters button {
    padding: 0.75rem 2rem;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.active-brands-filters button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.active-brands-filters button:active {
    transform: translateY(0);
}

/* Expandable Row Styles */
.expandable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.expanded-content {
    display: none;
    background-color: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.expanded-content.show {
    display: table-row;
}

.expanded-content td {
    padding: 20px;
    border: none;
}

.article-examples {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e5e7eb;
}

.article-examples h4 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 0.9rem;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list li::before {
    content: "📰";
    margin-right: 8px;
}

.expand-icon {
    transition: transform 0.2s ease;
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.expand-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s ease;
}

.expand-btn:hover {
    background: #5a67d8;
}

.expandable-row.expanded .expand-icon {
    transform: rotate(180deg);
}






