/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .92rem;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.2;
}
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(30,107,255,.3); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-light); border-color: #d0d6e2; }
.btn-light { background: var(--color-white); color: var(--color-primary); }
.btn-light:hover { background: var(--color-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-danger { background: var(--color-danger); color: var(--color-white); }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-size: .92rem;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(30,107,255,.12);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: .9rem;
}
.checkbox input { width: auto; }

/* ============================================================
   КАРТОЧКИ / БЕЙДЖИ / СТАТУСЫ
   ============================================================ */
.hotel-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--color-white);
    color: var(--color-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.hotel-rating-badge i { color: #f5a623; }

.hotel-stars { color: #f5a623; font-size: .75rem; letter-spacing: 1px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.status-pending       { background: #fff4e5; color: #b45309; }
.status-confirmed     { background: #e8f5ff; color: #0353a4; }
.status-checked_in    { background: #e6f7ee; color: #067647; }
.status-checked_out   { background: #f0f0f5; color: #4b5563; }
.status-cancelled     { background: #fee2e2; color: #b91c1c; }
.status-no_show       { background: #fef3c7; color: #92400e; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-muted);
}
.empty-state i { font-size: 3rem; color: #cbd2df; margin-bottom: 16px; }
.empty-state h3, .empty-state h2 { color: var(--color-dark); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* ============================================================
   МОДАЛКА
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,18,24,.55);
    backdrop-filter: blur(3px);
    animation: fadeIn .2s ease;
}
.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-content h2 { margin-bottom: 20px; }
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--color-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-muted);
    transition: background var(--transition);
}
.modal-close:hover { background: #e4e8f0; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--color-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs i { font-size: .65rem; }
.breadcrumbs span { color: var(--color-text); font-weight: 500; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .modal-content { padding: 24px; }
}