/* Components CSS = Buttons, sliders, toggles, badges, tooltips */

/* Slider styles */
.comparison-slider {
    cursor: ew-resize;
}

.lut-card {
    transition: all 0.2s ease;
}

.lut-card:hover {
    transform: translateY(-2px);
    opacity: 1 !important;
}

.lut-card.selected {
    opacity: 1 !important;
}

/* Drag and drop state */
.drag-over {
    /*    border: 3px dashed var(--primary) !important; */
    background: radial-gradient(circle at center, rgba(0, 122, 255, 0.2), rgba(0, 122, 255, 0.05)) !important;
    box-shadow: inset 0 0 60px rgba(0, 122, 255, 0.3), 0 0 40px rgba(0, 122, 255, 0.4) !important;
    animation: pulse-border 2s ease-in-out infinite !important;
}

/* Onboarding Tooltip */
#ab-tooltip {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

#ab-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Coming Soon Tooltip */
#tab-upload {
    position: relative;
}

#tab-upload:hover::after {
    content: "Feature Coming Soon";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e1e;
    color: #f472b6;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border: 1px solid rgba(244, 114, 182, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    pointer-events: none;
}

#tab-upload:hover::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e1e1e;
    z-index: 100;
    pointer-events: none;
}

/* Color Space Badge Pill */
#cs-badge {
    display: none;
}

#cs-badge.visible {
    display: flex;
}

/* Split Screen Slider Handle */
#split-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: white;
    cursor: ew-resize;
    z-index: 30;
    display: none;
}

#split-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='m15 19l-7-7l7-7l1.05 1.05L10.1 12l5.95 5.95L15 19Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Security Modal Styles */
#security-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.8);
    backdrop-blur: 8px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#security-modal.visible {
    display: flex;
    opacity: 1;
}

#security-modal-content {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#security-modal.visible #security-modal-content {
    transform: scale(1);
}

/* Persistence Tooltip */
.persist-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    padding: 12px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #a1a1aa;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.persist-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(20, 20, 20, 0.9) transparent transparent transparent;
}

.persist-group:hover .persist-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Waveform Ping-Pong Layers */
.waveform-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease-out;
}

.waveform-layer.active {
    opacity: 0.85;
}

.waveform-layer.inactive {
    opacity: 0;
}

.waveform-layer.static-grid {
    z-index: 0;
    opacity: 1;
    transition: none;
}

/* Waveform Wrapper Positioning */
#waveform-wrapper {
    width: 320px;
    height: 160px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 30;
}

/* Pro Badge Styling */
.pro-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #ec4899;
    /* Pink-500 */
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    display: inline-block;
    line-height: 1.2;
}

/* Pulse Attention */
.pulse-attention {
    animation: intense-pink-pulse 2s ease-in-out infinite !important;
    background-color: rgba(244, 114, 182, 0.1) !important;
    border-color: rgba(244, 114, 182, 0.4) !important;
}

.pulse-attention #section-label-1 {
    color: #f472b6 !important;
}

.pulse-attention #color-space-select {
    border-color: rgba(244, 114, 182, 0.4) !important;
}

/* Action Required - Pink Alert for LUT Library */
.action-required {
    animation: intense-pink-pulse 2s ease-in-out infinite !important;
    background-color: rgba(244, 114, 182, 0.1) !important;
    border-color: rgba(244, 114, 182, 0.4) !important;
}

.action-required .section-label {
    color: #f472b6 !important;
}

.action-required #select-folder-btn {
    border-color: rgba(244, 114, 182, 0.4) !important;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.3) !important;
}