/* Prediction Block Styles */
.prediction-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin: 24px 0;
    background-color: #f9fafb;
}

.prediction-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 12px;
    color: #111827;
}

.prediction-meta {
    display: flex;
    gap: 16px;
    font-size: 0.9em;
    color: #4b5563;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.prediction-meta span {
    display: inline-flex;
    align-items: center;
}

.prediction-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 12px;
}

.prediction-number-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    text-align: center;
}

.prediction-number-item .number {
    font-size: 1em;
    font-weight: bold;
    color: #dc2626; /* Red for the number */
}

.prediction-number-item .status {
    font-size: 0.6em;
    font-weight: 500;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffffff;
}

/* Status-specific styles */
.prediction-number-item.status-pending .status {
    background-color: #6b7280; /* Gray */
}
.prediction-number-item.status-win .status {
    background-color: #16a34a; /* Green */
}
.prediction-number-item.status-lose .status {
    background-color: #ef4444; /* Red */
}

/* Appended from prediction-template-block.css */

.prediction-template-block {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

    border-bottom: 2px solid #f0f0f0;
}

.template-title {
    color: #333;
    font-size: 1.4em;
    margin: 0;
    font-weight: 600;
}

.template-region {
    background: #007cba;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

.predictions-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.predictions-table.compact {
    gap: 8px;
}

.prediction-row {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.predictions-table.compact .prediction-row {
    grid-template-columns: 50px 1fr;
    gap: 10px;
    padding: 8px;
}

.prediction-date {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
    text-align: center;
}

.prediction-numbers {
    flex-wrap: wrap;
    gap: 6px;
}

.prediction-number {
    align-items: center;
    gap: 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: 600;
    font-size: 0.8em;
    min-width: 35px;
    text-align: center;
    position: relative;
    transition: all 0.2s ease;
}

.prediction-number:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Status-based styling */
.prediction-number.status-win {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.prediction-number.status-lose {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.prediction-number.status-pending {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.status-indicator {
    font-size: 0.7em;
    font-weight: bold;
}

.prediction-number.status-win .status-indicator {
    color: #28a745;
}

.prediction-number.status-lose .status-indicator {
    color: #dc3545;
}

.prediction-number.status-pending .status-indicator {
    color: #ffc107;
}

.prediction-summary {
    text-align: right;
    font-size: 0.85em;
}

.win-summary {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.no-predictions {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.no-predictions p {
    margin: 0;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .prediction-template-block {
        padding: 15px;
        margin: 15px 0;
    }
    
    .template-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .template-title {
        font-size: 1.2em;
    }
    
    .prediction-row {
        grid-template-columns: 45px 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .prediction-numbers {
        gap: 4px;
    }
    
    .prediction-number {
        padding: 3px 6px;
        font-size: 0.85em;
        min-width: 30px;
    }
}

@media (max-width: 480px) {
    .prediction-template-block {
        padding: 12px;
    }
    
    .prediction-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .prediction-date {
        text-align: left;
        font-size: 0.8em;
    }
    
    .prediction-numbers {
        justify-content: flex-start;
    }
}

/* Legacy single prediction block compatibility */
.prediction-block.single {
    border-left: 4px solid #28a745;
}

.prediction-block.single .prediction-meta {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.prediction-block.single .prediction-meta span {
    margin-right: 15px;
    font-size: 0.9em;
}
