/* ===================================================
   Pi Monitor - Rajzoló & Műterem (Drawing Studio) Stylesheet
   Optimalizálva: Telefonra, Monitorra, Tabletre, Fekve és Állítva
   =================================================== */

:root {
    --bg-dark: #0a1113;
    --panel-bg: rgba(16, 24, 26, 0.92);
    --panel-border: rgba(0, 255, 204, 0.25);
    --panel-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --accent: #00ffcc;
    --accent-hover: #33ffdd;
    --accent-glow: rgba(0, 255, 204, 0.35);
    --text-primary: #ffffff;
    --text-secondary: #9cb1b5;
    --btn-bg: rgba(0, 0, 0, 0.45);
    --btn-border: rgba(0, 255, 204, 0.28);
    --btn-active: rgba(0, 255, 204, 0.22);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Reset és alapbeállítások */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Fő Alkalmazás Konténer */
.paint-app {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: radial-gradient(circle at 50% 10%, #15272a 0%, #0d1719 60%, #070c0e 100%);
    position: relative;
    overflow: hidden;
}

/* ===================================================
   Felső Fejléc & Akciósáv (Topbar)
   =================================================== */
.paint-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(8, 14, 16, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--panel-border);
    z-index: 50;
    flex-shrink: 0;
    box-sizing: border-box;
}

.paint-topbar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.paint-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.paint-brand svg,
.paint-brand i {
    width: 22px;
    height: 22px;
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.paint-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.paint-topbar-actions::-webkit-scrollbar {
    display: none;
}

/* Akció és Ikon Gombok */
.paint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-height: 36px;
    touch-action: manipulation;
}

.paint-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 204, 0.12);
    color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.paint-btn:active {
    transform: scale(0.96);
}

.paint-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: none;
}

.paint-btn.active {
    background: rgba(0, 255, 204, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.paint-btn-icon {
    padding: 6px 9px;
    min-width: 36px;
}

.paint-btn-icon svg,
.paint-btn-icon i {
    width: 18px;
    height: 18px;
}

.paint-btn-primary {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.25) 0%, rgba(0, 180, 150, 0.35) 100%);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 10px var(--accent-glow);
}

.paint-btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.4) 0%, rgba(0, 180, 150, 0.5) 100%);
    box-shadow: 0 0 16px var(--accent-glow);
}

.paint-select {
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--accent);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-height: 36px;
}

.paint-select:focus,
.paint-select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.paint-select option {
    background: #0d1719;
    color: #ffffff;
}

/* ===================================================
   Fő Munkafelület (Workspace: Toolbar + Canvas)
   =================================================== */
.paint-workspace {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    min-height: 0;
    width: 100%;
}

/* ===================================================
   Eszköztár Oldalsáv (Desktop / Tablet tájolásban)
   =================================================== */
.paint-toolbar {
    width: 290px;
    flex-shrink: 0;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--panel-border);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    z-index: 40;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
}

/* Gördítősáv stílus */
.paint-toolbar::-webkit-scrollbar {
    width: 5px;
}

.paint-toolbar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.25);
    border-radius: 4px;
}

.paint-toolbar::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Szekció keretek */
.paint-section {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 255, 204, 0.16);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.paint-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
}

.paint-section-header span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.paint-section-header svg,
.paint-section-header i {
    width: 14px;
    height: 14px;
}

.paint-val-badge {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-primary);
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.3);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

/* ===================================================
   Eszközválasztó Gombok Rácsa (Tools Grid)
   =================================================== */
.paint-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.paint-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-md);
    padding: 8px 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.72rem;
    font-weight: 600;
    min-height: 52px;
    touch-action: manipulation;
}

.paint-tool-btn svg,
.paint-tool-btn i {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.paint-tool-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(0, 255, 204, 0.1);
    transform: translateY(-1px);
}

.paint-tool-btn:hover svg,
.paint-tool-btn:hover i {
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.paint-tool-btn.active {
    background: rgba(0, 255, 204, 0.18);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.paint-tool-btn.active svg,
.paint-tool-btn.active i {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

/* ===================================================
   Vastagság és Előnézet (Size & Preview)
   =================================================== */
.paint-size-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.paint-size-slider-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paint-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.paint-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

.paint-slider::-webkit-slider-thumb:hover,
.paint-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.paint-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px var(--accent-glow);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

/* Élő Ecset Előnézeti Kör */
.paint-preview-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.paint-preview-dot {
    border-radius: 50%;
    background: var(--accent);
    transition: width 0.15s ease, height 0.15s ease, background-color 0.2s ease, opacity 0.2s ease;
    max-width: 40px;
    max-height: 40px;
}

/* Gyorsméret Gombok */
.paint-preset-sizes {
    display: flex;
    gap: 5px;
    justify-content: space-between;
}

.paint-size-pill {
    flex: 1;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    padding: 3px 0;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.paint-size-pill:hover,
.paint-size-pill.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 204, 0.15);
}

/* ===================================================
   Színválasztó & Paletta (Colors)
   =================================================== */
.paint-color-active-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.paint-active-color-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: var(--radius-md);
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.paint-active-color-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.paint-active-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.paint-active-hex {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: monospace;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.paint-color-picker-input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Színpaletta Rács */
.paint-palette-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.paint-color-swatch {
    aspect-ratio: 1;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    touch-action: manipulation;
}

.paint-color-swatch:hover {
    transform: scale(1.15);
    z-index: 2;
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

.paint-color-swatch.active {
    border: 2px solid #ffffff;
    box-shadow: 0 0 12px var(--accent), 0 0 4px #ffffff;
    transform: scale(1.1);
    z-index: 3;
}

/* Legutóbbi Színek */
.paint-recents-grid {
    display: flex;
    gap: 6px;
    align-items: center;
    overflow-x: auto;
    padding: 2px 0;
}

.paint-recents-grid .paint-color-swatch {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===================================================
   Festékesvödör Tűréshatár Szekció (Tolerance)
   =================================================== */
.paint-bucket-options {
    display: none;
    animation: fadeIn 0.3s ease;
}

.paint-bucket-options.visible {
    display: flex;
}

/* Vászon Beállítások (Háttér & Arány) */
.paint-canvas-settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.paint-bg-btn {
    border-radius: var(--radius-sm);
    padding: 6px 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid var(--btn-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.paint-bg-btn.active {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.paint-bg-btn[data-bg="white"] { background: #ffffff; color: #111111; }
.paint-bg-btn[data-bg="parchment"] { background: #fcf4de; color: #222222; }
.paint-bg-btn[data-bg="dark"] { background: #1e2628; color: #ffffff; }
.paint-bg-btn[data-bg="black"] { background: #000000; color: #ffffff; }

/* ===================================================
   Rajzvászon Terület (Canvas Workspace)
   =================================================== */
.paint-canvas-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #060a0b;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
    touch-action: none;
}

/* Vászon Doboz & Árnyék */
.paint-canvas-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 255, 204, 0.15);
    border-radius: var(--radius-sm);
    background: #ffffff;
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.paint-canvas-frame:hover {
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 255, 204, 0.35);
}

/* Maga a Canvas Elem */
#paint-canvas {
    display: block;
    cursor: crosshair;
    touch-action: none;
    -webkit-touch-callout: none;
}

/* Élő Követő Kurzormutató */
#paint-cursor {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%);
    display: none;
    z-index: 100;
    transition: width 0.05s ease, height 0.05s ease;
}

/* Információs Lebegő Értesítés (Toast / Status) */
.paint-toast {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: rgba(10, 18, 20, 0.92);
    border: 1px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.paint-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===================================================
   Modális Ablakok (Súgó, Törlés Megerősítés)
   =================================================== */
.paint-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 15px;
    box-sizing: border-box;
}

.paint-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.paint-modal-card {
    background: rgba(14, 22, 24, 0.96);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 20px var(--accent-glow);
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.paint-modal-overlay.active .paint-modal-card {
    transform: scale(1);
}

.paint-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.paint-modal-body {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #e0f0f2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.paint-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Súgó Kártya Elemek */
.paint-help-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}

.paint-help-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(0, 255, 204, 0.12);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.paint-help-text strong {
    color: var(--accent);
    display: block;
    margin-bottom: 2px;
}

.paint-kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-family: monospace;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ffffff;
}

/* ===================================================
   RESPONSIVE DESIGN (Monitor, Tablet, Mobil)
   =================================================== */

/* Mobil Álló Mód (Portrait - Kis képernyő < 900px) */
@media screen and (max-width: 899px) and (orientation: portrait) {
    .paint-workspace {
        flex-direction: column-reverse;
    }

    .paint-toolbar {
        width: 100%;
        max-height: 210px;
        border-right: none;
        border-top: 1px solid var(--panel-border);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.4);
        padding: 8px 12px;
        gap: 8px;
    }

    .paint-canvas-wrapper {
        padding: 6px;
    }

    .paint-topbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 6px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .paint-topbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .paint-brand {
        font-size: 0.95rem;
    }

    .paint-brand svg,
    .paint-brand i {
        width: 18px;
        height: 18px;
    }

    .paint-select {
        font-size: 0.8rem;
        padding: 4px 8px;
        min-height: 32px;
    }

    .paint-topbar-actions {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        padding: 2px 2px 4px 2px;
        box-sizing: border-box;
    }

    .paint-topbar-actions::-webkit-scrollbar {
        display: none;
    }

    .paint-topbar-actions .paint-btn {
        flex-shrink: 0;
        min-height: 34px;
        padding: 5px 10px;
        font-size: 0.8rem;
        display: inline-flex;
    }

    .paint-topbar-actions .paint-btn span.btn-text {
        display: inline !important;
        font-size: 0.8rem;
    }

    .paint-topbar-actions .paint-btn-icon {
        padding: 5px 8px;
        min-width: 34px;
    }

    .paint-tools-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .paint-tools-grid::-webkit-scrollbar {
        display: none;
    }

    .paint-tool-btn {
        flex: 0 0 58px;
        min-width: 58px;
        min-height: 48px;
        padding: 4px 2px;
        font-size: 0.68rem;
    }

    .paint-palette-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .paint-palette-grid::-webkit-scrollbar {
        display: none;
    }

    .paint-color-swatch {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
    }
}

/* Mobil Fekvő Mód (Landscape - Kis magasság <= 580px) */
@media screen and (orientation: landscape) and (max-height: 580px) {
    nav {
        padding: 4px 0 !important;
    }
    nav.nav-scrolled {
        padding: 3px 0 !important;
    }
    .logo img {
        height: 22px !important;
    }
    .paint-app {
        padding-top: 36px !important;
    }
    .paint-topbar {
        padding: 4px 10px;
        min-height: 36px;
    }

    .paint-brand span {
        display: none;
    }

    .paint-btn {
        min-height: 30px;
        padding: 4px 8px;
        font-size: 0.78rem;
    }

    .paint-btn span.btn-text {
        display: none;
    }

    .paint-topbar-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .paint-workspace {
        flex-direction: row;
    }

    /* Karcsú vertikális oldalsáv fekvő telefonon */
    .paint-toolbar {
        width: 190px;
        padding: 8px;
        gap: 6px;
    }

    .paint-tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .paint-tool-btn {
        min-height: 38px;
        padding: 4px 2px;
        font-size: 0.65rem;
    }

    .paint-tool-btn svg,
    .paint-tool-btn i {
        width: 16px;
        height: 16px;
    }

    .paint-section {
        padding: 6px 8px;
        gap: 4px;
    }

    .paint-palette-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 4px;
    }

    .paint-canvas-wrapper {
        padding: 4px;
    }
}

/* Nagy Monitorok (Monitor >= 1400px) */
@media screen and (min-width: 1400px) {
    .paint-toolbar {
        width: 320px;
        padding: 18px;
        gap: 16px;
    }

    .paint-tool-btn {
        min-height: 60px;
        font-size: 0.78rem;
    }

    .paint-tool-btn svg,
    .paint-tool-btn i {
        width: 24px;
        height: 24px;
    }
}

/* Animációk */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
