/* styles.css */
/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        /* Оранжевый градиент поверх фото */
        linear-gradient(135deg, rgba(255, 126, 0, 0.85) 0%, rgba(255, 85, 0, 0.85) 100%),
        /* Фоновое фото */
        url('hero-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Альтернатива если фото не загружено */
.hero-section.no-photo::before {
    background: 
        linear-gradient(135deg, #ff7e00 0%, #ff5500 100%),
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 15L65 40H35L50 15Z' fill='rgba(255,255,255,0.1)'/%3E%3Cpath d='M25 40L40 65H10L25 40Z' fill='rgba(255,255,255,0.1)'/%3E%3Cpath d='M75 40L90 65H60L75 40Z' fill='rgba(255,255,255,0.1)'/%3E%3Cpath d='M50 65L65 90H35L50 65Z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
}

/* ===== NAVIGATION ===== */
.navbar-dark.bg-dark {
    background: #343a40 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.2rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: linear-gradient(135deg, #ff7e00 0%, #ff5500 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #e67200 0%, #e04a00 100%);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 126, 0, 0.3);
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff7e00 0%, #ff5500 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67200 0%, #e04a00 100%);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-outline-primary {
    color: #ff7e00;
    border-color: #ff7e00;
}

.btn-outline-primary:hover {
    background-color: #ff7e00;
    border-color: #ff7e00;
}


/* styles.css - добавляем в раздел BUTTONS */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-group .btn {
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Стили для модального окна */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border-bottom: 1px solid #ffd8b8;
    border-radius: 0.5rem 0.5rem 0 0;
}

.modal-title {
    color: #ff7e00;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Стили для полей формы в модальном окне */
.modal-body .form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.modal-body .form-text {
    font-size: 0.8rem;
    color: #6c757d;
}






/* ===== CARDS ===== */
.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.card-header {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border-bottom: 1px solid #ffd8b8;
    font-weight: 600;
    color: #ff7e00;
    border-radius: 0.5rem 0.5rem 0 0 !important;
}

.lesson-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    border: 1px solid #ffd8b8;
}

.lesson-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 126, 0, 0.2);
}

.lesson-card.disabled {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.stat-card { 
    transition: transform 0.3s ease; 
    height: 100%;
    border: 1px solid #ffd8b8;
}

.stat-card:hover { 
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 126, 0, 0.2);
}

/* ===== TABLES ===== */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #fff4e6;
    color: #ff7e00;
}

.compact-table {
    font-size: 0.85rem;
}

.compact-table th {
    padding: 0.5rem;
    background-color: #fff4e6;
}

.compact-table td {
    padding: 0.5rem;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 126, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 126, 0, 0.1);
}

/* ===== FORMS ===== */
.form-control:focus {
    border-color: #ff7e00;
    box-shadow: 0 0 0 0.2rem rgba(255, 126, 0, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

.input-group-text {
    background-color: #fff4e6;
    border-color: #ffd8b8;
    color: #ff7e00;
}

.phone-valid { 
    border-color: #28a745 !important; 
}

.phone-invalid { 
    border-color: #dc3545 !important; 
}

.phone-validation {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

.alert-dismissible .btn-close {
    padding: 0.75rem;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    color: #000 !important;
}

/* ===== LAYOUT & UTILITIES ===== */
.check-button-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.admin-stats {
    background: linear-gradient(135deg, #ff7e00 0%, #ff5500 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.admin-stats h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.admin-stats p {
    margin: 0;
    opacity: 0.9;
}

.text-orange {
    color: #ff7e00 !important;
}

.bg-orange-light {
    background-color: #fff4e6 !important;
}

.border-orange {
    border-color: #ff7e00 !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* ===== FOOTER ===== */
footer {
    background-color: #343a40;
    color: white;
    margin-top: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .btn-primary-custom {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .compact-table {
        font-size: 0.8rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}

/* Mobile first adjustments */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .hero-section {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Loading spinner */
.spinner-border {
    color: #ff7e00;
}

/* Custom utilities */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.box-shadow-orange {
    box-shadow: 0 4px 8px rgba(255, 126, 0, 0.2);
}

.gradient-bg {
    background: linear-gradient(135deg, #ff7e00 0%, #ff5500 100%);
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid #ff7e00;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #ff7e00;
    color: white;
}

::-moz-selection {
    background-color: #ff7e00;
    color: white;
}
.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link:hover {
    border-color: #ff7e00;
    color: #ff7e00;
}

.nav-tabs .nav-link.active {
    color: #ff7e00;
    background-color: transparent;
    border-color: #ff7e00;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    padding: 1.5rem;
}

/* Стили для карточек возрастных групп */
.lesson-card.disabled {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.lesson-card .card-body {
    padding: 1rem;
}

/* Стили для полей возрастных групп */
.age-group-entry .input-group {
    margin-bottom: 0.5rem;
}

.age-group-entry .form-control {
    flex: 1;
}

.age-group-entry .btn {
    flex: 0 0 auto;
}

/* Стили для модального окна успеха */
#successModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

#successModal .modal-header {
    background: rgba(255, 255, 255, 0.1);
}

#successModal .modal-body {
    padding: 2rem;
}

#successModal .fa-check-circle {
    color: rgba(255, 255, 255, 0.9);
}

#successModal .btn-light {
    border-radius: 25px;
    padding: 0.5rem 2rem;
    font-weight: 500;
}

/* Анимация появления модального окна */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Стили для кнопок публикации */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-success .fa-check {
    color: white;
}

.btn-secondary .fa-check {
    color: #ffffff;
}

/* Анимация для кнопок */
.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

/* Стили для бейджей статуса */
.badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}