/* frontend/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

/* Новые стили для навигационных кнопок */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #5a67d8;
}

.nav-btn:active {
    transform: translateY(0);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-text {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

input.error {
    border-color: #dc3545;
}

/* Стили для кнопок после успешного заказа */
.order-success-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.track-order-btn {
    background: #28a745;
    color: white;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.track-order-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.saved-orders-link {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.saved-orders-link:hover {
    background: rgba(102, 126, 234, 0.1);
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nav-btn {
        width: 200px;
        text-align: center;
    }

    .container {
        padding: 1.5rem;
    }
}