/* Splash Screen Container */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

#splash-screen.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Logo Animation - Fade In */
.splash-logo {
    font-family: 'Lobster', cursive;
    font-size: 5rem;
    color: #d81b60;
    opacity: 0;
    animation: fadeInLogo 1.5s ease-in forwards;
    margin-bottom: 2rem;
    z-index: 10;
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 3D Text Animation */
.splash-text {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    text-shadow:
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0, 0, 0, .1),
        0 0 5px rgba(0, 0, 0, .1),
        0 1px 3px rgba(0, 0, 0, .3),
        0 3px 5px rgba(0, 0, 0, .2),
        0 5px 10px rgba(0, 0, 0, .25),
        0 10px 10px rgba(0, 0, 0, .2),
        0 20px 20px rgba(0, 0, 0, .15);
    opacity: 0;
    animation: popInText 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards 1.5s;
    /* Delays after logo */
    z-index: 10;
    padding: 0 1rem;
}

@keyframes popInText {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Floating Elements (Fruits/Veg) */
.floating-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

/* Define animations for different directions */
@keyframes floatFromLeft {
    0% {
        left: -100px;
        opacity: 0;
        transform: rotate(0deg);
    }

    100% {
        left: 20%;
        opacity: 0.6;
        transform: rotate(360deg);
    }
}

@keyframes floatFromRight {
    0% {
        right: -100px;
        opacity: 0;
        transform: rotate(0deg);
    }

    100% {
        right: 20%;
        opacity: 0.6;
        transform: rotate(-360deg);
    }
}

@keyframes floatFromTop {
    0% {
        top: -100px;
        opacity: 0;
        transform: rotate(0deg);
    }

    100% {
        top: 20%;
        opacity: 0.6;
        transform: rotate(180deg);
    }
}

@keyframes floatFromBottom {
    0% {
        bottom: -100px;
        opacity: 0;
        transform: rotate(0deg);
    }

    100% {
        bottom: 20%;
        opacity: 0.6;
        transform: rotate(-180deg);
    }
}

/* Specific item classes will be assigned in JS or HTML */

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    animation: slideInToast 0.3s ease-out forwards;
    min-width: 300px;
    border-left: 5px solid #d81b60;
}

.toast.hide {
    animation: slideOutToast 0.3s ease-in forwards;
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.toast-message {
    font-size: 0.85rem;
    color: #ddd;
}

/* Admin Stats Badge in Header */
.admin-stats-container {
    display: flex;
    gap: 4px;
    /* Reduced gap */
    align-items: center;
    margin-right: 5px;
    /* Reduced margin */
}

.stat-circle {
    width: 25px;
    height: 25px;
    /* Significant size reduction */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 0.65rem;
    /* Smaller font for smaller bubble */
    box-shadow:
        inset -2px -2px 5px rgba(0, 0, 0, 0.2),
        inset 2px 2px 5px rgba(255, 255, 255, 0.3),
        2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    cursor: help;
}

.stat-circle.users-total {
    background: linear-gradient(135deg, #42a5f5, #1976d2);
}

.stat-circle.users-active {
    background: linear-gradient(135deg, #66bb6a, #388e3c);
}

.stat-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.stat-circle:hover .stat-tooltip {
    opacity: 1;
}