/* Base Styles from v31.html */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
    background-color: #F8FAFC;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-shadow {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.2s ease-out forwards;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Friendly Inputs */
input,
select,
textarea {
    font-size: 16px !important;
    /* Prevent zoom on iOS */
}

/* Custom Utilities */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.menu-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    /* Squircle */
    background: white;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

.menu-icon-box:active {
    transform: scale(0.95);
    background: #eff6ff;
    border-color: #1E40AF;
}

/* Bottom Bar Styling Fixed */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

.pt-safe {
    padding-top: env(safe-area-inset-top);
}

.nav-item.active {
    color: #1E40AF;
}

.nav-item.active span.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

/* Floating Action Button Wrapper */
.floating-btn-wrapper {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn {
    width: 60px;
    height: 46px;
    background: #1E40AF;
    /* Primary Blue */
    border-radius: 16px;
    /* Squircle */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    transition: all 0.2s;
}

.floating-btn:active {
    transform: scale(0.92);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
}

/* Sync Indicator */
#sync-indicator {
    position: fixed;
    top: 20px;
    right: 12px;
    z-index: 999;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 10px;
    font-weight: bold;
    color: #64748B;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    border: 1px solid transparent;
    /* Prepare for border */
    padding: 4px 8px;
    /* Add padding when active */
    border-radius: 20px;
}

#sync-indicator.syncing {
    border-color: #3B82F6;
    color: #1E40AF;
}

#sync-indicator.error {
    border-color: #EF4444;
    color: #B91C1C;
    background: #FEF2F2;
}

/* Skeleton shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    background: #f1f5f9;
    background-image: linear-gradient(90deg,
            #f1f5f9 0px,
            #f8fafc 40px,
            #f1f5f9 80px);
    background-size: 1000px 100%;
    background-repeat: no-repeat;
    animation: shimmer 2s infinite linear;
}

[v-cloak] {
    display: none !important;
}

/* ===== Modal Transition (Vue <Transition name="modal-fade">) ===== */
.modal-fade-enter-active,
.modal-fade-leave-active {
    transition: opacity 0.25s ease;
}

.modal-fade-enter-active .animate-scale-in,
.modal-fade-leave-active .animate-scale-in {
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-fade-enter-from,
.modal-fade-leave-to {
    opacity: 0;
}

.modal-fade-enter-from .animate-scale-in,
.modal-fade-leave-to .animate-scale-in {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
}

/* ===== Contenteditable placeholder ===== */
[contenteditable][data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
    font-style: normal;
}

/* ===== Prose styles for rendered HTML in announcement detail ===== */
.prose ul {
    list-style: disc;
    padding-left: 1.4em;
    margin: 0.5em 0;
}

.prose ol {
    list-style: decimal;
    padding-left: 1.4em;
    margin: 0.5em 0;
}

.prose li {
    margin-bottom: 0.25em;
}

.prose strong {
    font-weight: 700;
}

.prose em {
    font-style: italic;
}

.prose u {
    text-decoration: underline;
}

/* Notif Swipe Animation */
.notif-swipe-out {
    animation: swipe-out 0.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    pointer-events: none;
    overflow: hidden;
}

@keyframes swipe-out {
    0% {
        transform: translateX(0);
        opacity: 1;
        max-height: 200px;
        margin-bottom: 0.75rem;
    }

    40% {
        transform: translateX(110%);
        opacity: 0;
        max-height: 200px;
        margin-bottom: 0.75rem;
    }

    100% {
        transform: translateX(110%);
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
        border-width: 0;
    }
}

/* Announcement embedded images */
.announcement-content img,
[ref="editorRef"] img,
[contenteditable] img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}