/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
  
::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 10px;
}
  
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.7);
    border-radius: 10px;
}
  
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 1);
}

/* Saved idea cards */
.saved-idea-card {
    position: relative;
    overflow: hidden;
}

.saved-idea-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
    z-index: 0;
}

.saved-idea-card > * {
    position: relative;
    z-index: 1;
}

/* Animation for the generate button */
.generate-btn {
    position: relative;
    overflow: hidden;
}

.generate-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shimmer 4s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* Script summary styles */
.script-summary-card {
    border-left: 4px solid #ec4899;
}

/* Veo3 prompts */
.prompt-card {
    border-left: 3px solid;
}

.prompt-section-title {
    position: relative;
    display: inline-block;
}

.prompt-section-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.copied-message {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(99, 102, 241, 0.9);
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.copied-message.show {
    opacity: 1;
    animation: fadeOut 1.5s forwards 0.5s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Range input styling */
input[type="range"] {
    height: 6px;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ec4899;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

/* Loading animation */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #ec4899;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




