/* TrakEvent V2 - Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Loading spinner */
.spinner {
    border: 3px solid #e2e8f0;
    border-top: 3px solid #0ea5e9;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card hover effect */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
}

/* Table row selection */
.table-row-selected {
    background-color: #e0f2fe !important;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Event image aspect ratio */
.event-image {
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Floating powered by badge */
.powered-by-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    animation: floatIn 0.6s ease-out 0.5s both;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.powered-by-float a {
    display: block;
    background: white;
    padding: 10px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.powered-by-float a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.powered-by-float img {
    height: 24px;
    width: auto;
    display: block;
}

@media (max-width: 767.98px) {
    .powered-by-float {
        bottom: 15px;
        right: 15px;
    }

    .powered-by-float a {
        padding: 8px 12px;
    }

    .powered-by-float img {
        height: 20px;
    }
}

/* Status badges */
.badge-open { background-color: #dcfce7; color: #166534; }
.badge-closed { background-color: #fee2e2; color: #991b1b; }
.badge-upcoming { background-color: #fef9c3; color: #854d0e; }
.badge-active { background-color: #dcfce7; color: #166534; }
.badge-inactive { background-color: #f3f4f6; color: #6b7280; }
