/* 🎨 COSMIC COLOR PICKER - DREAM STYLES 🎨 */

/* Root Variables */
:root {
    --cosmic-primary: #6c5ce7;
    --cosmic-secondary: #fd79a8;
    --cosmic-accent: #55ddff;
    --cosmic-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Cosmic Background System */
.color-picker-cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.cosmic-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255,255,255,0.4), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: cosmicDrift 20s linear infinite;
}

@keyframes cosmicDrift {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

.color-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(108, 92, 231, 0.1) 0%, 
        transparent 25%, 
        rgba(253, 121, 168, 0.1) 50%, 
        transparent 75%, 
        rgba(85, 221, 255, 0.1) 100%);
    animation: waveFlow 15s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.floating-colors {
    position: absolute;
    width: 100%;
    height: 100%;
}

.color-orb {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color);
    opacity: 0.3;
    filter: blur(30px);
    animation: orbFloat 12s ease-in-out infinite;
}

.color-orb:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.color-orb:nth-child(2) { top: 20%; right: 15%; animation-delay: -2s; }
.color-orb:nth-child(3) { bottom: 30%; left: 20%; animation-delay: -4s; }
.color-orb:nth-child(4) { bottom: 20%; right: 25%; animation-delay: -6s; }
.color-orb:nth-child(5) { top: 60%; left: 50%; animation-delay: -8s; }
.color-orb:nth-child(6) { top: 40%; right: 30%; animation-delay: -10s; }

@keyframes orbFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    33% { 
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.6;
    }
    66% { 
        transform: translateY(20px) translateX(-15px) scale(0.8);
        opacity: 0.4;
    }
}

/* Main Container */
.color-picker-container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(1px);
}

/* Cosmic Header */
.color-picker-header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.cosmic-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.title-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 3s ease-in-out infinite;
}

.title-accent {
    background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.2em;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.3) saturate(1.5); }
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cosmic-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Color Workshop */
.color-workshop {
    padding: 40px 0 80px;
}

/* Color Canvas */
.color-canvas-section {
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
}

.color-canvas {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-strong);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.6s var(--animation-smooth);
}

.color-canvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: canvasShine 4s ease-in-out infinite;
}

@keyframes canvasShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.canvas-preview {
    position: relative;
    margin-bottom: 30px;
}

.preview-sphere {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2980B9 0%, #1e5f8f 100%);
    margin: 0 auto;
    position: relative;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.3),
        inset -10px -10px 30px rgba(0,0,0,0.3),
        inset 10px 10px 30px rgba(255,255,255,0.1);
    transition: all 0.8s var(--animation-bounce);
    animation: sphereFloat 6s ease-in-out infinite;
}

.preview-sphere::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
}

@keyframes sphereFloat {
    0%, 100% { transform: translateY(0px) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(180deg); }
}

.preview-reflection {
    width: 180px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(41, 128, 185, 0.3) 0%, transparent 70%);
    margin: 20px auto 0;
    border-radius: 50%;
    filter: blur(8px);
    animation: reflectionPulse 6s ease-in-out infinite;
}

@keyframes reflectionPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.color-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    animation: nameGlow 4s ease-in-out infinite;
}

@keyframes nameGlow {
    0%, 100% { text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
    50% { text-shadow: 0 2px 20px rgba(85, 221, 255, 0.5); }
}

.color-emotion {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    letter-spacing: 2px;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.control-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.control-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(85, 221, 255, 0.5);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.panel-title i {
    color: var(--cosmic-accent);
    font-size: 1.5rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Spectrum Wheel */
.spectrum-wheel-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.spectrum-wheel {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        hsl(0, 100%, 50%) 0deg,
        hsl(60, 100%, 50%) 60deg,
        hsl(120, 100%, 50%) 120deg,
        hsl(180, 100%, 50%) 180deg,
        hsl(240, 100%, 50%) 240deg,
        hsl(300, 100%, 50%) 300deg,
        hsl(0, 100%, 50%) 360deg
    );
    position: relative;
    cursor: crosshair;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.3),
        inset 0 0 0 10px rgba(255,255,255,0.1);
    transition: all 0.3s var(--animation-smooth);
}

.spectrum-wheel:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        inset 0 0 0 10px rgba(255,255,255,0.2);
}

.wheel-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.3);
    pointer-events: none;
    transition: all 0.2s var(--animation-smooth);
    top: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.center-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2980B9;
    transition: all 0.3s var(--animation-smooth);
}

.saturation-brightness-area {
    width: 140px;
    height: 140px;
    background: linear-gradient(to right, white, transparent),
                linear-gradient(to top, black, transparent);
    position: relative;
    cursor: crosshair;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    transition: all 0.3s var(--animation-smooth);
}

.saturation-brightness-area:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.sb-cursor {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    pointer-events: none;
    transition: all 0.2s var(--animation-smooth);
    top: 20%;
    left: 80%;
    transform: translate(-50%, -50%);
}

/* Precision Controls */
.precision-controls {
    margin-bottom: 30px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-container {
    position: relative;
    margin-bottom: 10px;
}

.cosmic-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: transparent;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    -webkit-appearance: none;
}

.cosmic-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s var(--animation-smooth);
    position: relative;
}

.cosmic-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    transform: translateY(-50%);
    z-index: 1;
}

.hue-track {
    background: linear-gradient(to right, 
        hsl(0, 100%, 50%) 0%,
        hsl(60, 100%, 50%) 16.66%,
        hsl(120, 100%, 50%) 33.33%,
        hsl(180, 100%, 50%) 50%,
        hsl(240, 100%, 50%) 66.66%,
        hsl(300, 100%, 50%) 83.33%,
        hsl(0, 100%, 50%) 100%
    );
}

.sat-track {
    background: linear-gradient(to right, hsl(210, 0%, 45%), hsl(210, 100%, 45%));
}

.light-track {
    background: linear-gradient(to right, hsl(210, 80%, 0%), hsl(210, 80%, 50%), hsl(210, 80%, 100%));
}

.cosmic-input {
    width: 80px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s var(--animation-smooth);
}

.cosmic-input:focus {
    outline: none;
    border-color: var(--cosmic-accent);
    box-shadow: 0 0 0 2px rgba(85, 221, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

/* Format Outputs */
.format-outputs {
    display: grid;
    gap: 15px;
}

.format-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-group label {
    min-width: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cosmic-accent);
}

.format-input-container {
    flex: 1;
    display: flex;
    gap: 5px;
}

.format-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s var(--animation-smooth);
}

.format-input:focus {
    outline: none;
    border-color: var(--cosmic-accent);
    box-shadow: 0 0 0 2px rgba(85, 221, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.copy-btn {
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

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

.copy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
}

.copy-btn:hover::before {
    left: 100%;
}

/* Harmony Panel */
.harmony-types {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.harmony-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
    position: relative;
    overflow: hidden;
}

.harmony-btn:hover,
.harmony-btn.active {
    background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.harmony-colors {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.harmony-color {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--animation-bounce);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.harmony-color:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.harmony-color.active {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.harmony-color::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.harmony-color:hover::before {
    opacity: 1;
}

/* Advanced Features */
.advanced-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 25px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--animation-smooth);
}

.feature-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

/* Color History */
.color-history {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.history-color {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--animation-bounce);
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    position: relative;
}

.history-color:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.add-to-history {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.add-to-history:hover {
    background: rgba(85, 221, 255, 0.2);
    border-color: var(--cosmic-accent);
    color: var(--cosmic-accent);
}

/* Gradient Generator */
.gradient-preview {
    width: 100%;
    height: 80px;
    border-radius: 15px;
    background: linear-gradient(45deg, #2980B9, #8e44ad);
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.gradient-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.gradient-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.cosmic-select {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
}

.cosmic-select:focus {
    outline: none;
    border-color: var(--cosmic-accent);
    box-shadow: 0 0 0 2px rgba(85, 221, 255, 0.3);
}

.angle-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.angle-control label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

#angleValue {
    min-width: 40px;
    color: var(--cosmic-accent);
    font-weight: 600;
}

.cosmic-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    border: none;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cosmic-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.4);
}

.cosmic-btn:active {
    transform: translateY(-1px);
}

.cosmic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.cosmic-btn:hover::before {
    left: 100%;
}

/* Accessibility Panel */
.contrast-test {
    margin-bottom: 25px;
}

.contrast-preview {
    background: #2980B9;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s var(--animation-smooth);
}

.contrast-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.contrast-ratio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.ratio-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--cosmic-accent);
}

.ratio-level {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #27ae60;
    color: white;
}

.blindness-previews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.blindness-preview {
    text-align: center;
}

.blindness-preview span {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.preview-swatch {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    background: #2980B9;
    transition: all 0.3s var(--animation-smooth);
}

/* Export Section */
.export-section {
    text-align: center;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title i {
    color: var(--cosmic-accent);
    animation: iconRotate 4s linear infinite;
}

@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.export-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.export-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--animation-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.export-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

.export-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.8s;
}

.export-btn:hover::before {
    left: 100%;
}

/* Floating Action Button */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
    transition: all 0.3s var(--animation-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(108, 92, 231, 0.6);
}

.main-fab {
    animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fab-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--animation-smooth);
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-fab {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

/* Toast Notification */
.cosmic-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    box-shadow: var(--shadow-strong);
    transform: translateX(100%);
    transition: all 0.5s var(--animation-bounce);
    z-index: 10000;
    min-width: 250px;
}

.cosmic-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    color: #27ae60;
    font-size: 1.2rem;
}

.toast-progress {
    height: 3px;
    background: linear-gradient(90deg, var(--cosmic-primary), var(--cosmic-secondary));
    border-radius: 2px;
    margin-top: 10px;
    transform-origin: left;
    animation: progressBar 3s linear forwards;
}

@keyframes progressBar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmic-title {
        font-size: 3rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .spectrum-wheel-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .spectrum-wheel,
    .saturation-brightness-area {
        width: 120px;
        height: 120px;
    }
    
    .preview-sphere {
        width: 150px;
        height: 150px;
    }
    
    .advanced-features {
        grid-template-columns: 1fr;
    }
    
    .export-options {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .cosmic-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .color-canvas {
        padding: 20px;
    }
    
    .preview-sphere {
        width: 120px;
        height: 120px;
    }
    
    .control-panel {
        padding: 20px;
    }
    
    .gradient-options {
        grid-template-columns: 1fr;
    }
    
    .blindness-previews {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--cosmic-primary), var(--cosmic-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--cosmic-secondary), var(--cosmic-primary));
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 255, 255, 0.8);
    }
    
    .control-panel,
    .color-canvas,
    .feature-panel {
        border-width: 2px;
    }
}