body {
    color: theme('colors.civic.black');
    overflow-x: hidden;
    background-color: transparent;
}

/* --- PERMANENT LIGHT LIVE BACKGROUND --- */
#live-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -6;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background: linear-gradient(-45deg, #f8fafc, #e2e8f0, #cbd5e1, #f8fafc);
}

/* --- IMAGE BACKGROUND OVERLAY --- */
#bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -5;
    background-image: url('https://images.unsplash.com/photo-1602216056096-3b40cc0c9944?q=80&w=2070&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3; 
    mix-blend-mode: multiply; 
    pointer-events: none; 
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -4;
    animation: floatOrb 20s infinite ease-in-out alternate;
    opacity: 0.4;
    pointer-events: none;
    background: rgba(16, 185, 129, 0.3);
}

.orb-1 { width: 350px; height: 350px; top: 5%; left: 5%; animation-delay: 0s; }
.orb-2 { width: 450px; height: 450px; bottom: 15%; right: 5%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 55%; animation-delay: -10s; }

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(16, 185, 129, 0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: theme('colors.civic.accent'); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: theme('colors.civic.accentHover'); }

/* --- NAVBAR STYLES --- */
nav {
    background-color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid theme('colors.slate.200');
}

.brutalist-input {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(16, 185, 129, 0.25);
    color: theme('colors.civic.black');
    transition: all 0.3s ease;
}

.brutalist-input:focus {
    outline: none;
    border-color: theme('colors.civic.accent');
    background-color: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

select.brutalist-input option {
    background-color: theme('colors.white');
    color: theme('colors.civic.black');
}

.brutalist-button {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.brutalist-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
.brutalist-button:active {
    transform: translateY(0);
}

.card-hover { transition: all 0.3s ease; }
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.gradient-text {
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#toast-container {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}
#toast-container.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-open {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444; 
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-in-progress {
    background-color: rgba(245, 158, 11, 0.1); 
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-resolved {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top-color: theme('colors.civic.accent');
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.table-row-hover:hover { background-color: rgba(16, 185, 129, 0.05); }

.search-input-wrapper { position: relative; }
.search-input-wrapper i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: theme('colors.slate.500');
}
.search-input-wrapper input { padding-left: 40px; }
/* --- MALAYALAM FONT ADJUSTMENTS --- */
/* Increases all translated text size by 15% and gives loops more breathing room */
body.malayalam-active [data-i18n] {
    font-size: 1.15em; 
    line-height: 1.4;
}

/* Increases the translated placeholder text inside input fields */
body.malayalam-active [data-i18n-placeholder]::placeholder {
    font-size: 1.15em;
}

/* Increases the input field text itself in case they type in Malayalam */
body.malayalam-active [data-i18n-placeholder] {
    font-size: 1.05em;
}