/* EUWID Dashboard Styles */

.euwid-public-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.euwid-public-dashboard h2 {
    color: #1a365d;
    border-bottom: 3px solid #2c5282;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.euwid-public-dashboard h3 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.filter-bar button {
    padding: 10px 25px;
    background: #2c5282;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.filter-bar button:hover {
    background: #1a365d;
}

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

.chart-box {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.chart-box.full-width {
    grid-column: 1 / -1;
}

/* Keyword Cloud */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #edf2f7;
    border-radius: 20px;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.keyword-tag:hover {
    background: #2c5282;
    color: white;
    border-color: #2c5282;
}

/* Admin Stats */
.euwid-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card h3 {
    font-size: 14px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5282;
}

/* Article List */
#article-list {
    margin-top: 30px;
}

.article-item {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-item:hover {
    background: #f7fafc;
}

.article-date {
    color: #718096;
    font-size: 13px;
    min-width: 100px;
}

.article-title {
    flex: 1;
    padding: 0 20px;
}

.article-category {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-category.business {
    background: #c6f6d5;
    color: #276749;
}

.article-category.markets {
    background: #feebc8;
    color: #c05621;
}

.article-category.policy {
    background: #e9d8fd;
    color: #6b46c1;
}

/* Responsive */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .euwid-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-bar select,
    .filter-bar input,
    .filter-bar button {
        width: 100%;
    }
}
