/* Custom styles for EventSpark */


/* Flash Message Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
}
/* Alert styles */
.alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Confetti animation for celebration theme */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f472b6;
    animation: confetti-fall 3s linear infinite;
}

.confetti-1 {
    left: 10%;
    animation-delay: 0s;
    background: #f472b6;
}

.confetti-2 {
    left: 30%;
    animation-delay: 1s;
    background: #a855f7;
}

.confetti-3 {
    left: 50%;
    animation-delay: 2s;
    background: #3b82f6;
}

.confetti-4 {
    left: 70%;
    animation-delay: 0.5s;
    background: #10b981;
}

.confetti-5 {
    left: 90%;
    animation-delay: 1.5s;
    background: #f59e0b;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Form validation styles */
.form-error {
    @apply border-red-300 focus:border-red-500 focus:ring-red-500;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Custom button hover effects */
.btn-hover-lift {
    transition: transform 0.2s ease-in-out;
}

.btn-hover-lift:hover {
    transform: translateY(-2px);
}

/* Table responsive wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom file input styling */
input[type="file"] {
    @apply block w-full text-sm text-gray-500 file:mr-4 file:py-2 file:px-4 file:rounded-md file:border-0 file:text-sm file:font-semibold file:bg-purple-50 file:text-purple-700 hover:file:bg-purple-100;
}