/* Стили для страницы приёмной (список клиентов) */

.reception-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 3;
    color: #1a1a1a;
    max-height: 85vh;
    overflow-y: auto;
}

.reception-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
    color: #1a1a1a;
}

.reception-subtitle {
    font-size: 15px;
    text-align: center;
    margin-bottom: 32px;
    color: #1a1a1a;
    opacity: 0.8;
}

.reception-search {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#clientSearch {
    width: min(420px, 100%);
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 15px;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.client-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.client-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.client-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.client-info {
    font-size: 14px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.add-client-btn {
    width: 100%;
    padding: 16px;
    background: #C62828;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-client-btn:hover {
    background: #B71C1C;
    transform: translateY(-2px);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
}

.auth-modal .modal-content {
    max-width: 420px;
}

.auth-fields {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.auth-fields input,
.auth-fields select,
.auth-fields button {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.auth-fields input::placeholder {
    color: #999;
}

.auth-fields button {
    background: #1a237e;
    color: white;
    border: none;
    cursor: pointer;
}

.modal-hint {
    font-size: 14px;
    color: #666;
}

.modal-note {
    margin-top: 12px;
    font-size: 13px;
    color: #0d47a1;
}

.modal-content h2 {
    margin-bottom: 24px;
    color: #1a1a1a;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-content textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.modal-content input,
.modal-content select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.modal-content button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-content button[type="submit"] {
    background: #C62828;
    color: white;
}

.modal-content button[type="submit"]:hover {
    background: #B71C1C;
}

.modal-content button[type="button"] {
    background: #ddd;
    color: #666;
}

.modal-content button[type="button"]:hover {
    background: #ccc;
}

@media (max-width: 768px) {
    .reception-container {
        width: 95%;
        padding: 24px;
    }
    
    .reception-title {
        font-size: 24px;
    }
}
