/* 
   Special Olympics Idaho - Dashboard Styles
   Modern stylesheet for dashboard/admin pages
*/

:root {
    --so-red: #E31837;
    --so-blue: #0066B3;
    --so-dark: #1a1a2e;
    --so-light: #f8f9fa;
    --so-gray: #6c757d;
    --so-success: #28a745;
    --so-warning: #ffc107;
    --so-info: #17a2b8;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--so-blue) 0%, #0052a3 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.page-header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.modern-card-header {
    background: linear-gradient(135deg, var(--so-blue) 0%, #0052a3 100%);
    color: white;
    padding: 1rem 1.5rem;
    margin: -2rem -2rem 1.5rem -2rem;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-card-header i {
    font-size: 1.5rem;
}

/* Section Headers */
.section-header {
    color: var(--so-blue);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--so-red);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    color: var(--so-red);
}

/* Season Cards */
.season-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--so-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.season-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.season-card.summer {
    border-left-color: #FFA500;
    background: linear-gradient(to right, rgba(255,165,0,0.05) 0%, white 10%);
}

.season-card.fall {
    border-left-color: #8B4513;
    background: linear-gradient(to right, rgba(139,69,19,0.05) 0%, white 10%);
}

.season-card.winter {
    border-left-color: #4169E1;
    background: linear-gradient(to right, rgba(65,105,225,0.05) 0%, white 10%);
}

.season-card.bowling {
    border-left-color: var(--so-red);
    background: linear-gradient(to right, rgba(227,24,55,0.05) 0%, white 10%);
}

.season-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.season-title i {
    font-size: 1.5rem;
}

.season-card.summer .season-title {
    color: #FFA500;
}

.season-card.fall .season-title {
    color: #8B4513;
}

.season-card.winter .season-title {
    color: #4169E1;
}

.season-card.bowling .season-title {
    color: var(--so-red);
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--so-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--so-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,102,179,0.15);
}

/* Date Inputs */
.date-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.date-input-group label {
    min-width: 100px;
    margin-bottom: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--so-blue) 0%, #0052a3 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,102,179,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,102,179,0.4);
    background: linear-gradient(135deg, #0052a3 0%, var(--so-blue) 100%);
}

.btn-secondary {
    background: var(--so-gray);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--so-success);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

/* Image Preview */
.image-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Team Management Grid */
.management-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.management-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--so-light);
    border-radius: 8px;
    transition: background 0.3s ease;
    margin-bottom: 0.5rem;
}

.management-item:hover {
    background: #e9ecef;
}

.management-item label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.management-item small {
    display: block;
    color: var(--so-gray);
    font-size: 0.75rem;
}

.management-item .form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Helper Text */
.helper-text {
    color: var(--so-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid var(--so-info);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.info-box i {
    color: var(--so-info);
    margin-right: 0.5rem;
}

/* Accordion Overrides for Seasons */
.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--so-light);
    color: var(--so-dark);
}

.accordion-button:not(.collapsed) {
    background: var(--so-blue);
    color: white;
}

.accordion-button:focus {
    border-color: var(--so-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,102,179,0.15);
}

.accordion-body {
    padding: 1.5rem;
}

/* TinyMCE Container */
.editor-container {
    margin-bottom: 1.5rem;
}

.editor-container label {
    display: block;
    margin-bottom: 0.5rem;
}

/* Alert Boxes */
.alert-info {
    background: #e7f3ff;
    border-left: 4px solid var(--so-info);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-card {
        padding: 1.5rem;
    }
    
    .modern-card-header {
        margin: -1.5rem -1.5rem 1rem -1.5rem;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .management-item {
        grid-template-columns: 1fr;
    }
    
    .date-input-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-input-group label {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .modern-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .section-header {
        font-size: 1.25rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.625rem 1.5rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error Messages */
.message-box {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.message-box.success {
    background: #d4edda;
    border-left: 4px solid var(--so-success);
    color: #155724;
}

.message-box.error {
    background: #f8d7da;
    border-left: 4px solid var(--so-red);
    color: #721c24;
}

/* Input Groups */
.input-group-text {
    background: var(--so-light);
    border: 2px solid #e0e0e0;
    border-right: none;
    font-weight: 500;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--so-blue);
}

/* Form Text (helper text below inputs) */
.form-text {
    color: var(--so-gray);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}