/* ===== New Advanced Features Styles ===== */

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.fps-counter {
    font-size: 12px;
    font-weight: 600;
    color: #4ade80;
    font-family: 'Courier New', monospace;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
    outline: none;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Animation Controls */
.animation-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.control-btn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.control-btn:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

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

.control-btn.paused {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.time-display {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 16px;
}

.mini-select {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;

    transition: all 0.3s ease;
    outline: none;
}

.mini-select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.mini-select option {
    background: #1a1a1f;
    color: #ffffff;
}

.action-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;

    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

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

/* Preset Actions */
.preset-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.mini-btn {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;

    transition: all 0.3s ease;
    outline: none;
}

.mini-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

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

/* My Presets Panel */
.my-presets-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;

    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 14px;
    }

    to {
        opacity: 1;
        max-height: 300px;
        padding: 14px;
    }
}

.presets-list {
    margin-bottom: 12px;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding: 20px;
    font-style: italic;
}

.preset-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;

    transition: all 0.3s ease;
}

.preset-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.preset-item-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.preset-item-colors {
    display: flex;
    gap: 4px;
    margin: 0 10px;
}

.preset-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preset-item-actions {
    display: flex;
    gap: 4px;
}

.preset-item-btn {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.2s ease;
    outline: none;
}

.preset-item-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.preset-item-btn.delete:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.preset-panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Fullscreen Mode */
.control-panel.fullscreen-hidden {
    transform: translateY(-50%) translateX(400px);
    opacity: 0;
    pointer-events: none;
}

/* Performance Warning */
.fps-counter.warning {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.fps-counter.critical {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}