@import url('https://api.fontshare.com/v2/css?f[]=satoshi@900,700,500,300,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;900&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.06);
    --soft-border: #e2e8f0;
    --accent-primary: #4f46e5;
    --accent-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --error-color: #dc2626;
    --success-color: #059669;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.07);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, var(--bg-color) 42%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 1.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.logo-title h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-title span {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ============================================================
   HAMBURGER TOGGLE (mobile only)
   ============================================================ */
.admin-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 0;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.admin-menu-toggle:hover {
    background: #f1f5f9;
    border-color: var(--accent-primary);
}

.admin-menu-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* ============================================================
   ADMIN NAVIGATION MENU
   ============================================================ */
.admin-menu {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.admin-menu a {
    background: #ffffff;
    border: 1px solid var(--card-border);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.admin-menu a.active {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.admin-menu a:hover:not(.active) {
    background: #f8fafc;
    color: var(--text-primary);
}

/* Overlay for mobile drawer */
.admin-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-menu-overlay.open {
    opacity: 1;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumbs > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    font-family: 'Outfit', sans-serif;
    padding: 0.68rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--input-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #f8fafc;
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--error-color);
}

.btn-danger:hover {
    background: var(--error-color);
    color: white;
    border-color: transparent;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: fadeIn 0.4s ease;
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: var(--success-color);
}

.alert-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--error-color);
}

.flash-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.flash-message.success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.flash-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ============================================================
   SETTINGS LAYOUT (sidebar tabs + content)
   ============================================================ */
.settings-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
}

.settings-content {
    min-width: 0;
    width: 100%;
}

/* ============================================================
   TABS NAV (vertical sidebar)
   ============================================================ */
.tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 0.65rem;
    box-shadow: var(--shadow-soft);
}

.tab-link {
    background: transparent;
    border: none;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-link.active {
    color: var(--accent-primary);
    background: rgba(79, 70, 229, 0.08);
}

.tab-link:hover:not(.active) {
    color: var(--text-primary);
    background: #f8fafc;
}

.tab-link::before {
    content: attr(data-step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text-muted);
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.tab-link.active::before {
    background: var(--accent-primary);
    color: white;
}

/* ============================================================
   TAB CONTENT PANELS
   ============================================================ */
.tab-content {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.4s ease;
    width: 100%;
    min-height: 520px;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   FORMS
   ============================================================ */
.section-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: var(--text-primary);
    border: 1px solid var(--soft-border);
    background: #f8fafc;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.25rem;
    row-gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="time"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.82rem 0.95rem;
    background: #ffffff;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px dashed var(--input-border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    background: #f1f5f9;
    color: var(--text-primary);
    border: 1px solid var(--input-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.form-group span,
.form-group p {
    line-height: 1.5;
}

.color-picker-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--input-border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
}

.color-picker-group input[type="color"] {
    border: none;
    background: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.field-note {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.tab-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   IMAGE / UPLOAD PREVIEWS
   ============================================================ */
.image-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--soft-border);
    padding: 0.85rem;
    border-radius: var(--radius-md);
}

.image-preview img {
    width: 128px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    background: #f1f5f9;
}

.image-preview span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-preview-card {
    display: none;
    grid-template-columns: 128px 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.85rem;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.upload-preview-card.is-visible {
    display: grid;
}

.upload-preview-card img {
    width: 128px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    background: #f1f5f9;
}

.upload-preview-card strong {
    display: block;
    margin-bottom: 0.2rem;
}

.upload-helper {
    margin-top: 0.65rem;
    padding: 0.85rem;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

/* ============================================================
   SECTIONS LIST (appearance/sections)
   ============================================================ */
.sections-list {
    margin-bottom: 2.5rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
}

.section-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section-item-row:last-child {
    border-bottom: none;
}

.section-item-row .info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.section-item-row .info img {
    width: 58px;
    height: 44px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.section-item-row .info .text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-item-row .info .text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.section-item-row .actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.subform-container {
    background: #f8fafc;
    border: 1px dashed var(--input-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* ============================================================
   CHECK ROW (checkbox options)
   ============================================================ */
.check-row {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
    margin: 0.45rem 0 !important;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-secondary) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 0.92rem !important;
    cursor: pointer;
}

.check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

/* ============================================================
   PREVIEW CARDS (theme/layout selector)
   ============================================================ */
.preview-options {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.preview-card {
    flex: 1;
    min-width: 140px;
    position: relative;
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.preview-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    appearance: none;
    clip-path: inset(50%);
}

.preview-card__body {
    min-height: 96px;
    height: 100%;
    border: 2px solid var(--soft-border);
    border-radius: 14px;
    background: #ffffff;
    padding: 0.85rem;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-card input:checked + .preview-card__body {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.preview-card__title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 0.3rem;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-card__hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   MEDIA / COLOR PICKERS
   ============================================================ */
.media-options {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.custom-colors-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border: 1px dashed var(--input-border);
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-md);
}

/* ============================================================
   THEME SWATCHES + MINI LAYOUT PREVIEW
   ============================================================ */
.theme-swatch {
    height: 34px;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    background: var(--swatch);
}

.layout-mini {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    min-height: 24px;
}

.layout-mini--standard {
    grid-template-columns: 0.9fr 1.3fr;
    align-items: center;
}

.layout-mini--centered {
    justify-items: center;
    grid-template-rows: auto auto;
}

.layout-mini__logo,
.layout-mini__nav {
    height: 10px;
    border-radius: 999px;
    background: var(--accent-primary);
    opacity: 0.85;
    display: block;
}

.layout-mini__nav {
    background: #cbd5e1;
    width: 100%;
}

.layout-mini-logo { width: 42%; }
.layout-mini-nav { width: 78%; }

/* ============================================================
   TOGGLES / CHECKBOXES
   ============================================================ */
.toggle-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent-primary);
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-label-text {
    font-weight: 600;
    color: var(--text-primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: none;
    font-weight: normal;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
}

.checkbox-label.mb-2 { margin-bottom: 0.5rem; }
.checkbox-label.mb-6 { margin-bottom: 1.5rem; }

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--soft-border);
}

.table-responsive table {
    border: none;
    margin-bottom: 0;
}

.rooms-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.rooms-table th {
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.65rem 0.75rem;
    border-bottom: 2px solid var(--input-border);
    white-space: nowrap;
}

.rooms-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--soft-border);
}

.btn-remove-room {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid transparent;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-remove-room:hover {
    background: #fecaca;
}

.col-condygnacja { width: 140px; }
.col-pow { width: 110px; }
.col-actions { width: 70px; }

.room-select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ============================================================
   DASHBOARD CARD
   ============================================================ */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.4s ease;
    width: 100%;
}

.dashboard-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.dashboard-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 100%;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* ============================================================
   PAGE CONTENT (dashboard main card)
   ============================================================ */
.page-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-soft);
    animation: fadeIn 0.4s ease;
    width: 100%;
}

.page-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.status-badge.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.status-badge-small {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   STATS CONTAINER
   ============================================================ */
.stats-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 2rem 0;
}

.stat-card {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--input-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   SYNC LIST (dashboard investments)
   ============================================================ */
.sync-list-container {
    text-align: left;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.sync-list-header {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    background: #f8fafc;
    border-bottom: 1px solid var(--card-border);
    font-size: 1rem;
    font-weight: 600;
}

.sync-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sync-list-item {
    border-bottom: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
}

.sync-list-item:last-child {
    border-bottom: none;
}

.sync-item-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sync-item-title {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 600;
}

.sync-item-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: #f1f5f9;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
}

.sync-table-container {
    padding: 0 1.5rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sync-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 480px;
}

.sync-table thead tr {
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-secondary);
    text-align: left;
}

.sync-table th {
    padding: 0.5rem 0.5rem;
    white-space: nowrap;
}

.sync-table td {
    padding: 0.5rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

/* ============================================================
   INFO PANEL
   ============================================================ */
.info-panel {
    background: #f8fafc;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.info-panel-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.info-panel-content p:last-child {
    margin-bottom: 0;
}

.info-panel-action {
    flex-shrink: 0;
}

/* ============================================================
   UNITS GRID
   ============================================================ */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.unit-card {
    background: #f8fafc;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.unit-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.unit-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.unit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.has-meta-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   UNIT EDIT FORM
   ============================================================ */
.unit-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.unit-edit-form {
    margin-top: 1rem;
}

.edit-section-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--soft-border);
}

/* PDF upload */
.pdf-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.pdf-upload-box {
    flex: 1;
    min-width: 220px;
    background: #f8fafc;
    border: 1px dashed var(--input-border);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.pdf-upload-box:hover {
    border-color: var(--accent-primary);
    background: #f1f5f9;
}

.pdf-upload-box label {
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.current-file-badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent-primary);
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.current-file-badge .btn-link {
    font-weight: 600;
    text-decoration: underline;
    color: var(--accent-primary);
}

/* Images grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-card {
    border: 1px solid var(--soft-border);
    padding: 0.6rem;
    border-radius: 8px;
    text-align: center;
    background: #ffffff;
}

.image-card img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.image-card label {
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: center;
    color: var(--text-secondary);
}

/* Rooms panel */
.rooms-panel {
    grid-column: span 2;
    border: 1px solid var(--card-border);
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
}

.rooms-panel-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.import-json-container {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--input-border);
}

.import-json-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.import-json-label {
    text-transform: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    display: block;
}

.json-textarea {
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

/* ============================================================
   ANALYTICS
   ============================================================ */
.api-status-success {
    font-size: 1rem;
}

.api-status-error {
    color: var(--error-color);
    background: rgba(220, 38, 38, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

/* ============================================================
   MAINTENANCE PANEL
   ============================================================ */
.maintenance-panel {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--input-border);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
body.login-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 38%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 100px;
    position: relative;
}

body.login-page .admin-cms-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0 !important;
    background: transparent;
}

.bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.bg-glow-1 { top: 20%; left: 25%; }
.bg-glow-2 { bottom: 20%; right: 25%; }

.login-container {
    width: 100%;
    max-width: 440px;
    z-index: 10;
    position: relative;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    animation: fadeIn 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.error-message {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.16);
    color: var(--error-color);
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.4s ease;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.24);
}

.btn-submit:active {
    transform: translateY(0);
}

.demo-badge {
    margin-top: 2rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.demo-badge code {
    color: var(--accent-primary);
    font-family: monospace;
    background: rgba(79, 70, 229, 0.08);
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
}

/* ============================================================
   MISC HELPERS
   ============================================================ */
.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.btn-close-alert {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.preview-favicon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated;
}

.preview-logo {
    max-height: 60px;
    object-fit: contain;
}

.preview-logo-placeholder {
    width: 50px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-card-loader-body {
    min-height: 110px;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.code-font {
    font-family: monospace;
    font-size: 0.9rem;
}

.text-accent {
    color: var(--accent-primary);
}

.empty-state-panel {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.col-span-full {
    grid-column: 1 / -1;
}

.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.anim-bar-bg {
    display: block;
    width: 80%;
    margin: 0 auto 0.5rem;
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.anim-bar-slide {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 99px;
    animation: barSlide 1.2s ease-in-out infinite;
}

.anim-logo-pulse {
    font-size: 1.8rem;
    color: var(--accent-primary);
    animation: logoPulse 1.5s ease-in-out infinite;
}

.anim-building-rise {
    animation: buildingRise 1.4s ease-in-out infinite;
}

.anim-dot-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.anim-dot-pulse-1,
.anim-dot-pulse-2,
.anim-dot-pulse-3 {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: dotPulse 1.2s ease-in-out infinite;
}

.anim-dot-pulse-2 { animation-delay: 0.2s; }
.anim-dot-pulse-3 { animation-delay: 0.4s; }

.anim-spin-loader {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: var(--accent-primary);
    animation: spin 0.9s linear infinite;
    display: block;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center-mb-3 {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.flex-center-mb-2 {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.flex-center-text {
    align-items: center;
    text-align: center;
}

.flex-end-gap {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Utility spacing */
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-n1 { margin-top: -0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.full-width { grid-column: span 2; }

/* Legacy helpers */
.inv-title { margin-bottom: 0.5rem; }
.inv-location { color: #6b7280; font-size: 0.9rem; margin-bottom: 1rem; }
.btn-edit-rooms { margin-top: auto; text-align: center; }
.dashboard-card-mb-8 { margin-bottom: 2rem; }

/* ============================================================
   CUSTOM MODAL
   ============================================================ */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.active .custom-modal-content {
    transform: translateY(0) scale(1);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    color: #ef4444;
}

.custom-modal-header svg {
    width: 28px;
    height: 28px;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.custom-modal-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.custom-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 2rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40%           { transform: scale(1); opacity: 1; }
}

@keyframes barSlide {
    0%   { left: -40%; }
    100% { left: 120%; }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.18); opacity: 0.7; }
}

@keyframes buildingRise {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    body {
        padding: 1.25rem;
    }

    .settings-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .tabs-nav {
        position: static;
    }

    .stats-container {
        gap: 1rem;
    }

    .units-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .dashboard-card {
        padding: 1.5rem 1.75rem;
    }

    .page-content {
        padding: 1.5rem 1.75rem;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    body {
        padding: 0.75rem;
    }

    /* --- Header --- */
    header {
        flex-wrap: wrap;
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .user-info {
        display: none; /* "Zalogowany: admin" ukryty na mobile */
    }

    .user-nav {
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
    }

    .user-nav .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.82rem;
        padding: 0.55rem 0.75rem;
    }

    /* --- Hamburger toggle visible --- */
    .admin-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    /* --- Admin nav drawer on mobile --- */
    .admin-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 80vw);
        background: #ffffff;
        border-right: 1px solid var(--soft-border);
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
        z-index: 100;
        flex-direction: column;
        gap: 0.35rem;
        padding: 1.25rem 0.85rem 2rem;
        margin-bottom: 0;
        flex-wrap: nowrap;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .admin-menu.open {
        transform: translateX(0);
    }

    .admin-menu-overlay {
        display: block;
        pointer-events: none;
    }

    .admin-menu-overlay.open {
        pointer-events: auto;
    }

    .admin-menu a {
        padding: 0.9rem 1rem;
        border-radius: 10px;
        font-size: 0.95rem;
        border-color: transparent;
        background: transparent;
    }

    .admin-menu a:hover:not(.active) {
        background: #f8fafc;
    }

    /* --- Breadcrumbs --- */
    .breadcrumbs {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .breadcrumbs > .btn {
        align-self: flex-start;
    }

    /* --- Settings layout: single column --- */
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .tabs-nav {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 0.35rem;
        gap: 0.35rem;
        border-radius: var(--radius-md);
        scroll-snap-type: x mandatory;
    }

    .tab-link {
        white-space: nowrap;
        flex-shrink: 0;
        width: auto;
        scroll-snap-align: start;
        font-size: 0.85rem;
        padding: 0.75rem 0.85rem;
    }

    .tab-content {
        padding: 1.1rem;
        min-height: auto;
    }

    /* --- Forms --- */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .full-width {
        grid-column: span 1;
    }

    .tab-submit-row {
        justify-content: stretch;
    }

    .tab-submit-row .btn,
    .form-actions .btn {
        width: 100%;
    }

    /* --- Preview options --- */
    .preview-options {
        flex-direction: column;
    }

    .preview-card {
        min-width: 0;
    }

    .media-options {
        grid-template-columns: 1fr;
    }

    .custom-colors-panel {
        grid-template-columns: 1fr;
    }

    .upload-preview-card {
        grid-template-columns: 1fr;
    }

    /* --- Dashboard cards --- */
    .dashboard-card {
        padding: 1.25rem 1rem;
    }

    .page-content {
        padding: 1.25rem 1rem;
    }

    .page-content h3,
    .dashboard-card h3 {
        font-size: 1.3rem;
    }

    .page-content p,
    .dashboard-card p {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    /* --- Stats --- */
    .stats-container {
        flex-direction: column;
        gap: 0.75rem;
        margin: 1.25rem 0;
    }

    .stat-card {
        width: 100%;
        padding: 1rem;
    }

    /* --- Sync list --- */
    .sync-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .sync-table-container {
        padding: 0 0.75rem 0.85rem;
    }

    .sync-list-header {
        padding: 0.85rem 1rem;
    }

    /* --- Info panel --- */
    .info-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1rem;
        gap: 1rem;
    }

    .info-panel-action {
        width: 100%;
    }

    .info-panel-action .btn {
        width: 100%;
    }

    /* --- Units --- */
    .units-grid {
        grid-template-columns: 1fr;
    }

    .unit-edit-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .unit-edit-header .btn {
        width: 100%;
        justify-content: center;
    }

    .rooms-panel {
        grid-column: span 1;
        padding: 1rem;
    }

    .pdf-upload-container {
        flex-direction: column;
    }

    .pdf-upload-box {
        min-width: 0;
    }

    /* --- Section item row --- */
    .section-item-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-item-row .actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .section-item-row .actions .btn {
        flex: 1;
    }

    /* --- Status badge --- */
    .status-badge {
        margin-bottom: 1.25rem;
    }

    /* --- Modal --- */
    .custom-modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .custom-modal-actions {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .custom-modal-actions .btn {
        width: 100%;
    }
}
