* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #121212;
    color: #eaeaea;
    margin: 0;
    padding: 20px;
}

/* Заголовки */
h1, h2, h3 {
    color: #ffffff;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

/* Карточка клиента */
.card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border: 1px solid #2c2c2c;

    /* АНИМАЦИЯ */
    opacity: 0;
    transform: translateY(15px);
    animation: cardFade 0.5s ease forwards;
}
@keyframes cardFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cards .card:nth-child(1) { animation-delay: 0.05s; }
.cards .card:nth-child(2) { animation-delay: 0.1s; }
.cards .card:nth-child(3) { animation-delay: 0.15s; }
.cards .card:nth-child(4) { animation-delay: 0.2s; }
.cards .card:nth-child(5) { animation-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
    .card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}




/* Кнопки */
button, .btn {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #6366f1;
}

/* Удаление */
.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #ef4444;
}

/* Инпуты */
input, select {
    background: #2a2a2a;
    color: white;
    border: 1px solid #3a3a3a;
    padding: 8px;
    border-radius: 6px;
    margin: 4px 0;
    width: 200px;
}

/* Линия */
hr {
    border: none;
    border-top: 1px solid #333;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 10px;
}
.drink-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.drink-row form {
    flex: 1;
}

.drink-btn {
    width: 100%;
    padding: 18px;
    font-size: 16px;
    border-radius: 12px;
}

.drink-alcohol {
    background: #7c3aed;
}

.drink-alcohol:hover {
    background: #8b5cf6;
}

.drink-non {
    background: #059669;
}

.drink-non:hover {
    background: #10b981;
}

/* На маленьких экранах всё равно в столбик */
@media (max-width: 400px) {
    .drink-row {
        flex-direction: column;
    }
}
.qr-big-btn {
    width: 100%;
    padding: 18px;
    margin-top: 10px;
    border-radius: 14px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;

    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    transition: 0.2s;
}

.qr-big-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

.qr-big-btn:active {
    transform: scale(0.98);
}

/* Камера блок */
#qr-reader {
    width: 100% !important;
    max-width: 420px;
    margin: 15px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #2c2c2c;
}
