/* Prototype Theme - Shared Styles */

:root {
    --primary: #ef4444; /* Neon Red */
    --primary-container: #ef4444; /* Neon Red */
    --secondary: #dc2626; /* Neon Orange */
    --secondary-container: #dc2626; /* Neon Orange */
    --tertiary: #2563eb; /* Cyber Purple */
    --tertiary-container: #2563eb; /* Cyber Purple */
    --cyber-green: #eab308; /* Emerald Green */
    --cyber-purple: #2563eb; /* Cyber Purple */
    --background: #000000;
    --surface: #0e0e11;
    --on-surface: #e8e0ed;
    --on-surface-variant: #ccc3d7;
    --error: #ffb4ab;
    --error-container: #93000a;
}

body {
    background-color: #000000;
    background-image: 
        linear-gradient(rgba(239, 68, 68, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    color: #e8e0ed;
    zoom: 0.85;
    -moz-transform: scale(0.85);
    -moz-transform-origin: 0 0;
}

.glass-card {
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.neon-glow-purple {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

.neon-glow-primary {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.grid-overlay {
    background-image: linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 32px 32px;
}

.pulse-indicator {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes line-trace {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}
@keyframes heartbeat-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
@keyframes bar-grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.animate-line-trace {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: line-trace 3s ease-out forwards;
}
.animate-heartbeat {
    animation: heartbeat-glow 2s ease-in-out infinite;
}
.animate-bar-grow {
    transform-origin: bottom;
    animation: bar-grow 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Custom Slider */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

/* Premium Dropdowns */
select {
    background-color: rgba(0, 0, 0, 0.95) !important;
    color: #e8e0ed !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.75rem !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff4b4b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.25rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

select:focus {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2) !important;
    outline: none !important;
}

select option {
    background-color: #0e0e11 !important;
    color: #e8e0ed !important;
    padding: 1rem !important;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #94a3b8;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

input:checked + .slider:before {
    transform: translateX(24px);
    background-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Dropdown Visibility */
.dropdown-content {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Premium Text Inputs & Textareas */
.glow-input {
    width: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
}

.glow-input:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    background: rgba(0, 0, 0, 0.65) !important;
}

.glow-input:focus {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.glow-input::placeholder {
    color: rgba(148, 163, 184, 0.4) !important;
}

/* Dropdown override focus states */
select:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
select:focus {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
    outline: none !important;
}
