/* History Page Styles */

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.results-table th,
.results-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 700;
}

.results-table tr:hover {
    background-color: #fcfcfc;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
    color: #fff;
}

/* Poster Grid */
.poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.poster-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
    text-align: center;
}

.poster-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.poster-img-wrapper {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.poster-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.poster-item:hover .poster-img-wrapper img {
    transform: scale(1.05);
}

.poster-info {
    padding: 15px;
}

.poster-title {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.poster-year {
    color: var(--text-light);
    font-size: 14px;
}

/* Works Status Stats */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(26, 54, 93, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-info .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.chart-container {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    /* Placeholder for chart */
    color: #999;
}