/* ========================================
   MODERN SCHEDULE - БАЗОВЫЕ СТИЛИ
   ======================================== */

:root {
    /* Цвета SwimRocket */
    --primary: #ef6330;
    --primary-hover: #d55527;
    --primary-light: #ff8a5c;
    
    /* Текст */
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    
    /* Фон */
    --bg-page: #f0f0f0;
    --bg-card: #fff;
    --bg-hover: #f9f9f9;
    
    /* Границы */
    --border-color: #ddd;
    --border-light: #eee;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 24px;
    
    /* Шрифты */
    --font-primary: 'Roboto', Arial, sans-serif;
    --font-heading: 'Bebas Neue', Arial, sans-serif;
    
    /* Размеры */
    --container-width: 1200px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.site-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0;
}

/* ========================================
   TABS NAVIGATION
   ======================================== */

.tabs-navigation {
    display: flex;
    gap: 0;
    margin-bottom: var(--spacing-lg);
}

.tab-btn {
    background: white;
    border: 2px solid var(--primary);
    border-left: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.2;
    padding: 15px 40px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tab-btn:first-child {
    border-left: 2px solid var(--primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.tab-btn:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tab-btn:hover,
.tab-btn.active {
    background: #242840;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   INFO BANNER
   ======================================== */

.info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.info-banner__text {
    font-size: 16px;
    color: var(--text-dark);
    flex: 1;
}

.info-banner__button {
    background: #242840;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.info-banner__button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   VIEW TOGGLE
   ======================================== */

.view-toggle {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.view-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.view-btn:hover {
    border-color: #242840;
    color: var(--primary);
}

.view-btn.active {
    background: #242840;
    border-color: #242840;
    color: white;
}

/* ========================================
   RESULTS INFO
   ======================================== */

.results-info {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    color: var(--text-medium);
}

#results-count {
    font-weight: 600;
    color: var(--text-dark);
}

/* ========================================
   SCHEDULE CONTAINER
   ======================================== */

.schedule-container {
    margin-bottom: var(--spacing-xl);
}

/* Скрываем оригинальный виджет 1С */
#fit1c-calendar {
    display: none !important;
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto var(--spacing-lg);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-medium);
    font-size: 16px;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state__icon {
    font-size: 64px;
    margin-bottom: var(--spacing-lg);
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.empty-state p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    background: #242840;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   CABINET LINK
   ======================================== */

.cabinet-link {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.btn-cabinet {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-cabinet:hover {
    background: #242840;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .site-header h1 {
        font-size: 32px;
    }
    
    .tabs-navigation {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .tab-btn {
        border: 2px solid var(--primary) !important;
        border-radius: var(--radius-md) !important;
        width: 100%;
    }
    
    .info-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .info-banner__button {
        width: 100%;
    }
    
    .view-toggle {
        justify-content: center;
    }
}
