/* customizer.css */

/* Mockup transitions */
#mock-browser {
    transition: background 0.3s ease;
}
#mock-browser * {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Klikateľné oblasti — hover highlight */
.mock-clickable {
    position: relative;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 0.15s ease;
}
.mock-clickable:hover {
    outline-color: rgba(59, 130, 246, 0.5);
    cursor: pointer;
}
.mock-clickable.mock-active {
    outline-color: rgba(59, 130, 246, 0.9);
}

/* Tooltip indikátor pri hover */
#m-pagebg.mock-clickable:hover::after { display: none; }
.mock-clickable:hover::after {
    content: attr(data-cfg-group);
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 9px;
    background: rgba(59, 130, 246, 0.85);
    color: #fff;
    padding: 1px 5px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 10;
    text-transform: capitalize;
    white-space: nowrap;
}

/* Toolbar */
.customizer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Buttons */
.customizer-btn-premium {
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
}
#btn_gen_palette {
    color: #059669;
    background: #ecfdf5;
    border-color: #d1fae5;
}
#btn_gen_palette:hover { background: #d1fae5; }

#btn_reset_theme {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fee2e2;
}
#btn_reset_theme:hover { background: #fee2e2; }

/* Floating popover — fixed aby neprekryl modal overflow */
#customizer-popover {
    position: fixed;
    z-index: 99999;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    min-width: 210px;
    max-width: 260px;
}

#customizer-popover-inner {
    padding: 10px 12px;
}

#customizer-popover-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

/* Swatch riadok */
.cpop-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}
.cpop-label {
    font-size: 10px;
    color: #374151;
    flex: 1;
    white-space: nowrap;
}
.cpop-swatch {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}
.cpop-color-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
    border-right: 1px solid #d1d5db;
}
.cpop-swatch input[type="text"],
#customizer-popover .cpop-swatch input[type="text"] {
    width: 60px;
    font-size: 10px;
    height: 22px;
    border: none !important;
    padding: 0 4px !important;
    font-family: monospace !important;
    color: #374151 !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}
.cpop-swatch:focus-within {
    border-color: #6b7280;
}

/* Logo sekcia v popoveri */
.cpop-sep {
    border-top: 1px solid #f3f4f6;
    margin: 8px 0;
}
.cpop-logo-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.cpop-logo-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.cpop-file-btn {
    font-size: 10px;
    padding: 3px 8px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    color: #374151;
}
.cpop-file-btn:hover {
    background: #e5e7eb;
}
.cpop-del-label {
    font-size: 10px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
