/* Dypsis.ai Demo Template - Custom Styles */

/* ============================================
   ANIMATIONS
   ============================================ */

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.animate-bounce {
    animation: bounce 0.6s ease-in-out infinite;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 244, 180, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 244, 180, 0.5);
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C8F4B4;
    outline-offset: 2px;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(200, 244, 180, 0.15);
}

/* ============================================
   FORM ELEMENTS (if needed)
   ============================================ */

/* Text inputs */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: #C8F4B4;
    background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* File input */
input[type="file"] {
    display: none;
}

/* ============================================
   DRAG AND DROP ZONE (common in demos)
   ============================================ */

.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #C8F4B4;
    background: rgba(200, 244, 180, 0.1);
}

.drop-zone.drag-over {
    transform: scale(1.02);
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #C8F4B4, #73A15F);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ============================================
   CONFIDENCE BARS (for AI results)
   ============================================ */

.confidence-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    width: 100px;
}

.confidence-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.confidence-bar-fill.high {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.confidence-bar-fill.medium {
    background: linear-gradient(90deg, #eab308, #ca8a04);
}

.confidence-bar-fill.low {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    z-index: 50;
    animation: fadeIn 0.3s ease;
}

.toast-success {
    background: #22c55e;
}

.toast-error {
    background: #ef4444;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .drop-zone {
        padding: 2rem 1rem;
    }
    
    .drop-zone:hover {
        transform: none;
    }
}
