﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: auto; /* FIX: allow default scrolling */
}

/* FIX: dynamic height for real mobile browsers */
.mud-layout {
    height: 100dvh !important;
}

/* Keep Mud main content scrollable */
.mud-main-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth mobile scrolling */
    scrollbar-width: none; /* Firefox */
}

    .mud-main-content::-webkit-scrollbar {
        width: 0; /* hide scrollbar */
    }



* {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, fill 0.5s ease, stroke 0.5s ease;
}


.fade-in {
    opacity: 1;
    animation: fadeIn 0.3s ease-in;
}

.fade-out {
    opacity: 0;
    animation: fade-out 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

.event-card {
    margin: 16px; /* increase if needed */
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
}


.card-header {
    background-color: #8e2de2; /* Purple */
    padding: 16px;
}

.card-body {
    background-color: #f5f5f5;
    flex-grow: 1;
}

.card-footer {
    background-color: #f5f5f5;
}

.action-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.table-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}


/* Hide on screens smaller than 768px */
@media (max-width: 767px) {
    .hide-on-mobile {
        display: none !important;
    }
}
