@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');

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

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 20%, #ff8c00 40%, #ffd700 60%, #ff8c00 80%, transparent 100%);
    animation: neonMove 3s linear infinite;
    z-index: 1000;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 20%, #ff8c00 40%, #ffd700 60%, #ff8c00 80%, transparent 100%);
    animation: neonMoveReverse 3s linear infinite;
    z-index: 1000;
}

@keyframes neonMove {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes neonMoveReverse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Стили авторизации */
.login-container {
    max-width: 450px;
    margin: 100px auto;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,215,0,0.3);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
    font-family: 'Georgia', serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}

.login-container input {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Georgia', serif;
    font-size: 14px;
    transition: all 0.3s;
}

.login-container input:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

.login-container button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    transition: all 0.3s;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

/* Шапка */
.header {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,215,0,0.3);
}

.header h1 {
    color: #ffd700;
    font-family: 'Georgia', serif;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(255,215,0,0.3);
}

.user-info {
    display: flex;
    gap: 20px;
    align-items: center;
    color: white;
    font-family: 'Georgia', serif;
}

.logout-btn, .back-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Georgia', serif;
    transition: all 0.3s;
}

.logout-btn:hover, .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.4);
}

.back-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* Меню */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.menu-card {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 15px;
    transition: all 0.3s;
    border: 1px solid rgba(255,215,0,0.3);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: #ffd700;
}

.menu-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.menu-card h3 {
    margin-bottom: 10px;
    color: #ffd700;
    font-family: 'Georgia', serif;
}

.menu-card p {
    font-size: 14px;
    color: #ccc;
}

/* Карточки записей */
.appointment-card {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(255,215,0,0.3);
    transition: all 0.3s;
}

.appointment-card:hover {
    border-color: #ffd700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.appointment-info {
    flex: 2;
    color: white;
}

.appointment-info h3 {
    color: #ffd700;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
}

.appointment-info p {
    margin: 8px 0;
    line-height: 1.4;
}

.payment-form {
    flex: 1;
    padding-left: 20px;
    border-left: 2px solid rgba(255,215,0,0.3);
}

.payment-form h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ffd700;
    font-family: 'Georgia', serif;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,215,0,0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Georgia', serif;
    font-size: 14px;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 15px rgba(255,215,0,0.3);
}

button, .edit-btn, .cancel-btn, .restore-btn, .review-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    transition: all 0.3s;
}

button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.4);
}

.edit-btn {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #333;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,193,7,0.4);
}

.cancel-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.restore-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.review-btn {
    background: linear-gradient(135deg, #6f42c1, #6610f2);
    color: white;
}

/* Сообщения */
.success {
    background: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #6fda8a;
    font-family: 'Georgia', serif;
}

.error {
    background: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #ff6b6b;
    font-family: 'Georgia', serif;
}

/* Поиск клиента */
.search-client, .add-client, .appointment-form {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,215,0,0.3);
}

.search-client h3, .add-client h3, .appointment-form h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

.client-list {
    margin-top: 20px;
}

.client-item {
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    border: 1px solid rgba(255,215,0,0.2);
}

.client-item:hover {
    background: rgba(255,215,0,0.2);
    transform: translateX(5px);
}

.bonus {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 10px;
    color: #333;
    font-weight: bold;
}

/* Модальное окно для причины отмены */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    border: 2px solid #ffd700;
}

.modal-content h3 {
    color: #ffd700;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .appointment-card {
        flex-direction: column;
    }
    
    .payment-form {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(255,215,0,0.3);
        padding-top: 20px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
}