/* Horse Betting Analysis - Frontend Styles */

.hba-race-day-display {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hba-race-day-header {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.hba-race-day-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.hba-race-date {
    font-size: 18px;
    color: #6c757d;
    margin: 0 0 15px 0;
}

.hba-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.hba-status.scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.hba-status.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.hba-status.completed {
    background: #e1f5fe;
    color: #0277bd;
}

.hba-status.cancelled {
    background: #ffebee;
    color: #c62828;
}

.hba-races-list {
    display: grid;
    gap: 20px;
}

.hba-race-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hba-race-header {
    margin-bottom: 20px;
}

.hba-race-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.hba-race-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.hba-race-details span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.hba-horses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.hba-horses-table th,
.hba-horses-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.hba-horses-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.hba-horses-table tr:hover {
    background: #f8f9fa;
}

/* Rating Form Styles */
.hba-rating-form-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hba-rating-form-container h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.hba-rating-form-container p {
    color: #6c757d;
    margin-bottom: 30px;
}

.hba-horse-rating-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hba-horse-rating-section h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.hba-horse-details {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.hba-rating-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.hba-rating-metric {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
}

.hba-rating-metric label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.hba-rating-metric .description {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hba-rating-options {
    display: flex;
    gap: 8px;
}

.hba-rating-option {
    flex: 1;
    text-align: center;
}

.hba-rating-option input[type="radio"] {
    display: none;
}

.hba-rating-option label {
    display: block;
    padding: 8px 6px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: normal;
    transition: all 0.2s;
    margin: 0;
}

.hba-rating-option input[type="radio"]:checked + label {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.hba-form-group {
    margin-bottom: 20px;
}

.hba-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.hba-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.hba-form-actions {
    text-align: center;
    margin-top: 30px;
}

.hba-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.hba-btn:hover {
    background: #0056b3;
    color: #fff;
}

/* Recommendations Display */
.hba-recommendations-display {
    max-width: 1000px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hba-recommendations-display h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.hba-recommendation {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hba-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hba-recommendation-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
}

.hba-confidence-score {
    background: #007bff;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hba-recommendation-type {
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.hba-recommendation-content {
    color: #495057;
    line-height: 1.6;
}

.hba-recommendation-content strong {
    color: #2c3e50;
}

.hba-recommendation-content p {
    margin: 10px 0;
}

/* Race Results Display */
.hba-race-results-display {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.hba-races-results {
    display: grid;
    gap: 25px;
}

.hba-race-result {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hba-race-result h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.hba-race-details {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
}

.hba-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hba-results-table th,
.hba-results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.hba-results-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.hba-results-table tr.hba-winner {
    background: #e8f5e8;
    font-weight: 600;
}

/* Notices and Messages */
.hba-notice {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    font-weight: 500;
}

.hba-notice.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.hba-notice.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.hba-notice.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.hba-notice.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hba-race-day-header h2 {
        font-size: 24px;
    }
    
    .hba-race-header h3 {
        font-size: 18px;
    }
    
    .hba-race-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .hba-rating-metrics {
        grid-template-columns: 1fr;
    }
    
    .hba-rating-options {
        flex-direction: column;
    }
    
    .hba-recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hba-horses-table,
    .hba-results-table {
        font-size: 12px;
    }
    
    .hba-horses-table th,
    .hba-horses-table td,
    .hba-results-table th,
    .hba-results-table td {
        padding: 8px;
    }
} 