/**
 * CreateYou Designer - Modern Compact Buttons
 * v7.20.5 - Modern Button Styles
 */

/* ===== COMPACT BUTTONS ===== */
.cy-btn-block,
.cy-tool-btn,
.cy-effect-btn,
.cy-history-btn,
.cy-icon-btn,
.cy-nudge-btn,
.cy-controls-bar button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ===== PRIMARY BUTTONS (Upload, Templates) ===== */
.cy-btn-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    padding: 10px 16px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cy-btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Upload Button Special */
#cy-upload-btn {
    background: #fff;
    border: 2px dashed #667eea;
    color: #667eea;
    box-shadow: none;
}

#cy-upload-btn:hover {
    background: #f8f9ff;
    border-color: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Templates Button */
#cy-templates-btn {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#cy-templates-btn:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===== TOOL BUTTONS (Bold, Italic, Font) ===== */
.cy-tool-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 6px 10px;
    font-size: 12px;
    min-height: 32px;
}

.cy-tool-btn:hover {
    background: #e9ecef;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cy-tool-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Font Button */
#cy-font-btn {
    flex: 1;
    text-align: left;
    padding-left: 10px;
}

/* Bold/Italic Buttons */
#cy-btn-bold,
#cy-btn-italic {
    min-width: 36px;
    font-weight: 700;
}

#cy-btn-bold:hover,
#cy-btn-italic:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* ===== HISTORY BUTTONS (Undo/Redo) ===== */
.cy-history-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.cy-history-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.cy-history-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* ===== EFFECT BUTTONS ===== */
.cy-effect-btn {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 10px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cy-effect-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.cy-effect-btn.stroke {
    background: linear-gradient(135deg, #00AEEF 0%, #0089BE 100%);
    color: #fff;
    border-color: #00AEEF;
}

.cy-effect-btn.stroke:hover {
    background: linear-gradient(135deg, #0089BE 0%, #006a9a 100%);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

.cy-effect-btn.remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #ef4444;
}

.cy-effect-btn.remove:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Effects Grid */
.cy-effects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

/* ===== CONTROLS BAR BUTTONS (Top Bar) ===== */
.cy-controls-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    justify-content: center;
}

.cy-controls-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    padding: 6px 8px;
    transition: all 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cy-controls-bar button:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.cy-controls-bar button:active {
    transform: scale(0.95);
}

.cy-controls-bar span.sep {
    color: #ddd;
    margin: 0 4px;
}

/* Flip Button Special */
#cy-flip-btn {
    background: linear-gradient(135deg, #00AEEF 0%, #0089BE 100%);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

#cy-flip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

/* ===== PROPERTIES PANEL BUTTONS ===== */
.cy-icon-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 8px;
    font-size: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.cy-icon-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.cy-icon-btn.delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

.cy-icon-btn.center-btn {
    background: linear-gradient(135deg, #00AEEF 0%, #0089BE 100%);
    color: #fff;
    border-color: #00AEEF;
}

.cy-icon-btn.center-btn:hover {
    background: linear-gradient(135deg, #0089BE 0%, #006a9a 100%);
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.4);
}

/* Nudge Buttons */
.cy-nudge-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    padding: 6px;
    font-size: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.cy-nudge-btn:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* ===== ADD TEXT BUTTON ===== */
#cy-add-text-btn {
    background: linear-gradient(135deg, #00AEEF 0%, #0089BE 100%);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
    transition: all 0.2s;
}

#cy-add-text-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.4);
}

/* ===== SAVE COLOR BUTTON ===== */
.cy-save-color-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cy-save-color-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

/* ===== COMPACT SPACING ===== */
.cy-panel {
    padding: 14px;
    margin-bottom: 12px;
}

.cy-section {
    margin-bottom: 10px; /* Csökkentve: 16px → 10px */
}

/* ===== BOTTOM PANEL (Mockup alatt, kombinált) ===== */
.cy-bottom-panel {
    width: 100%;
    margin-top: 16px;
}

.cy-bottom-panel-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cy-bottom-section {
    flex: 1;
    min-width: 0;
}

.cy-bottom-label {
    display: block;
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Effects Section - Kompakt */
.cy-effects-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cy-stroke-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cy-effects-buttons-compact {
    display: flex;
    gap: 6px;
}

.cy-effect-btn-compact {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.cy-effect-btn-compact:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: translateY(-1px);
}

.cy-effect-btn-compact.stroke {
    background: linear-gradient(135deg, #00AEEF 0%, #0089BE 100%);
    color: #fff;
    border-color: #00AEEF;
}

.cy-effect-btn-compact.remove {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #ef4444;
}

/* Properties Section - Kompakt */
.cy-prop-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cy-prop-row-compact {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.cy-prop-group-compact {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 8px;
    border-radius: 6px;
}

.cy-range-compact {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
}

.cy-nudge-container-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cy-nudge-controls-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 72px;
}

.cy-nudge-btn-compact {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 4px;
    font-size: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cy-nudge-btn-compact:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.cy-nudge-btn-compact.up {
    grid-column: 2;
}

.cy-nudge-btn-compact.left {
    grid-column: 1;
    grid-row: 2;
}

.cy-nudge-btn-compact.right {
    grid-column: 3;
    grid-row: 2;
}

.cy-nudge-btn-compact.down {
    grid-column: 2;
    grid-row: 2;
}

.cy-icon-btn-compact {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 6px;
    font-size: 11px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.cy-icon-btn-compact:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.cy-icon-btn-compact.delete:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.cy-icon-btn-compact.center-btn {
    background: linear-gradient(135deg, #00AEEF 0%, #0089BE 100%);
    color: #fff;
    border-color: #00AEEF;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .cy-bottom-panel {
        margin-top: 12px;
    }
    
    .cy-bottom-panel-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .cy-bottom-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 14px;
        border: 2px solid #e9ecef;
    }
    
    .cy-bottom-label {
        font-size: 13px !important;
        font-weight: 800 !important;
        color: #333 !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px;
        border-bottom: 2px solid #667eea;
        display: block;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    /* Effects Section - Mobile */
    .cy-effects-compact {
        gap: 12px;
    }
    
    .cy-stroke-compact {
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        gap: 8px;
        align-items: center;
    }
    
    .cy-stroke-compact label {
        font-size: 11px;
        font-weight: 600;
        color: #495057;
        margin-right: 8px;
    }
    
    .cy-stroke-compact input[type="color"] {
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px;
        border: 2px solid #dee2e6;
    }
    
    .cy-stroke-compact input[type="range"] {
        flex: 1;
        max-width: none !important;
        height: 6px;
    }
    
    .cy-stroke-compact #cy-stroke-width-val {
        font-size: 12px !important;
        min-width: 36px;
        font-weight: 700;
        color: #667eea;
    }
    
    .cy-effect-btn-compact {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-width: 44px !important;
        height: 44px !important;
        border-radius: 8px;
        font-weight: 600;
    }
    
    .cy-effects-buttons-compact {
        gap: 10px;
        justify-content: space-between;
    }
    
    /* Properties Section - Mobile */
    .cy-prop-header-compact {
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e9ecef;
    }
    
    .cy-prop-row-compact {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .cy-prop-group-compact {
        background: #fff;
        padding: 10px 12px !important;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cy-prop-group-compact i {
        font-size: 14px !important;
        color: #667eea;
    }
    
    .cy-range-compact {
        width: 100%;
        height: 6px !important;
    }
    
    .cy-nudge-container-compact {
        gap: 12px;
        justify-content: space-between;
    }
    
    .cy-icon-btn-compact {
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
        border-radius: 8px;
    }
    
    .cy-nudge-controls-compact {
        width: 88px;
        gap: 6px;
    }
    
    .cy-nudge-btn-compact {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 6px;
    }
    
    /* Button labels on mobile */
    .cy-btn-label-mobile {
        display: none;
    }
    
    @media (max-width: 768px) {
        .cy-effect-btn-compact,
        .cy-icon-btn-compact.center-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }
        
        .cy-btn-label-mobile {
            display: block;
            font-size: 9px;
            font-weight: 600;
            margin-top: 2px;
        }
    }
    
    /* Separator between sections */
    .cy-bottom-section + .cy-bottom-section {
        margin-top: 0;
        border-top: 3px solid #667eea;
        padding-top: 16px;
    }
    
    /* Visual separator line */
    @media (max-width: 768px) {
        .cy-bottom-section + .cy-bottom-section::before {
            content: '';
            display: block;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #667eea, transparent);
            margin: -16px 0 16px -14px;
            width: calc(100% + 28px);
        }
    }
}

/* ===== UPLOAD/TEMPLATES BAR (Mockup fölé) ===== */
.cy-upload-templates-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    justify-content: center;
    align-items: center;
}

.cy-upload-templates-btn {
    flex: 1;
    max-width: 200px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cy-upload-templates-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cy-upload-templates-btn i {
    font-size: 14px;
}

.cy-upload-templates-btn:first-child {
    background: #fff;
    border: 2px dashed #667eea;
    color: #667eea;
}

.cy-upload-templates-btn.cy-templates-btn {
    background: #333;
    color: #fff;
}

/* Desktop: show desktop text, hide mobile text */
.cy-btn-text-desktop {
    display: inline;
}

.cy-btn-text-mobile {
    display: none !important;
}

/* Mobile */
@media (max-width: 768px) {
    .cy-upload-templates-bar {
        gap: 8px;
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cy-upload-templates-btn {
        flex: 1;
        min-width: 140px;
        max-width: 160px;
        padding: 12px 16px;
        font-size: 13px;
        font-weight: 700;
        min-height: 48px; /* Better touch target */
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    
    .cy-upload-templates-btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .cy-upload-templates-btn i {
        font-size: 16px;
    }
    
    /* Mobile: hide desktop text, show mobile text - STRONG RULES */
    .cy-btn-text-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .cy-btn-text-mobile {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-weight: 700 !important;
        position: relative !important;
    }
    
    /* Upload button mobile optimization */
    #cy-upload-btn {
        background: rgba(255, 255, 255, 0.98);
        border-width: 2.5px;
        box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
    }
    
    #cy-upload-btn:active {
        background: rgba(102, 126, 234, 0.1);
        border-style: solid;
    }
    
    /* Templates button mobile optimization */
    #cy-templates-btn {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    }
    
    #cy-templates-btn:active {
        background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    }
    
    /* Hide properties panel on mobile - COMPLETE HIDING */
    .cy-properties-section,
    #cy-properties-panel,
    .cy-bottom-section.cy-properties-section,
    div[id="cy-properties-panel"],
    .cy-prop-header-compact,
    .cy-prop-row-compact,
    .cy-prop-group-compact,
    .cy-nudge-container-compact,
    .cy-nudge-controls-compact {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Hide the entire properties section including its container */
    .cy-bottom-panel-content .cy-properties-section,
    .cy-bottom-panel-content #cy-properties-panel {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* If bottom panel only contains properties section, hide it completely */
    .cy-bottom-panel-content:has(.cy-properties-section:only-child),
    .cy-bottom-panel-content:has(#cy-properties-panel:only-child) {
        display: none !important;
    }
}

/* Extra small mobile devices (portrait phones) */
@media (max-width: 480px) {
    .cy-upload-templates-bar {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .cy-upload-templates-btn {
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 10px 8px;
        font-size: 11px;
        min-height: 44px;
        gap: 4px;
    }
    
    .cy-upload-templates-btn i {
        font-size: 14px;
    }
    
    /* Extra small: ensure mobile text is shown */
    .cy-btn-text-desktop {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .cy-btn-text-mobile {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 11px;
        font-weight: 700 !important;
    }
}

/* ===== COMBINED PANELS STYLING ===== */
.cy-product-options {
    padding: 16px;
}

.cy-option-group {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.cy-option-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cy-sub-label {
    display: block;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cy-tools-panel {
    padding: 16px;
}

.cy-tools-panel hr {
    margin: 16px 0;
    border-color: #eee;
}

.cy-label {
    font-size: 11px;
    margin-bottom: 8px;
    padding-bottom: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* CRITICAL: Ensure overlays don't block */
    .cy-loading-overlay:not(.active),
    .cy-mobile-overlay:not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    /* Ensure body is interactive */
    body {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }
    
    .cy-btn-block,
    .cy-tool-btn,
    .cy-effect-btn {
        font-size: 12px;
        padding: 8px 10px;
        touch-action: manipulation;
        pointer-events: auto;
    }
    
    .cy-controls-bar {
        padding: 4px 12px;
        gap: 6px;
        pointer-events: auto;
    }
    
    .cy-controls-bar button {
        width: 28px;
        height: 28px;
        font-size: 12px;
        touch-action: manipulation;
        pointer-events: auto;
    }
}

