/* Predictions App Layout */
.predictions-container {
    max-width: 1200px; /* Adjusted for better centering */
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-2xl); /* Increased vertical padding */
}

.predictions-header {
    text-align: center;
    padding: var(--space-4xl) 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.predictions-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-lg);
    text-align: center; /* Ensure title is centered */
}

.predictions-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 800px; /* Increased max-width for subtitle */
    margin: 0 auto var(--space-3xl) auto; /* Increased bottom margin */
    text-align: center; /* Ensure subtitle is centered */
    line-height: 1.6;
}

/* Card containing the table */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); /* Slightly more prominent shadow */
    margin-bottom: var(--space-4xl); /* More space below the card */
}

.card-body {
    padding: var(--space-3xl); /* Increased padding inside the card */
}

/* Prediction Table */
.prediction-table {
    width: 100%;
    border-collapse: separate; /* Use separate to allow border-spacing */
    border-spacing: 0 var(--space-sm); /* Vertical spacing between rows */
    margin-top: var(--space-xl);
}

.prediction-table th,
.prediction-table td {
    padding: var(--space-md) var(--space-lg); /* Increased padding for cells */
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.prediction-table th {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    color: var(--text-secondary);
    background-color: var(--bg-tertiary); /* Light background for header */
}

.prediction-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.prediction-table tbody tr:hover {
    background-color: var(--bg-secondary); /* Lighter hover effect */
}

.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border-radius: var(--radius-full);
    color: var(--text-inverse);
}

.badge-pending {
    background-color: var(--warning-color);
}

.badge-generated {
    background-color: var(--info-color);
}

.badge-reviewed {
    background-color: var(--success-color);
}

.badge-published {
    background-color: var(--primary-color);
}

/* Button spacing within table cells */
.prediction-table td .btn {
    margin-right: var(--space-sm); /* Space between buttons */
    margin-bottom: var(--space-xs); /* Small vertical space for wrapping buttons */
}

.prediction-table td .btn:last-child {
    margin-right: 0;
}

/* Specific adjustments for .btn-sm within table cells */
.prediction-table td .btn.btn-sm {
    padding: 0.1rem var(--space-sm) !important; /* More compact padding */
    line-height: 1 !important; /* Ensure line height doesn't add extra space */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .predictions-container {
        padding: var(--space-2xl) var(--space-md);
    }

    .predictions-title {
        font-size: var(--text-4xl);
    }

    .predictions-subtitle {
        font-size: var(--text-base);
    }

    .prediction-table th,
    .prediction-table td {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }

    .prediction-table td .btn {
        font-size: var(--text-xs);
        padding: var(--space-xs) var(--space-sm);
    }
}
