@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Globális Recter dizájn – minden oldal (app, editor, auth): fekete / szürke / pasztell zöld */
    --recter-page-bg: #1a1a1a;
    --recter-shell-bg: #23272f;
    --recter-shell-deep: #050608;
    --recter-shell-gradient: radial-gradient(circle at top, var(--recter-shell-bg), var(--recter-shell-deep) 55%);
    --recter-app-canvas: #000000;
    --recter-bg-dark: var(--recter-shell-bg);
    --recter-ink: #141414;
    --recter-black: var(--recter-ink);   /* szöveg pasztell gombokon */
    --recter-field-bg: rgba(255, 255, 255, 0.055); /* mezők a lapos háttéren */
    --recter-accent: #a8e6a3;             /* pasztell zöld (fő hangsúly) */
    --recter-accent-alt: #ffe9a3;         /* pasztell citromsárga (másodlagos) */
    --recter-text: #f8fafc;               /* világos szöveg */
    --recter-text-muted: #b0bec5;         /* tompított szürke szöveg */
    --recter-border: #3b4250;             /* sötét szegély */
    /* Gombszínek – mindenhol következetes */
    --recter-btn: var(--recter-accent);   /* fő gomb: pasztell zöld */
    --recter-btn-hover: #c7f2bf;          /* világosabb zöld hover */
    /* „Veszély”/lejárt: nagyon lágy, zöldhöz illő korallos árnyalatok */
    --recter-btn-danger: #ffc4b3;         /* pasztell korall gomb / ikon háttér */
    --recter-btn-danger-hover: #ffad94;   /* kicsit erősebb hover */
    --recter-danger-bg: #fff0ea;          /* nagyon halvány korall háttér (lejárt projektekhez) */
    --recter-danger-text: #7a3420;        /* mély, meleg barna-piros szöveg */

    /* Editor / réteg UI aliasok (egy tokenrendszer) */
    --text: var(--recter-text);
    --text-muted: var(--recter-text-muted);
    --accent: var(--recter-accent);
    --accent-strong: var(--recter-accent);
    --accent-soft: rgba(168, 230, 163, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

html {
    width: 100%;
    min-height: 100%;
    background: var(--recter-shell-gradient);
}

/* ===== GLOBÁLIS: ugyanaz a hátter minden lapon (auth + nyitó fallback) ===== */
body {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    background: transparent;
    color: var(--recter-text);
}

/* ===== KONTAINER: csak margó, ugyanaz a háttér mint a body – vizuálisan egy sík ===== */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: min(100vh, 100%);
    background: transparent;
    padding: clamp(12px, 2vw, 28px) clamp(12px, 2.5vw, 36px);
    border-radius: 0;
    box-shadow: none;
}

.container.dashboard {
    max-width: none;
    width: 100%;
    box-shadow: none;
    background: transparent;
}

/* Egységes auth felület: lásd body.auth-body + .auth-card (base_auth.html) */
.container.auth {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    min-height: 0;
}

/* ===== Ikonok (kurzus: stroke 2, lekerekített végek) – minden oldalon ===== */
.recter-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.recter-icon--muted {
    stroke: var(--recter-text-muted);
}

.recter-icon--accent {
    stroke: var(--recter-accent);
}

.recter-icon-lg {
    width: 2rem;
    height: 2rem;
}

/* ===== Bejelentkezés / regisztráció / email – ugyanaz a kártya, mint az app panelek ===== */
html.auth-html,
body.auth-body {
    min-height: 100%;
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 48px);
    background: var(--recter-shell-gradient);
    color: var(--recter-text);
}

.auth-layout {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--recter-shell-bg);
    border: 1px solid var(--recter-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
    padding: 26px 24px 28px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--recter-border);
}

.auth-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--recter-border);
    color: var(--recter-accent);
}

.auth-brand-mark .recter-icon-lg {
    stroke: var(--recter-accent);
}

.auth-brand-logo {
    width: min(120px, 34vw);
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.auth-page-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 18px 0;
    letter-spacing: -0.3px;
    color: var(--recter-text);
}

.auth-page-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.auth-page-title-row .auth-page-title {
    margin: 0;
}

.auth-inline-logo {
    width: 132px;
    height: auto;
    object-fit: contain;
    display: block;
}

.auth-lead {
    font-size: 15px;
    line-height: 1.5;
    color: var(--recter-text-muted);
    margin: 0 0 20px 0;
}

.auth-lead a {
    color: var(--recter-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-lead a:hover {
    text-decoration: underline;
}

.auth-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(168, 230, 163, 0.12);
    border: 1px solid var(--recter-accent);
    color: var(--recter-accent);
}

body.auth-body .auth-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.auth-body .auth-card label,
body.auth-body .auth-card .form-row > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--recter-text-muted);
    margin-bottom: 6px;
}

body.auth-body .auth-card .form-row {
    margin-bottom: 0;
}

body.auth-body .auth-card .auth-links {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--recter-border);
    display: flex;
    justify-content: center;
}

body.auth-body .auth-card .auth-links .button,
body.auth-body .auth-card .auth-links a.button {
    width: 100%;
    text-align: center;
}

body.auth-body .form-errors {
    background: var(--recter-danger-bg);
    border: 1px solid var(--recter-btn-danger);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

body.auth-body .errorlist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 13px;
    color: var(--recter-danger-text);
}

body.auth-body .errorlist li {
    margin-top: 4px;
}

/* ===== APP SHELL: mint az /editor – teljes nézet, felső sáv, 260px oldalsávok ===== */
html.app-html,
body.app-body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.app-body {
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    background: var(--recter-shell-gradient);
    color: var(--recter-text);
}

.app-root {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.app-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.app-topbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--recter-border);
    background: var(--recter-shell-bg);
}

.app-topbar-left,
.app-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-topbar-left {
    flex: 0 1 auto;
}

.app-topbar-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.app-topbar-right {
    flex: 0 1 auto;
    justify-content: flex-end;
}

.app-topbar .logout-form {
    margin: 0;
}

.app-topbar .logout,
.app-logout-btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.app-editor-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--recter-text-muted);
}

.app-editor-title span {
    color: var(--recter-accent);
    font-weight: 600;
}

.app-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #000000;
    border: 1px solid var(--recter-accent);
    color: #ffffff !important;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease-out;
    text-decoration: none;
    font-weight: 600;
}

.app-icon-btn:hover {
    border-color: var(--recter-accent-alt);
    color: #ffffff !important;
}

.app-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    stroke: #ffffff;
}

.app-main {
    flex: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    gap: 0;
    min-height: 0;
}

.app-rail {
    background: var(--recter-shell-bg);
    border-right: 1px solid var(--recter-border);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    min-height: 0;
}

.app-rail.right {
    border-right: none;
    border-left: 1px solid var(--recter-border);
}

.app-center {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--recter-app-canvas);
    -webkit-overflow-scrolling: touch;
}

.app-center > .container {
    max-width: none;
    width: 100%;
    margin: 0;
    min-height: 0;
    background: transparent !important;
    box-shadow: none;
    border-radius: 0;
    padding: clamp(12px, 1.5vw, 20px) clamp(12px, 1.5vw, 24px);
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
}

.app-center > .container.project-detail-container {
    padding-bottom: 24px;
}

/* Lezárt projekt: világos nézet – felülírja az átlátszó központi konténert */
.app-center > .container.project-detail-container.project-closed {
    background: #f3f4f6 !important;
}

/* Kártyák / szekciók: mint az editor oldalsáv „tool-group” panelei */
body.app-body .app-center .card {
    background: var(--recter-shell-bg);
    border: 1px solid var(--recter-border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.app-panel-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--recter-text-muted);
    margin-bottom: 4px;
}

.app-tool-group {
    background: var(--recter-shell-bg);
    border-radius: 12px;
    border: 1px solid var(--recter-border);
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.app-tool-buttons-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.app-rail-nav {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 14px;
}

.app-rail-logout {
    margin-top: auto;
}

a.app-tool-button {
    color: var(--recter-text);
}

.app-tool-button {
    border-radius: 10px;
    padding: 7px 8px;
    background: var(--recter-shell-bg);
    border: 1px solid var(--recter-border);
    color: var(--recter-text);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.12s ease-out;
    text-decoration: none;
    text-align: left;
}

.app-tool-button:hover {
    border-color: var(--recter-accent);
    transform: translateY(-1px);
    color: var(--recter-text);
}

.app-tool-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--recter-accent);
    fill: none;
}

.app-tool-button span {
    flex: 1;
    line-height: 1.25;
}

.app-rail-logout .app-tool-button {
    width: 100%;
    box-sizing: border-box;
}

.app-rail-logout .logout-form {
    width: 100%;
}

.app-tool-button-danger {
    border-color: var(--recter-btn-danger);
    color: #ffffff !important;
}

.app-tool-button-danger svg {
    stroke: var(--recter-btn-danger) !important;
    transform: rotate(180deg);
    transform-origin: center;
}

.app-tool-button-danger span {
    color: #ffffff !important;
}

.app-tool-button-danger:hover {
    border-color: var(--recter-btn-danger-hover);
    color: #ffffff !important;
}

.app-tool-button-danger:hover svg {
    stroke: var(--recter-btn-danger-hover) !important;
}

.app-tool-button-danger:hover span {
    color: #ffffff !important;
}

@media (max-width: 1100px) {
    .app-main {
        grid-template-columns: 72px minmax(0, 1fr) 72px;
    }

    .app-rail {
        padding: 8px 6px;
    }

    .app-tool-button {
        justify-content: center;
        padding: 10px 6px;
    }

    .app-tool-button span {
        display: none;
    }

    .app-panel-title {
        text-align: center;
        font-size: 9px;
        letter-spacing: 0.08em;
    }
}

.container.project-detail-container {
    max-width: none;
    width: 100%;
    padding-bottom: 32px;
}

.container.project-detail-container.project-closed {
    background: #f3f4f6;
}

.container.project-detail-container.project-closed .card,
.container.project-detail-container.project-closed .project-detail-form-section,
.container.project-detail-container.project-closed .project-detail-map-section,
.container.project-detail-container.project-closed .project-description-section,
.container.project-detail-container.project-closed .project-schedule-section {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.container.project-detail-container.project-closed * {
    color: #6b7280 !important;
}

.container.project-detail-container.project-closed .project-name,
.container.project-detail-container.project-closed h2,
.container.project-detail-container.project-closed h3 {
    color: #4b5563 !important;
}

.container.project-detail-container.project-closed button:not(#reopen-project-btn) {
    display: none !important;
}


.project-detail-main-layout {
    width: 100%;
}

.project-detail-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
}

.project-detail-form-section {
    margin-bottom: 24px;
    flex: 1 1 420px;
    min-width: min(100%, 320px);
    max-width: none;
    border-right: 4px solid var(--recter-border);
    padding-right: 28px;
    margin-right: 0;
    background: transparent;
    border-radius: 8px;
    padding: 20px 28px 20px 20px;
    box-shadow: none;
}

.project-description-section {
    margin-top: 24px;
    flex: 1 1 100%;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
    border-top: 4px solid var(--recter-border);
}

.project-schedule-section {
    margin-top: 24px;
    flex: 1 1 100%;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
    border-top: 4px solid var(--recter-border);
    border-bottom: 4px solid var(--recter-border);
    position: relative;
}

.project-schedule-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--recter-border);
    border-radius: 8px 8px 0 0;
}

.project-schedule-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--recter-border);
    border-radius: 0 0 8px 8px;
}

/* Költségvetés blokk */
.project-budget-section {
    margin-top: 24px;
    flex: 1 1 100%;
    width: 100%;
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
    border-top: 4px solid var(--recter-border);
    border-bottom: 4px solid var(--recter-border);
    position: relative;
}

.project-budget-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--recter-border);
    border-radius: 8px 8px 0 0;
}

.project-budget-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--recter-border);
    border-radius: 0 0 8px 8px;
}

.budget-container {
    width: 100%;
    overflow-x: auto;
}

.budget-vat-mode {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px; /* nagyobb térköz az Ártípus és az Anyagszükséglet között */
}

.budget-vat-label {
    font-size: 13px;
    color: var(--recter-text-muted);
}

.budget-vat-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--recter-border);
    background: var(--recter-field-bg);
    color: var(--recter-text);
    font-size: 13px;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: transparent;
    border: 1px solid var(--recter-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
}

.budget-table thead {
    background: transparent;
}

.budget-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--recter-text);
    border-bottom: 2px solid var(--recter-border);
}

.budget-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--recter-border);
    font-size: 14px;
    color: var(--recter-text-muted);
}

.budget-table tbody tr:hover {
    background: var(--recter-border);
}

.budget-table input[type="text"],
.budget-table input[type="number"],
.budget-table select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--recter-border);
    border-radius: 4px;
    font-size: 14px;
    background: var(--recter-field-bg);
    color: var(--recter-text);
}

.budget-table input[type="text"]:focus,
.budget-table input[type="number"]:focus,
.budget-table select:focus {
    outline: none;
    border-color: var(--recter-accent);
    box-shadow: 0 0 0 2px rgba(168, 230, 163, 0.25);
}

.budget-table select,
.budget-table select option,
.budget-vat-select,
.budget-vat-select option {
    background: var(--recter-page-bg) !important;
    color: var(--recter-text) !important;
}

.budget-table .budget-item-name {
    min-width: 200px;
}

.budget-table .budget-item-quantity {
    width: 120px;
}

.budget-table .budget-item-type {
    width: 150px;
}

.budget-table .budget-item-unit-price {
    position: relative;
}

.budget-price-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

.budget-price-input-wrapper .budget-input-unit-price {
    flex: 1;
    text-align: right;
    padding-right: 8px;
    /* Spinner eltávolítása */
    -moz-appearance: textfield;
}

.budget-price-input-wrapper .budget-input-unit-price::-webkit-outer-spin-button,
.budget-price-input-wrapper .budget-input-unit-price::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.budget-price-separator {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 400;
    margin: 0 4px;
    pointer-events: none;
    user-select: none;
}

.budget-price-suffix {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}


.budget-table .budget-item-total {
    width: 120px;
    font-weight: 600;
    color: var(--recter-text);
    text-align: right;
}

.budget-table .budget-item-actions {
    width: 80px;
    text-align: center;
}

.budget-table .budget-delete-btn {
    background: var(--recter-danger-bg);
    color: var(--recter-danger-text) !important;
    border: 1px solid var(--recter-btn-danger);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.budget-table .budget-delete-btn:hover {
    background: var(--recter-btn-danger-hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-text) !important;
}

.budget-table .budget-delete-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.budget-total-row {
    background: #f1f5f9;
    font-weight: 600;
}

.budget-total-label {
    text-align: right;
    font-size: 16px;
    color: var(--recter-text);
    padding: 16px;
}

.budget-total-value {
    text-align: right;
    font-size: 18px;
    color: var(--recter-accent);
    font-weight: 700;
    padding: 16px;
}

/* Költségvetés alcímek */
.budget-subtitle {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--recter-text-muted);
    font-size: 16px;
    font-weight: 600;
}

.budget-container > .budget-subtitle:first-child {
    margin-top: 0;
}

/* Munkadíj szekció */
.budget-labor-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--recter-border);
}

.budget-labor-section .budget-subtitle {
    margin-top: 0;
    margin-bottom: 16px;
}

.budget-labor-table {
    margin-top: 0;
}

.budget-labor-row {
    background: transparent;
}

.budget-labor-row:hover {
    background: var(--recter-border);
}

.budget-labor-table th:nth-child(2),
.budget-labor-table td:nth-child(2) {
    width: 200px;
}

.budget-labor-table th:nth-child(3),
.budget-labor-table td:nth-child(3) {
    width: 80px;
    text-align: center;
}

/* Összesítő szekció */
.budget-grand-total-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--recter-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.budget-grand-total-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--recter-text);
}

.budget-grand-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--recter-accent);
}

/* Árajánlat PDF gomb */
.quote-pdf-btn {
    background: var(--recter-btn);
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-pdf-btn:hover {
    background: var(--recter-btn-hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-black) !important;
    text-decoration: none;
}

#project-schedule-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.schedule-day {
    background: transparent;
    border: 3px solid var(--recter-border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    box-shadow: none;
    flex: 1 1 280px;
    max-width: none;
    min-width: 0;
}

.schedule-day.locked {
    background: rgba(44, 255, 5, 0.08);
    border: 3px solid var(--recter-border);
    opacity: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--recter-border);
}

.schedule-day-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--recter-text);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.schedule-day-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.completed-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--recter-text-muted);
    cursor: pointer;
}

.completed-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.schedule-day-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-day-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-field label {
    font-size: 12px;
    font-weight: 500;
    color: var(--recter-text-muted);
}

.schedule-field textarea,
.schedule-field input[type="time"],
.schedule-field input[type="number"] {
    padding: 8px;
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: var(--recter-field-bg);
    color: var(--recter-text);
}

.schedule-field textarea {
    min-height: 80px;
    resize: vertical;
}

.schedule-field textarea[readonly],
.schedule-field input[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.schedule-field-value {
    padding: 8px;
    background-color: transparent;
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--recter-text);
    min-height: 38px;
    display: flex;
    align-items: center;
}

.schedule-field-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.schedule-day-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.schedule-extra-days-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.extra-days-placeholder {
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

.unlock-day-btn,
.lock-day-btn,
.delete-day-btn {
    font-size: 12px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.delete-day-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.project-description-view {
    min-height: 150px;
    padding: 16px;
    background: transparent;
    border-radius: 6px;
    border: 1px solid var(--recter-border);
}

.description-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--recter-text);
}

.description-content p {
    margin: 0 0 12px 0;
}

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

.empty-description {
    color: #94a3b8;
    font-style: italic;
}

.project-description-form {
    margin-top: 12px;
}

.project-description-form #description-editor {
    min-height: 300px;
    background: var(--recter-field-bg);
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    color: var(--recter-text);
}

.description-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-end;
}

.project-detail-form-section .card-header-inline {
    margin-bottom: 12px;
}

.project-detail-form-section .project-created {
    font-size: 11px;
    color: #64748b;
    text-align: right;
    white-space: nowrap;
}

.project-detail-form-section .form-row {
    margin-bottom: 8px;
}

.project-detail-form-section label {
    font-size: 11px;
    margin-bottom: 3px;
}

.project-detail-form-section input,
.project-detail-form-section textarea {
    font-size: 12px;
    padding: 6px;
    background: var(--recter-field-bg);
    color: var(--recter-text);
    border: 1px solid var(--recter-border);
}

.project-detail-form-section textarea {
    min-height: 50px;
}

.project-detail-form-section select {
    font-size: 12px;
    padding: 6px;
    background: var(--recter-field-bg);
    color: var(--recter-text);
    border: 1px solid var(--recter-border);
}

/* Olvasható nézet stílusok - tömörebb */
.project-detail-view {
    display: block;
}

.project-detail-view.hidden {
    display: none !important;
}

.detail-view-row {
    margin-bottom: 6px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
}

.detail-view-row label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    min-width: 100px;
    flex-shrink: 0;
}

.detail-view-value {
    font-size: 12px;
    color: var(--recter-text);
    padding: 0;
    flex: 1;
}

.detail-view-value.deadline-warning {
    color: var(--recter-danger-text);
    font-size: 16px;
    font-weight: 700;
}

.detail-section-divider,
.form-section-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 0;
}

.detail-view-value-with-checkbox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.contacted-checkbox-view {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #666;
}

.contacted-checkbox-view input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: not-allowed;
}

.contacted-checkbox-view label {
    margin: 0;
    font-weight: 400;
    cursor: not-allowed;
}

.form-row-with-checkbox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.contacted-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333;
}

.contacted-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contacted-checkbox label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.project-detail-map-section {
    margin-bottom: 0;
    flex: 1 1 360px;
    min-width: min(100%, 280px);
    max-width: none;
    align-self: stretch;
    background: transparent;
    border-radius: 8px;
    padding: 20px;
    box-shadow: none;
    border: 1px solid var(--recter-border);
}

.project-detail-map-section h2 {
    margin-bottom: 8px;
    font-size: 16px;
}

.project-map {
    width: 100%;
    height: 250px;
    border-radius: 8px;
    border: 1px solid var(--recter-border);
}

/* ===== PROJEKT KÉPEK / GALÉRIA ===== */
.project-files-section {
    margin-top: 20px;
    border-top: 4px solid var(--recter-border);
    padding-top: 20px;
}

.project-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-files-header h3 {
    margin: 0;
    font-size: 22px;
    color: var(--recter-text);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.project-file-upload {
    display: flex;
    gap: 10px;
    align-items: center;
}

.project-file-upload input[type="file"] {
    display: none;
}

.project-file-upload .small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.project-file-upload .small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-files-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-image-counter {
    font-size: 13px;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
}

.project-file-upload .small.disabled,
.project-file-upload .small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.project-gallery {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
    max-width: 100%;
}

.project-gallery::-webkit-scrollbar {
    width: 8px;
}

.project-gallery::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.project-gallery::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.project-gallery::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.project-gallery-empty {
    font-size: 15px;
    color: #64748b;
    text-align: center;
    padding: 24px 16px;
    font-weight: 400;
    font-style: normal;
    width: auto;
    margin: 0 auto;
}

.project-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e1;
}

.project-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #f8fafc;
}

.project-gallery-item .project-gallery-name {
    font-size: 12px;
    padding: 8px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--recter-text-muted);
    font-weight: 500;
    background: transparent;
    border-top: 1px solid var(--recter-border);
}

.project-gallery-item .gallery-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-gallery-item:hover .gallery-delete-btn {
    opacity: 1;
}

.project-gallery-item .gallery-delete-btn:hover {
    background: rgba(185, 28, 28, 1);
    transform: scale(1.1);
}

.project-gallery-item .gallery-delete-btn:active {
    transform: scale(0.95);
}

/* ===== LIGHTBOX (KÉP MEGTEKINTÉS) ===== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.lightbox-overlay.hidden {
    display: none !important;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    margin-top: 16px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lightbox-info #lightbox-counter {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
}

.lightbox-info #lightbox-name {
    font-size: 16px;
    color: #ffffff;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}


/* Responsive: kisebb képernyőkön egymás alá */
@media (max-width: 1200px) {
    .project-detail-layout {
        flex-direction: column;
    }
    
    .project-detail-form-section,
    .project-detail-map-section {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .project-map {
        height: 300px;
    }
}

/* ===== FEJL�C ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--recter-text) !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--recter-accent);
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 15px;
}

.back-link:hover {
    background: var(--recter-field-bg);
    box-shadow: none;
    transform: translateY(-1px);
    color: var(--recter-accent) !important;
}

.back-arrow {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}

.back-arrow svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

h1 {
    font-size: 32px;
    color: var(--recter-text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

h2 {
    margin-bottom: 15px;
    color: var(--recter-text);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.3px;
}

/* ===== K�RTY�K ===== */
.card {
    margin-bottom: 25px;
}

.card-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--recter-border);
    flex-wrap: wrap;
}

.projects-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--recter-text);
    letter-spacing: -0.3px;
}

.projects-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.project-search {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 10px 16px;
    padding-left: 40px;
    border: 1px solid var(--recter-border);
    border-radius: 8px;
    background: var(--recter-field-bg);
    color: var(--recter-text);
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23a8e6a3' stroke-width='1.5'%3E%3Cpath d='M7 12A5 5 0 1 0 7 2a5 5 0 0 0 0 10zM14 14l-3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 16px;
}

.search-input::placeholder {
    color: var(--recter-text-muted);
    opacity: 0.85;
}

.search-input:hover {
    border-color: var(--recter-accent);
    background: rgba(255, 255, 255, 0.07);
}

.search-input:focus {
    outline: none;
    border-color: var(--recter-accent);
    box-shadow: 0 0 0 2px rgba(168, 230, 163, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.project-filter {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    padding-right: 40px;
    border: 1px solid var(--recter-border);
    border-radius: 8px;
    background: var(--recter-field-bg);
    color: var(--recter-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 220px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23b0bec5' stroke-width='1.5'%3E%3Cpath d='M3 4.5L6 7.5 9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-select:hover {
    border-color: var(--recter-accent);
    background: rgba(255, 255, 255, 0.07);
}

.filter-select:focus {
    outline: none;
    border-color: var(--recter-accent);
    box-shadow: 0 0 0 2px rgba(168, 230, 163, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.header-title-with-edit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title-with-edit h2 {
    margin: 0;
}

.project-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title-with-edit .small {
    padding: 4px 10px;
    font-size: 12px;
    min-height: auto;
    line-height: 1.4;
}

/* ===== FORM ===== */
.project-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hidden {
    display: none !important;
}

.profile-view.hidden,
.profile-form.hidden {
    display: none;
}

.profile-form {
    margin-top: 16px;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-form .card {
    margin-bottom: 0;
}

.profile-form .form {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--recter-border);
    width: 100%;
}

/* ===== Globális mezők (sötét téma, egy stílus minden lapon) ===== */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]):not([type="range"]),
textarea,
select {
    font-family: inherit;
    font-size: 15px;
    color: var(--recter-text);
    background: var(--recter-field-bg);
    border: 1px solid var(--recter-border);
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
    display: block;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--recter-text-muted);
    opacity: 0.85;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--recter-accent);
    box-shadow: 0 0 0 2px rgba(168, 230, 163, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

input[readonly],
textarea[readonly],
select[readonly] {
    background: rgba(255, 255, 255, 0.03);
    color: var(--recter-text-muted);
    cursor: not-allowed;
    border-color: var(--recter-border);
}

input[readonly]:focus,
textarea[readonly]:focus {
    box-shadow: none;
    border-color: var(--recter-border);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    display: inline-block;
    vertical-align: middle;
    accent-color: var(--recter-accent);
}

/* Egységes dark stílus minden legördülő/opció felületre */
select,
select option,
select optgroup {
    background-color: #1f232b;
    color: var(--recter-text);
}

/* Disabled mezők is maradjanak jól olvashatók */
input:disabled,
textarea:disabled,
select:disabled {
    background: rgba(255, 255, 255, 0.03);
    color: var(--recter-text-muted);
    border-color: var(--recter-border);
    opacity: 1;
}

/* Általános contenteditable dark felület */
[contenteditable="true"] {
    background: var(--recter-field-bg);
    color: var(--recter-text);
    border: 1px solid var(--recter-border);
}

/* Quill szerkesztő globális dark override */
.ql-toolbar.ql-snow,
.ql-container.ql-snow,
.ql-editor,
.ql-snow .ql-picker-options {
    background: #1f232b;
    color: var(--recter-text);
    border-color: var(--recter-border) !important;
}

.ql-editor.ql-blank::before {
    color: var(--recter-text-muted) !important;
    opacity: 0.9;
}

.ql-snow .ql-stroke {
    stroke: #e8eef1 !important;
}

.ql-snow .ql-fill {
    fill: #e8eef1 !important;
}

.ql-snow .ql-picker,
.ql-snow .ql-picker-label,
.ql-snow .ql-picker-item,
.ql-snow .ql-picker.ql-expanded .ql-picker-label,
.ql-snow .ql-picker.ql-expanded .ql-picker-options,
.ql-snow .ql-tooltip,
.ql-snow .ql-tooltip input[type="text"] {
    color: var(--recter-text);
    border-color: var(--recter-border);
    background: #1f232b;
}

.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected,
.ql-snow .ql-picker-label:hover {
    color: var(--recter-accent);
}

.ql-toolbar.ql-snow button,
.ql-toolbar.ql-snow button .ql-stroke,
.ql-toolbar.ql-snow button .ql-fill,
.ql-toolbar.ql-snow button .ql-picker-label {
    color: #e8eef1 !important;
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: var(--recter-accent) !important;
}

.ql-toolbar.ql-snow button:hover .ql-fill,
.ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: var(--recter-accent) !important;
}

.project-description-form .ql-editor,
.project-description-form .ql-editor * {
    color: var(--recter-text) !important;
}

/* ===== GOMBOK ÉS BORDÓ ===== */
button {
    padding: 12px;
    background: var(--recter-btn);
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.auth-body .auth-card form button[type="submit"] {
    width: 100%;
    margin-top: 6px;
}

button:hover {
    background: var(--recter-btn-hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-black) !important;
}

/* ===== PROJEKT LISTA ===== */
.project-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Projekt blokkok (aktív és lezárt) */
.project-block {
    margin-bottom: 32px;
}

.project-block:last-child {
    margin-bottom: 0;
}

.project-block-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--recter-text);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--recter-border);
}

.project-item {
    position: relative;
    padding: 12px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--recter-border);
    color: var(--recter-text);
    overflow: visible;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 200px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-item:active {
    cursor: grabbing;
}

.project-item.drag-over {
    /* Nincs piros keret */
}

.project-item.drag-placeholder {
    background: transparent;
    border: 2px dashed var(--recter-border);
    min-height: 200px;
    opacity: 0.4;
    pointer-events: none;
    position: relative;
}

.project-item.drag-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 6px;
}

.project-item.deadline-overdue,
.project-item.deadline-overdue .project-view {
    background: transparent;
    border-color: #ff3b3b;                    /* vékony, határozott piros szegély – mint a Kilépés csempénél */
    color: var(--recter-text);                /* normál világos szöveg */
}

.project-item.project-closed {
    background: transparent;
    border-color: var(--recter-border);
}

.project-item.project-closed .project-view {
    background: transparent;
}

.project-item.project-closed * {
    color: var(--recter-text-muted) !important;
}

.project-item.project-closed .project-name {
    color: var(--recter-text-muted) !important;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.2px;
}

.project-item.project-closed .project-actions button:not(.reopen-project-btn) {
    display: none !important;
}

.project-item .project-name {
    color: var(--recter-accent);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.2px;
}

.project-item.deadline-overdue .project-name {
    color: var(--recter-danger-text);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.2px;
}

.project-item .project-meta {
    color: var(--recter-text-muted);
}

.project-item.deadline-overdue .project-meta {
    color: var(--recter-danger-text);
}

.project-item .project-desc {
    color: var(--recter-text-muted);
}

.project-item.deadline-overdue .project-desc {
    color: var(--recter-danger-text);
}

.project-item .project-created {
    color: var(--recter-text-muted);
}

.project-item.deadline-overdue .project-created {
    color: var(--recter-danger-text);
}

.project-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

.project-created-date {
    font-size: 11px;
    color: var(--recter-text-muted);
    text-transform: lowercase;
    white-space: nowrap;
    margin-top: 2px;
}

.project-item.project-closed .project-created-date {
    color: var(--recter-text-muted);
}

.project-item.deadline-overdue .project-created-date {
    color: var(--recter-danger-text);
    opacity: 0.8;
}

.project-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta {
    font-size: 13px;
    color: var(--recter-text-muted);
    display: grid;
    gap: 4px;
    margin: 6px 0;
}

.project-name {
    font-weight: 700;
    color: var(--recter-text);
    font-size: 24px;
    letter-spacing: -0.3px;
}

.project-created {
    font-size: 11px;
    color: var(--recter-text-muted);
    text-align: right;
    white-space: nowrap;
}

.project-desc {
    font-size: 14px;
    color: var(--recter-text-muted);
}

.empty {
    color: var(--recter-text-muted);
    font-style: italic;
}

/* ===== LOGOUT ===== */
.logout-form {
    margin: 0;
}

.logout {
    background: none;
    border: none;
    color: var(--recter-accent-alt);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

    .logout:hover {
        text-decoration: underline;
    }
.form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

    .form-row label {
        font-size: 15px;
        font-weight: bold;
        color: var(--recter-text-muted);
        margin-bottom: 4px;
    }
    
    .profile-form-two-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .form-column {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    
    .user-type-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .user-type-row span {
        font-weight: normal;
        font-size: 14px;
    }

.field-error {
    margin-top: 4px;
    font-size: 12px;
    color: var(--recter-danger-text);
}

.field-hint {
    display: block;
    color: var(--recter-text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.dashboard-buttons {
    display: flex;
    gap: 10px;
}

.news-post-reactions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.news-reaction-btn {
    min-width: 0;
    min-height: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 12px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    align-items: center;
    background: transparent;
    color: var(--recter-text-muted);
    border: 1px solid var(--recter-border);
}

.news-reaction-btn:hover {
    transform: none;
    background: var(--recter-field-bg);
    color: var(--recter-text);
    border-color: var(--recter-accent);
}

.news-reaction-btn.is-active {
    background: rgba(168, 230, 163, 0.18);
    color: var(--recter-accent);
    border-color: var(--recter-accent);
}

.news-reaction-btn--dislike.is-active {
    background: rgba(255, 196, 179, 0.2);
    color: var(--recter-btn-danger);
    border-color: var(--recter-btn-danger);
}

.news-reaction-count {
    font-size: 12px;
    color: var(--recter-text-muted);
    font-weight: 600;
    min-width: 16px;
}

.news-reaction-count--dislike {
    color: #ffc4b3;
}

.news-comments-count {
    color: var(--recter-text-muted);
    font-size: 13px;
    margin-left: 6px;
}

.news-comments-list {
    margin: 0;
    padding-left: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.09);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-comment-item {
    margin-bottom: 0;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--recter-border);
    border-radius: 8px;
}

.news-comment-meta {
    font-size: 13px;
    color: #d3dce0;
    font-weight: 700;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    padding-bottom: 5px;
    margin-bottom: 6px;
}

.news-comment-content {
    margin-top: 0;
    white-space: pre-wrap;
    color: var(--recter-text);
}

.news-feed-container {
    max-width: 760px;
    margin: 0 auto;
}

.news-post-item {
    padding: 10px 12px;
}

.news-post-content {
    margin-top: 8px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.45;
}

.news-comments-block {
    margin-top: 12px;
    margin-left: 18px;
}

.delete-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    margin: 12px 0;
}

.delete-picker-item {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button.primary,
.button.secondary,
.secondary {
    background: var(--recter-btn);
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
}

.new-project-button-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.new-project-button {
    border-radius: 6px;
    min-height: 40px;
    padding: 10px 24px;
    position: relative;
    background: var(--recter-btn) !important;
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 300px;
    width: auto;
}

.new-project-button::before {
    content: '+';
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.new-project-button:hover {
    background: var(--recter-btn-hover) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-black) !important;
}

.danger {
    background: transparent;
    color: var(--recter-btn-danger) !important;
    border: 1px solid var(--recter-btn-danger);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Gomb hover stílusok - egyesített: primary/secondary egy szín, danger külön */
.button.primary:hover,
.button.secondary:hover,
.secondary:hover {
    background: var(--recter-btn-hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-black) !important;
}

.danger:hover {
    background: var(--recter-btn-danger-hover);
    color: var(--recter-text) !important;
    border-color: var(--recter-btn-danger-hover);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.project-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.project-actions-bottom {
    justify-content: space-between;
    align-items: center;
}

.project-actions-bottom.project-actions-closed {
    justify-content: center;
}

.project-actions-bottom .close-project-btn,
.project-actions-bottom .reopen-project-btn {
    margin-right: auto;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.reopen-project-btn {
    background: var(--recter-btn) !important;
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reopen-project-btn:hover {
    background: var(--recter-btn-hover) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-black) !important;
}

.project-actions-bottom.project-actions-closed .reopen-project-btn {
    margin-right: 0;
}

.project-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-closed-badge {
    background: var(--recter-accent-alt); /* pasztell citromsárga */
    color: var(--recter-black);          /* fekete szöveg, jól olvasható */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.project-closed-ribbon {
    position: absolute;
    bottom: 20px;
    right: -40px;
    width: 180px;
    height: 30px;
    background: var(--recter-accent-alt); /* pasztell citromsárga */
    color: var(--recter-black) !important;          /* fekete felirat – felülírja a globális *!important-et */
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transform: rotate(-45deg);
    transform-origin: center;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    border: 1px solid var(--recter-accent-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

/* A projekt view pozícionálása, hogy a szalag jól jelenjen meg */
.project-item .project-view {
    position: relative;
    overflow: hidden;
}

/* A projekt item pozícionálása a szalaghoz */
.project-item {
    position: relative;
    overflow: hidden;
}

/* Projekt gombok - egyesített stílusok, egy szín */
.open-project,
.close-project-btn,
.project-item .open-project,
.project-item .close-project-btn,
.project-item .reopen-project-btn {
    background: var(--recter-btn) !important;
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.project-item .open-project,
.project-item .close-project-btn,
.project-item .reopen-project-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-width: auto;
}

.close-project-btn {
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
}

.open-project:hover,
.close-project-btn:hover,
.project-item .reopen-project-btn:hover,
.project-item .open-project:hover,
.project-item .close-project-btn:hover {
    background: var(--recter-btn-hover) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    color: var(--recter-black) !important;
}

.delete-project-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--recter-btn-danger);
    color: var(--recter-danger-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
    flex-shrink: 0;
}

.delete-project-icon-btn:hover {
    background: var(--recter-btn-danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(191, 0, 255, 0.3);
}

.delete-project-icon-btn svg {
    display: block;
}

.delete-project-link {
    color: var(--recter-danger-text);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    margin-left: auto;
}

.delete-project-link:hover {
    color: var(--recter-btn-danger-hover);
    text-decoration: none;
}

.project-exit-section-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--recter-page-bg);
    border-top: 1px solid var(--recter-border);
    padding: 16px 24px;
    box-shadow: none;
    z-index: 1000;
}

.project-exit-section {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.project-exit-section-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-exit-section-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.save-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.save-indicator.hidden {
    display: none;
}

.save-indicator-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.save-indicator-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.saved-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    color: var(--recter-accent);
    font-weight: bold;
    font-size: 18px;
    padding: 8px 16px;
}

.saved-indicator.hidden {
    display: none;
}

.project-status-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    color: var(--recter-accent);
    font-weight: bold;
    font-size: 18px;
    padding: 8px 16px;
}

.project-status-indicator.hidden {
    display: none;
}

/* ===== PROJEKT SZERKESZTŐ FORM ===== */
.project-detail-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.save-project {
    background: var(--recter-btn);
    color: var(--recter-black) !important;
    border: 1px solid var(--recter-btn);
    padding: 12px 24px;
    min-width: 140px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.save-project:hover {
    background: var(--recter-btn-hover);
    color: var(--recter-black) !important;
}

.save-day-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: transparent;
    border-radius: 6px;
    border: 1px solid var(--recter-border);
}

.project-edit-form.hidden {
    display: none !important;
}

.project-edit-form input,
.project-edit-form textarea {
    padding: 10px;
    width: 100%;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--recter-border);
    font-size: 14px;
    background: var(--recter-field-bg);
    color: var(--recter-text);
}

.project-edit-form .deadline-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-edit-form .deadline-label span,
.project-edit-form .edit-label span {
    font-size: 13px;
    color: var(--recter-text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.project-edit-form .edit-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-view {
    display: block;
}

/* ===== MODAL DIALÓGUS ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-content {
    background: var(--recter-page-bg);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--recter-border);
    max-width: 480px;
    width: 90%;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h3 {
    margin: 0 0 16px 0;
    color: var(--recter-text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.modal-content p {
    margin: 0 0 12px 0;
    color: var(--recter-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.modal-warning {
    color: var(--recter-btn-danger) !important;
    font-weight: 600;
    margin-bottom: 24px !important;
}

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

.modal-actions button {
    padding: 10px 20px;
    min-width: 120px;
}

/* ===== AUTCOMPLETE ===== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--recter-page-bg);
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
}

.autocomplete-dropdown.hidden {
    display: none !important;
}

.floor-plan-toolbar {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    gap: 4px;
    padding-right: 8px;
    border-right: 1px solid var(--recter-border);
}

.toolbar-group:last-child {
    border-right: none;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: var(--recter-field-bg);
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--recter-text);
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--recter-btn);
}

.toolbar-btn.active {
    background: var(--recter-btn);
    color: var(--recter-black);
    border-color: var(--recter-btn);
}

#floor-plan-canvas-container {
    position: relative;
    overflow: auto;
}

#floor-plan-canvas {
    border: none;
    cursor: crosshair;
}

.floor-plan-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.floor-plan-view img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.floor-plan-preview-container {
    padding: 16px;
}

.floor-plan-preview {
    width: 100%;
    min-height: 200px;
    max-height: 300px;
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.floor-plan-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 6px;
}

.floor-plan-preview-empty {
    width: 100%;
    min-height: 200px;
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--recter-text-muted);
    margin-bottom: 16px;
}

.floor-plan-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--recter-text);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: var(--recter-field-bg);
}

.floor-plans-container {
    padding: 16px;
}

.floor-plans-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.floor-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.floor-plan-thumbnail {
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    background: transparent;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.floor-plan-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.floor-plan-thumbnail-preview {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-bottom: 1px solid var(--recter-border);
    overflow: hidden;
}

.floor-plan-thumbnail-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.floor-plan-thumbnail-name {
    padding: 8px 12px;
    font-weight: 600;
    color: var(--recter-text);
    font-size: 14px;
    border-bottom: 1px solid var(--recter-border);
}

.floor-plan-thumbnail-actions {
    padding: 8px;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.floor-plan-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--recter-border);
    border-radius: 6px;
    background: var(--recter-field-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.floor-plan-action-btn svg {
    display: block;
}

.floor-plan-edit-btn {
    color: var(--recter-accent);
}

.floor-plan-edit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--recter-btn);
    transform: translateY(-1px);
}

.floor-plan-view-btn {
    color: var(--recter-btn);
    border-color: var(--recter-btn);
}

.floor-plan-view-btn:hover {
    background: var(--recter-btn);
    color: var(--recter-black);
    border-color: var(--recter-btn);
    transform: translateY(-1px);
}

.floor-plan-delete-btn {
    color: var(--recter-btn-danger);
    border-color: var(--recter-btn-danger);
}

.floor-plan-delete-btn:hover {
    background: var(--recter-btn-danger-hover);
    color: var(--recter-text);
    border-color: var(--recter-btn-danger-hover);
    transform: translateY(-1px);
}

.floor-plans-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--recter-text-muted);
    font-style: italic;
}

@media (max-width: 1200px) {
    .floor-plans-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .floor-plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .floor-plans-grid {
        grid-template-columns: 1fr;
    }
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--recter-border);
    font-size: 14px;
    color: var(--recter-text);
    transition: background-color 0.2s;
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: var(--recter-border);
}

.autocomplete-item:active {
    background-color: var(--recter-bg-dark);
}

/* Globális sötét görgetősáv (jobb oldali scrollbar is) */
html,
body,
.app-center,
.app-rail,
.app-rail.right {
    scrollbar-color: #3b4250 #1a1a1a;
    scrollbar-width: thin;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-center::-webkit-scrollbar,
.app-rail::-webkit-scrollbar,
.app-rail.right::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.app-center::-webkit-scrollbar-track,
.app-rail::-webkit-scrollbar-track,
.app-rail.right::-webkit-scrollbar-track {
    background: #1a1a1a;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.app-center::-webkit-scrollbar-thumb,
.app-rail::-webkit-scrollbar-thumb,
.app-rail.right::-webkit-scrollbar-thumb {
    background: #3b4250;
    border-radius: 8px;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.app-center::-webkit-scrollbar-thumb:hover,
.app-rail::-webkit-scrollbar-thumb:hover,
.app-rail.right::-webkit-scrollbar-thumb:hover {
    background: #4b5568;
}
