/* ============================================================
   Nexbo – Admin panel stílusok
   ============================================================ */

:root {
    --adm-sidebar-w: 240px;
    --adm-sidebar-bg: #1a1d23;
    --adm-sidebar-text: #adb5bd;
    --adm-sidebar-hover: rgba(255,255,255,.07);
    --adm-sidebar-active: #0d6efd;
    --adm-topbar-h: 60px;
    --adm-bg: #f4f6f9;
    --adm-radius: 0.75rem;
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.admin-body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--adm-bg);
    color: #212529;
    scroll-behavior: smooth;
}

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.admin-sidebar {
    width: var(--adm-sidebar-w);
    background: var(--adm-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform .25s;
    box-shadow: 20px 0 60px rgba(15, 23, 42, .18);
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 90;
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
    line-height: 1.2;
    min-height: 56px;
    letter-spacing: 0.01em;
}

.sidebar-brand span {
    font-size: 1.15em;
    font-weight: 800;
    margin-left: 0.5em;
    letter-spacing: 0.01em;
    display: inline-block;
    vertical-align: middle;
}
}

.sidebar-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.35);
}

.sidebar-nav {
    flex: 1;
    list-style: none;
    margin: .5rem 0 0;
    padding: 0 .75rem;
    overflow-y: auto;
}

.sidebar-nav li { margin-bottom: 2px; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .9rem;
    border-radius: .5rem;
    color: var(--adm-sidebar-text);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .15s, color .15s;
}

.sidebar-link i { font-size: 1rem; flex-shrink: 0; }

.sidebar-link:hover {
    background: var(--adm-sidebar-hover);
    color: #fff;
}

.sidebar-link.active {
    background: var(--adm-sidebar-active);
    color: #fff;
}

.sidebar-footer {
    padding: .75rem;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* ── Fő tartalom ─────────────────────────────────────────────────────────── */
.admin-main {
    flex: 1;
    margin-left: var(--adm-sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: var(--adm-topbar-h);
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: .75rem;
}

.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.admin-content {
    padding: 1.75rem;
    flex: 1;
}

.admin-content .card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06) !important;
}

.admin-content .card-header {
    border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.admin-content .table-responsive {
    border-radius: 1rem;
}

.admin-content .form-control,
.admin-content .form-select {
    border-radius: .85rem;
    border-color: #dbe2ea;
    min-height: 2.75rem;
    box-shadow: none;
}

.admin-content .form-control:focus,
.admin-content .form-select:focus {
    border-color: rgba(13, 110, 253, .45);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.admin-content .form-control-sm,
.admin-content .form-select-sm {
    min-height: 2.2rem;
    border-radius: .75rem;
}

.admin-content .btn {
    border-radius: .8rem;
}

.adm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

.adm-reveal-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stat kártyák ────────────────────────────────────────────────────────── */
.stat-card {
    border-radius: var(--adm-radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    border-left: 4px solid;
}

.stat-primary { border-color: #0d6efd; }
.stat-success { border-color: #198754; }
.stat-warning { border-color: #ffc107; }
.stat-danger  { border-color: #dc3545; }
.stat-info    { border-color: #0dcaf0; }

.stat-icon {
    font-size: 2rem;
    opacity: .7;
    flex-shrink: 0;
}
.stat-primary .stat-icon { color: #0d6efd; }
.stat-success .stat-icon { color: #198754; }
.stat-warning .stat-icon { color: #ffc107; }
.stat-danger  .stat-icon { color: #dc3545; }
.stat-info    .stat-icon { color: #0dcaf0; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: .8rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: .2rem;
}

/* ── Gyors műveletek ─────────────────────────────────────────────────────── */
.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border-radius: var(--adm-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
    border: 1px solid #f1f3f5;
}
.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    color: inherit;
}

/* ── Admin tábla ─────────────────────────────────────────────────────────── */
.table th {
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
}

.table td,
.table th {
    vertical-align: middle;
}

/* ── Bejelentkezési oldal ────────────────────────────────────────────────── */
body.login-page { background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); }
.login-card     { animation: slideUp .35s ease both; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Nav tabs ────────────────────────────────────────────────────────────── */
.nav-tabs .nav-link { color: #6c757d; font-size: .875rem; }
.nav-tabs .nav-link.active { font-weight: 600; }

/* ── Előfizetési csomag kártyák ──────────────────────────────────────────── */
.package-card {
    --accent: #0d6efd;
    position: relative;
    border: 2px solid color-mix(in srgb, var(--accent) 28%, #e9ecef);
    border-radius: 1rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #fff) 0%, #fff 35%);
    padding: 1.25rem;
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.package-card.selected-plan {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent);
}

.package-badge {
    position: absolute;
    top: -11px;
    right: 12px;
    font-size: .72rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 999px;
    color: #fff;
}

.package-price {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    color: color-mix(in srgb, var(--accent) 70%, #212529);
}

.package-price small {
    font-size: .8rem;
    font-weight: 500;
    color: #6c757d;
}

.package-features {
    margin-bottom: 1rem;
    flex: 1;
}

.package-features li {
    margin-bottom: .45rem;
    font-size: .9rem;
}

.package-features i {
    color: color-mix(in srgb, var(--accent) 70%, #198754);
}

.btn-package {
    background: color-mix(in srgb, var(--accent) 85%, #0d6efd);
    border: none;
    color: #fff;
    font-weight: 600;
}

.btn-package:hover {
    color: #fff;
    opacity: .88;
    background: color-mix(in srgb, var(--accent) 85%, #0d6efd);
}

/* ── Naptár ─────────────────────────────────────────────────────────────────── */
.cal-gutter {
    width: 52px;
    min-width: 52px;
    flex-shrink: 0;
}

.cal-toolbar {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 14px;
    padding: .55rem .7rem;
}

.cal-title {
    letter-spacing: .01em;
}

.cal-col-head:hover { background: #f8f9fa; }
.cal-head-today     { background: #eff6ff; }
.cal-head-wknd      { color: #9ca3af; }

.cal-today-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    font-size: .9rem;
    font-weight: 700;
}

.cal-event {
    transition: filter .12s;
    pointer-events: auto;
}
.cal-event:hover { filter: brightness(.88); }

.cal-blocked {
    pointer-events: auto;
    background: repeating-linear-gradient(
        45deg,
        rgba(107,114,128,.09) 0,
        rgba(107,114,128,.09) 5px,
        transparent 5px,
        transparent 10px
    );
    border: 1px solid rgba(107,114,128,.2);
}

/* Hónap nézet */
.cal-month-cell:hover { background: #f0f6ff !important; }

.cal-month-evt {
    font-size: .68rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    display: block;
}
.cal-month-evt:hover { filter: brightness(.9); }

.cal-month-blocked {
    font-size: .68rem;
    padding: 1px 4px;
    background: #fee2e2;
    color: #dc3545;
    border-left: 3px solid #dc3545;
    border-radius: 3px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.cal-month-more {
    font-size: .65rem;
    color: #6c757d;
    padding: 0 4px;
    cursor: pointer;
}
.cal-month-more:hover { text-decoration: underline; }

#quickBookingModal .modal-content {
    border-radius: 1rem;
}

#quickBookingModal .modal-header,
#quickBookingModal .modal-footer {
    background: #f8fafc;
}

/* ── Reszponzív: Sidebar mobilon ─────────────────────────────────────────── */
@media (max-width: 991px) {
    .admin-sidebar-backdrop {
        display: block;
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-content { padding: 1rem; }
}
