/* Custom neon effects and animations */
.neon-text {
    text-shadow: 
        0 0 5px #00ffff,
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
    animation: neon-flicker 2s infinite alternate;
}

.neon-glow {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

.neon-border {
    border: 2px solid #00ffff;
    box-shadow: 
        0 0 10px #00ffff,
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    animation: border-glow 4s ease-in-out infinite alternate;
}

.digital-clock-container {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(20, 20, 50, 0.8));
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #00ffff;
    box-shadow: 
        0 0 20px #00ffff,
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.digital-clock {
    color: #00ffff;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid #00ffff;
    display: inline-block;
    min-width: 300px;
}

.slider {
    appearance: none;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff00ff 0%, #00ffff 50%, #ffff00 100%);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffff;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px #00ffff;
}

@keyframes neon-flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow: 
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 40px #00ffff;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

@keyframes glow-pulse {
    from {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor;
    }
    to {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
    }
}

@keyframes border-glow {
    from {
        box-shadow: 
            0 0 10px #00ffff,
            inset 0 0 10px rgba(0, 255, 255, 0.1);
    }
    to {
        box-shadow: 
            0 0 20px #00ffff,
            0 0 30px #00ffff,
            inset 0 0 20px rgba(0, 255, 255, 0.2);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ff44ff, #44ffff);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .digital-clock {
        font-size: 2.5rem !important;
        min-width: 250px;
        padding: 10px 20px;
    }
    
    .neon-text {
        font-size: 2.5rem !important;
    }
}

/* Button hover effects */
button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Input focus effects */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Prose styling for story content */
.prose-invert {
    color: #e5e7eb;
}

.prose-invert p {
    margin-bottom: 1rem;
    line-height: 1.7;
}