/* ── Asztalfoglaló.hu – public CSS ───────────────────────────── */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

:root {
    --teal: #0f766e;
    --teal-dark: #0d6b64;
    --teal-light: #f0fdf9;
}

/* Teal gomb */
.btn-teal {
    background-color: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.btn-teal:hover,
.btn-teal:focus {
    background-color: var(--teal-dark);
    border-color: var(--teal-dark);
    color: #fff;
}
.btn-teal:active {
    background-color: #0a5c56;
    border-color: #0a5c56;
    color: #fff;
}
.btn-outline-teal {
    border-color: var(--teal);
    color: var(--teal);
}
.btn-outline-teal:hover {
    background-color: var(--teal);
    color: #fff;
}

/* Szöveg szín */
.text-teal { color: var(--teal) !important; }

/* Hero */
.af-hero {
    padding: 3.5rem 0;
}

/* Étterem kártya */
.restaurant-card {
    transition: box-shadow .18s, transform .18s;
    border-radius: .6rem !important;
}
.restaurant-card:hover {
    box-shadow: 0 6px 24px rgba(15,118,110,.13) !important;
    transform: translateY(-2px);
}

/* Ikon körök */
.af-icon-circle {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
}
.af-icon-circle-lg {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navbar link hover */
.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255,255,255,.95) !important;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #0f766e;
    color: #fff;
}
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #ccfbf1;
    color: #115e59;
}
.dropdown-menu .dropdown-item.active:hover,
.dropdown-menu .dropdown-item.active:focus {
    background-color: #99f6e4;
    color: #115e59;
}

/* Teal alert */
.alert-teal {
    background-color: var(--teal-light);
    border-color: #99f6e4;
    color: #0f4c45;
}

.af-flash-layer {
    overflow: hidden;
    margin: 0 0 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    text-align: left;
}
.af-flash-layer-title {
    background: var(--teal);
    color: #fff;
    font-weight: 800;
    padding: 10px 16px;
    line-height: 1.25;
}
.af-flash-layer-body {
    padding: 14px 16px 16px;
    color: #0f172a;
    line-height: 1.5;
}

/* Booking grid */
.bk-grid-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.bk-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
}
.bk-time-col  { width: 54px; min-width: 54px; }
.bk-head-cell,
.bk-day-col   { width: 92px; min-width: 92px; }
/* B variáció fejléc */
.bk-head-row { background: #0f766e; }
.bk-head-empty { background: #0a5c56 !important; border-right: 1px solid rgba(255,255,255,.1); }
.bk-head-cell {
    padding: 10px 4px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.08);
    position: relative;
    cursor: default;
}
.bk-head-cell:last-child { border-right: none; }
.bk-hd-dn {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
}
.bk-hd-dd {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,.88);
    line-height: 1.2;
}
.bk-hd-dm {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.4);
}
.bk-hd-today { background: rgba(255,255,255,.38); }
.bk-hd-today::after {
    content: '';
    position: absolute;
    bottom: 0; left: 18%; right: 18%;
    height: 3px;
    background: #fff;
    border-radius: 2px 2px 0 0;
}
.bk-hd-today .bk-hd-dd { color: #fff; }
.bk-hd-today .bk-hd-dn { color: rgba(255,255,255,.85); }
.bk-hd-past .bk-hd-dn,
.bk-hd-past .bk-hd-dd,
.bk-hd-past .bk-hd-dm { opacity: .35; }
.bk-time-col  { width: 64px; min-width: 64px; padding: 3px 4px; text-align: center; }
.bk-time-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 4px 2px;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 8px;
    background: #1e3a5f;
    color: #fff;
    white-space: nowrap;
}
.bk-day-col   { min-width: 78px; }
.bk-slot-cell { padding: 3px 2px; }
.bk-group-sep td { padding: 10px 4px 2px; border: none; }
.bk-group-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.bk-week-label  { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Slot gombok */
.slot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 4px 2px;
    font-size: .78rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
    white-space: nowrap;
}
.slot-free {
    background: #f0fdf9;
    border-color: #5eead4;
    color: var(--teal);
}
.slot-free:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(15,118,110,.25);
}
.slot-past {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: default;
    min-height: 44px;
}
.slot-full {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
    cursor: default;
    min-height: 44px;
    font-size: .78rem;
    font-weight: 600;
}
.bk-booked-td {
    vertical-align: top;
    border: none;
    padding: 3px 2px !important;
    height: 1px; /* rowspan cellában height:100% működéséhez */
}
.bk-booked-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
    min-height: 44px;
    padding: 6px 7px 5px;
    background: #eff6ff;
    border: 2px solid #1e40af;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
}
.bk-booked-name {
    font-size: .78rem;
    font-weight: 700;
    color: #1e40af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.bk-booked-phone {
    font-size: .72rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.bk-booked-icons {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}
.bk-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: .8rem;
    transition: background .12s, color .12s, border-color .12s;
    flex-shrink: 0;
}
.bk-icon-btn:hover:not(:disabled) {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}
.bk-icon-btn.bk-icon-cancel:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}
.bk-icon-btn:disabled {
    opacity: .4;
    cursor: default;
}
.bk-booked-dt {
    margin-top: auto;
    font-size: .68rem;
    color: #64748b;
    line-height: 1.4;
    overflow: hidden;
}
.bk-booked-dt span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Drag & Drop */
.bk-booked-card[draggable] {
    cursor: grab;
}
.bk-booked-card[draggable]:active {
    cursor: grabbing;
}
.bk-card-dragging {
    opacity: .45;
}
.bk-drop-hover .slot-btn {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(15,118,110,.35);
}
.bk-drop-msg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
}
.bk-drop-msg-err {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}
.bk-drop-target {
    position: relative;
}

/* Rowspan folytatás slot — fixed overlay drag alatt */
.bk-slot-overlay {
    position: fixed;
    z-index: 50;
    pointer-events: all;
    background: rgba(240, 253, 249, 0.6);
    border: 2px dashed #5eead4;
    border-radius: 8px;
    box-sizing: border-box;
    transition: background .1s, border-color .1s;
}
.bk-slot-overlay.bk-drop-hover {
    background: rgba(15, 118, 110, .25);
    border-color: #0f766e;
}

/* Auth card egyenletes középre igazítás */
/* Saját foglalásaim sor – alap (desktop) */
.bk-myres-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.bk-myres-info  { flex: 1; }
.bk-myres-line1,
.bk-myres-line2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.bk-myres-cancel { flex-shrink: 0; }

@media (max-width: 576px) {
    .card.shadow-sm[style*="max-width:420px"],
    .card.shadow-sm[style*="max-width:400px"] {
        margin: 1.5rem auto !important;
    }
    .bk-head-cell,
    .bk-day-col  { width: 138px; min-width: 138px; }
    .bk-time-col { width: 96px;  min-width: 96px;  }
    .bk-hd-dn {
        font-size: 14px;
        font-weight: 700;
    }
    /* Saját foglalásaim – mobil: 2 soros, lemondás jobbra fent */
    .bk-myres-row    { align-items: flex-start; }
    .bk-myres-cancel { align-self: flex-start; }
}
