:root {
    --primary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
.header {
    background: var(--dark-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header h1 {
    font-size: 24px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: var(--danger-color);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.schedule-table th {
    background: var(--dark-color);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.schedule-table tr:hover {
    background: #f8f9fa;
}

/* Статусы */
.status-planned {
    border-left: 4px solid var(--primary-color);
}

.status-in_progress {
    border-left: 4px solid var(--warning-color);
}

.status-completed {
    border-left: 4px solid var(--success-color);
}

.status-cancelled {
    border-left: 4px solid var(--danger-color);
}

.badge {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.badge-planned {
    background: #dbeafe;
    color: #1e40af;
}

.badge-in_progress {
    background: #fef3c7;
    color: #92400e;
}

.badge-completed {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* Карточки съёмок */
.shootings-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.shooting-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.shooting-date {
    font-weight: bold;
    color: var(--primary-color);
    min-width: 80px;
}

.shooting-time {
    font-weight: bold;
    min-width: 100px;
}

.shooting-info {
    flex: 1;
}

.shooting-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Формы */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Уведомления */
.notifications {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.notification {
    padding: 10px;
    border-bottom: 1px solid #ffe69c;
}

.notification:last-child {
    border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .shooting-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .shooting-date,
    .shooting-time {
        min-width: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 15px;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}