/* Bento Grid Theme Styles */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Batik Pattern Textures */
.bg-batik {
    background-image: radial-gradient(#0f172a 0.5px, transparent 0.5px);
    background-size: 15px 15px;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

/* Custom Scrollbar (Slate Theme) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #F8FAFC;
}

::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

/* Event Card (Bento Style) */
.event-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 2rem;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: #DC262622;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Filters (Bento Style) */
.filter-btn {
    transition: all 0.3s ease;
    background-color: white;
    color: #475569; /* slate-600 */
    border-color: #E2E8F0; /* slate-200 */
}

.filter-btn.active {
    background-color: #DC2626 !important;
    color: white !important;
    border-color: #DC2626 !important;
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.2);
}

.filter-btn:not(.active):hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
    color: #1E293B;
}

/* Modal Animation (Bento Style) */
#event-modal.active {
    display: flex;
}

#event-modal .modal-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#event-modal.active .modal-content {
    opacity: 1;
    transform: scale(1);
}

/* Organization Hierarchy Styles */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

#structure .member-slot {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-detail-popover {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 200px;
    background: white;
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px border-devo-slate-100;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-slot:hover .member-detail-popover,
.member-slot:active .member-detail-popover {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
}

#structure .member-img-wrapper {
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.member-slot:hover .member-img-wrapper {
    transform: scale(1.1);
    border-color: #DC2626;
}

#structure .member-tag {
    transition: all 0.3s ease;
}

.member-slot:hover .member-tag {
    background-color: #DC2626;
    color: white;
}

/* Custom Scrollbar for the horizontal overflow */
#structure .overflow-x-auto::-webkit-scrollbar {
    height: 4px;
}

#structure .overflow-x-auto::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 4px;
}

#structure .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #DC2626;
}

/* Typography Adjustments */
h1, h2, h3, h4, .font-serif {
    letter-spacing: -0.02em;
}

/* Notification Dot */
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #DC2626;
    margin-right: 6px;
}

/* Image Shimmer / Gradient */
.img-placeholder {
    background: linear-gradient(110deg, #F1F5F9 8%, #F8FAFC 18%, #F1F5F9 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}
