/* Dashboard specific styles */

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: white;
    padding: 20px 0;
    border-bottom: 3px solid #3498db;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin: 0;
    font-family: 'Courier New', monospace;
}

.dashboard-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0;
    color: #ecf0f1;
}

.country-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.country-selector label {
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Form Controls */
.form-control {
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    min-width: 200px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Dashboard Main */
.dashboard-main {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 30px;
}

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

.stat-card {
    background: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 2.5rem;
    color: #3498db;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
    text-align: left;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

/* Icon styles for labels and headers */
.search-item label .icon,
.content-item h3 .icon,
.table-header h3 .icon,
.results-info .icon {
    color: #3498db;
    margin-right: 8px;
}

.pagination-controls .btn .icon {
    font-size: 0.8rem;
}

/* Search Section */
.search-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

.search-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-item label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.content-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-item h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

/* Chart Container */
.chart-wrapper {
    position: relative;
    height: 300px;
}

/* Map Container */
.map-container {
    position: relative;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-info {
    text-align: center;
    color: white;
    z-index: 2;
}

.map-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.map-legend {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.high {
    background: #e74c3c;
}

.legend-color.medium {
    background: #f39c12;
}

.legend-color.low {
    background: #27ae60;
}

/* Table Section */
.table-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #ecf0f1;
    background: #f8f9fa;
}

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

.table-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.results-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-small:hover:not(:disabled) {
    background: #2980b9;
}

.btn-small:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 0.9rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
}

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

.data-table th {
    background: #2c3e50;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #ecf0f1;
    vertical-align: top;
}

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

.loading-cell {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 40px;
}

/* Newsletter Banner */
.newsletter-banner {
    background: #3498db;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-text {
    font-size: 0.95rem;
    flex: 1;
    min-width: 300px;
}

.btn-signup {
    background: white;
    color: #3498db;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: #ecf0f1;
    transform: translateY(-1px);
}

/* Bottom Navigation */
.bottom-nav {
    background: #2c3e50;
    padding: 15px 0;
    border-top: 3px solid #3498db;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-section {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .dashboard-title {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .banner-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .banner-text {
        min-width: auto;
    }
    
    .nav-links {
        gap: 15px;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .form-control {
        min-width: 150px;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}