
/* Enhanced Dog Bite Report Styles */
.dbr-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dbr-form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.dbr-form-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.dbr-form-header p {
    margin: 0;
    opacity: 0.9;
}

.dbr-form {
    padding: 2rem;
}

.dbr-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.dbr-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.dbr-section h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.dbr-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dbr-field {
    margin-bottom: 1rem;
}

.dbr-field label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.dbr-field input,
.dbr-field select,
.dbr-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.dbr-field input:focus,
.dbr-field select:focus,
.dbr-field textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dbr-field input:disabled,
.dbr-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.dbr-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.dbr-submit-btn,
.dbr-reset-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dbr-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dbr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dbr-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dbr-reset-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.dbr-reset-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dbr-form-messages {
    margin-top: 1rem;
}

.dbr-success-message,
.dbr-error-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.dbr-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dbr-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Chart Styles */
.dbr-chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dbr-chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 1rem;
}

.dbr-chart-filters select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.dbr-chart-actions {
    display: flex;
    gap: 0.5rem;
}

.dbr-download-btn {
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dbr-download-btn:hover {
    background: #5a67d8;
}

.dbr-chart-wrapper {
    padding: 1rem;
    position: relative;
}

.dbr-chart-loading,
.dbr-chart-no-data {
    text-align: center;
    padding: 2rem;
}

.dbr-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats Styles */
.dbr-stats-container {
    margin: 1rem 0;
}

.dbr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.dbr-stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.dbr-stat-card h4 {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dbr-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.dbr-stat-severe {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dbr-form {
        padding: 1rem;
    }
    
    .dbr-row {
        grid-template-columns: 1fr;
    }
    
    .dbr-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dbr-chart-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dbr-chart-actions {
        justify-content: center;
    }
}

/* Accessibility */
.dbr-field input:focus,
.dbr-field select:focus,
.dbr-field textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .dbr-submit-btn:hover {
        transform: none;
    }
    
    .dbr-spinner {
        animation: none;
    }
}
