/* styles.css - Skytex Group UI Kit (Original Gold Theme + Email-Style Footer) */

/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background-color: #fef9e7;
    color: #333;
    min-height: 100vh;
}

/* ===== МЕНЮ ===== */
.menu-link.active {
    color: #2563eb;
    font-weight: 600;
    border-bottom: 2px solid #2563eb;
}
.menu-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #694f00 0%, #FFC000 100%);
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(105, 79, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link img {
    height: 35px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.menu-items {
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.menu-separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    font-weight: bold;
}

/* Блок пользователя */
.user-block {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-block span {
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-block a {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.user-block a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== ГАМБУРГЕР МЕНЮ ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ===== ФУТЕР (Стиль как в Email-рассылке) ===== */
.footer {
    margin-top: 40px;
    padding: 14px 20px;
    background: #2c3e50; /* Тёмный, строгий, как в email */
    color: #ecf0f1;
    font-size: 13px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.footer p {
    margin: 4px 0;
}

.footer a {
    color: #FFC000; /* Золотая ссылка, как в email */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.footer a:hover {
    color: #fff;
    background: rgba(255, 192, 0, 0.2);
    text-decoration: underline;
}

/* Бейджи статусов (на будущее, как в email) */
.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 11px;
    margin: 0 3px;
    display: inline-block;
}
.status-confirmed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-draft { background: #fff3cd; color: #856404; }

/* ===== КОНТЕНТ-ОБЕРТКА ===== */
.content-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, #fff9e6);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(105, 79, 0, 0.1);
    border: 1px solid rgba(255, 192, 0, 0.2);
}

/* 🔹 === КНОПКИ ГЛАВНОГО МЕНЮ === */
.menu-button {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    text-align: center;
}

.menu-button[value="directory"] { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); }
.menu-button[value="booking"] { background: linear-gradient(135deg, #28a745 0%, #218838 100%); }
.menu-button[value="orders"] { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.menu-button[value="finances"] { background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%); }

.menu-button[value="directory"]:hover { background: linear-gradient(135deg, #20c5d9 0%, #17a2b8 100%); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4); }
.menu-button[value="booking"]:hover { background: linear-gradient(135deg, #34d058 0%, #28a745 100%); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4); }
.menu-button[value="orders"]:hover { background: linear-gradient(135deg, #268eff 0%, #007bff 100%); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4); }
.menu-button[value="finances"]:hover { background: linear-gradient(135deg, #8556e6 0%, #6f42c1 100%); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4); }

.menu-button:active { transform: translateY(-1px); }

/* ===== СПИСОК МЕНЮ ===== */
.content-wrapper ul {
    list-style: none;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 2px solid rgba(255, 192, 0, 0.3);
    border-bottom: 2px solid rgba(255, 192, 0, 0.3);
}

.content-wrapper li { margin: 12px 0; }

.content-wrapper li a {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #694f00;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 192, 0, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 600;
}

.content-wrapper li a:hover {
    background: linear-gradient(135deg, #FFC000 0%, #ffd740 100%);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(255, 192, 0, 0.2);
}

/* ===== ЗАГОЛОВКИ ===== */
.content-wrapper h2 {
    color: #694f00;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 192, 0, 0.3);
    font-size: 24px;
}

/* ===== СООБЩЕНИЯ ===== */
.messages {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-success { background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); color: #155724; border-left-color: #28a745; }
.alert-error, .alert-danger { background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); color: #721c24; border-left-color: #dc3545; }
.alert-info { background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%); color: #0c5460; border-left-color: #17a2b8; }
.alert-warning { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); color: #856404; border-left-color: #ffc107; }

/* ===== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ===== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 600;
}

.lang-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-link:hover { color: #fff; background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.lang-link.active { color: #694f00; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); cursor: default; pointer-events: none; }
.lang-separator { color: rgba(255, 255, 255, 0.4); font-size: 12px; margin: 0 2px; }

.logout-link {
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.4);
    font-size: 13px;
    font-weight: 600;
}
.logout-link:hover { background: rgba(220, 53, 69, 0.4); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; max-width: 400px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); border-left: 4px solid #667eea; animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards; opacity: 1; transition: opacity 0.3s ease; }
.toast-success { border-left-color: #28a745; }
.toast-error { border-left-color: #dc3545; }
.toast-warning { border-left-color: #ffc107; }
.toast-info { border-left-color: #17a2b8; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { flex: 1; font-size: 14px; color: #333; line-height: 1.4; }
.toast-close { background: none; border: none; font-size: 18px; color: #999; cursor: pointer; padding: 0 4px; line-height: 1; }
.toast-close:hover { color: #333; }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(20px); } }

/* ===== LOADING OVERLAY ===== */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 99999; backdrop-filter: blur(3px); }
.loading-overlay.active { display: flex; }
.loading-content { background: white; padding: 30px 40px; border-radius: 12px; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.3); max-width: 400px; }
.loading-spinner { width: 50px; height: 50px; border: 4px solid #f3f3f3; border-top: 4px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-text { font-size: 16px; color: #333; font-weight: 500; margin-bottom: 8px; }
.loading-subtext { font-size: 13px; color: #666; }
.btn-submitting { opacity: 0.7; pointer-events: none; cursor: wait; }

/* ===== ОСНОВНАЯ СТРАНИЦА ===== */
main { max-width: 1200px; margin: 40px auto; padding: 30px; background: white; border-radius: 20px; box-shadow: 0 8px 30px rgba(105, 79, 0, 0.08); border: 1px solid rgba(255, 192, 0, 0.1); }
main h2 { color: #694f00; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255, 192, 0, 0.3); }
main p { color: #666; line-height: 1.6; font-size: 16px; }

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) { .content-wrapper { margin: 20px; padding: 25px; } }
@media (max-width: 768px) {
    .menu-wrapper { flex-direction: column; padding: 15px; gap: 15px; }
    .menu-left { width: 100%; justify-content: space-between; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .menu-items { display: none; width: 100%; flex-direction: column; background: rgba(105, 79, 0, 0.95); border-radius: 12px; padding: 15px; margin-top: 15px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); }
    .menu-items.mobile-open { display: flex; }
    .menu-link { width: 100%; margin: 5px 0; text-align: center; border-radius: 10px; }
    .menu-separator { display: none; }
    .user-block { width: 100%; justify-content: center; flex-wrap: wrap; gap: 15px; }
    .content-wrapper { margin: 15px; padding: 20px; }
    .menu-button { width: 100%; margin: 8px 0; }
    .toast-container { top: auto; bottom: 20px; right: 10px; left: 10px; max-width: none; }
    .user-block { flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
    .lang-switcher { margin-right: 0; margin-bottom: 5px; width: 100%; justify-content: center; background: rgba(255, 255, 255, 0.05); }
    .logout-link { width: 100%; text-align: center; background: rgba(220, 53, 69, 0.3); }
}
@media (max-width: 480px) {
    .menu-wrapper { padding: 12px; }
    .logo-link img { height: 30px; }
    .content-wrapper { padding: 15px; margin: 10px; border-radius: 15px; }
    .menu-button { padding: 14px 20px; font-size: 15px; }
    .footer { padding: 15px; font-size: 12px; margin: 20px 10px 0 10px; border-radius: 10px 10px 0 0; }
}