@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --app-font: 'Plus Jakarta Sans', sans-serif;
    --color-primary: #0D47A1;
    --color-bg: #FFFFFF;
    --color-text-primary: #1E293B;
    --color-text-secondary: #64748B;
    --border-color: #E2E8F0;
    --shadow-light: 0 8px 24px rgba(15, 23, 42, 0.04);
}

body {
    background-color: #EFF6FF !important;
    font-family: var(--app-font) !important;
    margin: 0;
    padding: 0;
}

/* Custom Overrides for Elementor Layout to match the image precisely */
.elementor-section {
    font-family: var(--app-font);
}

.elementor-column-gap-default > .elementor-row > .elementor-column > .elementor-element-populate {
    padding: 0;
}

/* Base style for clickable menu cards in Elementor */
.resident-menu-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.resident-menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
    border-color: #CBD5E1 !important;
}

.resident-menu-card:active {
    transform: translateY(0);
}

/* Icon colors */
.m-blue { background: rgba(59, 130, 246, 0.08) !important; color: #3B82F6 !important; }
.m-green { background: rgba(34, 197, 94, 0.08) !important; color: #22C55E !important; }
.m-purple { background: rgba(124, 58, 237, 0.08) !important; color: #7C3AED !important; }
.m-orange { background: rgba(249, 115, 22, 0.08) !important; color: #F97316 !important; }
.m-teal { background: rgba(20, 184, 166, 0.08) !important; color: #14B8A6 !important; }

/* Form and Sub-Tab styles */
.form-navigation-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}

.form-back-home-btn {
    background: none;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all 0.2s;
}

.form-back-home-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--color-primary);
}

.form-back-home-btn svg {
    width: 20px;
    height: 20px;
}

.form-nav-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.condo-form-section {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
    animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.condo-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Forms layout controls */
.condo-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.condo-form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.condo-form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #CBD5E1;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background-color: #FFFFFF;
    font-family: var(--app-font);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.condo-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.condo-form-input::placeholder {
    color: #94A3B8;
}

/* Upload style boxes */
.condo-upload-box {
    border: 2px dashed #CBD5E1;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    background-color: #F8FAFC;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.condo-upload-box:hover {
    background-color: #EFF6FF;
    border-color: var(--color-primary);
}

.condo-upload-icon {
    font-size: 1.8rem;
}

.condo-upload-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.condo-upload-preview {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 8px;
}

/* General Buttons */
.condo-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--app-font);
}

.condo-btn-approve {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.2);
}

.condo-btn-approve:hover {
    background: #0A3C8A;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.3);
}

.condo-btn-approve:active {
    transform: translateY(0);
}

.condo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive elements */
@media (max-width: 576px) {
    .condo-form-section {
        padding: 20px;
        border-radius: 16px;
        border: none;
        box-shadow: none;
    }
}

/* ==========================================================================
   DASHBOARD SIDEBAR & COLLAPSIBLE NAVIGATION SYSTEM
   ========================================================================== */
.gestor-layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.gestor-sidebar {
    background: #0b0e14; /* Deep dark charcoal/black from the image */
    color: #FFFFFF;
    width: 260px;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid #1a1f2c;
    overflow-x: hidden;
    padding: 20px 15px; /* Margin to replicate the image padding spacing */
    box-sizing: border-box;
}

.gestor-sidebar.collapsed {
    width: 78px;
    padding: 20px 10px;
}

.gestor-sidebar-header {
    padding: 10px 8px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1a1f2c;
    overflow: hidden;
    white-space: nowrap;
}

.gestor-sidebar-menu {
    padding: 24px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.gestor-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94A3B8;
    background: none;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.gestor-sidebar-item:hover, .gestor-sidebar-item.active {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4; /* Active/Hover cyan color matching the image */
    transform: translateX(4px);
}

/* Red styling for Logout / Sair item */
.gestor-sidebar-item.logout-item {
    color: #EF4444;
}

.gestor-sidebar-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
}

.gestor-sidebar-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    display: none; /* Hide icons to match the text-only design in the image */
}

.gestor-sidebar-item .label {
    transition: opacity 0.2s ease;
}

.gestor-sidebar.collapsed .gestor-sidebar-item .label {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.gestor-sidebar.collapsed .gestor-sidebar-header h2 {
    display: none;
}

/* User Profile footer card */
.cc-user-info {
    margin-top: auto;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gestor-sidebar.collapsed .cc-user-info {
    padding: 8px 4px;
    align-items: center;
}

.cc-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #FFFFFF;
}

.gestor-sidebar.collapsed .cc-user-name {
    display: none;
}

.cc-user-role {
    font-size: 0.75rem;
    color: #06b6d4;
    text-transform: uppercase;
    font-weight: bold;
}

.gestor-sidebar.collapsed .cc-user-role {
    font-size: 0.6rem;
}

.gestor-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent flex blowout */
}

/* ==========================================================================
   MODERN REQUEST CARDS GRID (SOLICITAÇÕES PENDENTES)
   ========================================================================== */
.request-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.request-card {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.request-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: #CBD5E1;
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-card-type-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
}

.request-card-type-badge.member   { background: #DBEAFE; color: #1E40AF; }
.request-card-type-badge.visitor  { background: #D1FAE5; color: #065F46; }
.request-card-type-badge.provider { background: #F3E8FF; color: #6B21A8; }
.request-card-type-badge.vehicle  { background: #FEF3C7; color: #92400E; }
.request-card-type-badge.airbnb   { background: #FCE7F3; color: #9D174D; }

.request-card-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-card-avatar {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #0D47A1;
    background: #F1F5F9;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.request-card-avatar:hover {
    transform: scale(1.04);
}

.request-card-info {
    display: flex;
    flex-direction: column;
}

.request-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
    margin: 0;
}

.request-card-unit {
    font-size: 12px;
    color: #64748B;
    margin: 2px 0 0 0;
}

.request-card-meta {
    font-size: 11px;
    color: #94A3B8;
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
}

.request-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto; /* Push to bottom of flex card */
}

/* ==========================================================================
   MODAL DIALOG POPUPS (FICHA COMPLETA)
   ========================================================================== */
.condo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    box-sizing: border-box;
    animation: fadeIn 0.25s ease-out;
}

.condo-modal-box {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #E2E8F0;
    box-sizing: border-box;
}

.condo-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.condo-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #1E293B;
    margin: 0;
}

.condo-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #94A3B8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.condo-modal-close-btn:hover {
    color: #475569;
}

.condo-modal-body {
    padding: 28px;
}

/* ==========================================================================
   RESIDENT NOTIFICATION SINO & POPOVER SYSTEM
   ========================================================================== */
.bell-icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.bell-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0D1B2A;
    box-sizing: content-box;
}

/* Sino flashing pulse animation */
.bell-badge.pulse {
    animation: bellPulse 1.5s infinite;
}

@keyframes bellPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.notification-tray-popover {
    position: absolute;
    top: 54px;
    right: 0;
    width: 320px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    border: 1px solid #E2E8F0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.notification-tray-header {
    padding: 14px 16px;
    border-bottom: 1px solid #F1F5F9;
    font-weight: 800;
    font-size: 13px;
    color: #1E293B;
    background: #F8FAFC;
}

.notification-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
    font-size: 12px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #F8FAFC;
}

.notification-item.unread {
    background: #EFF6FF;
}

.notification-item-time {
    font-size: 10px;
    color: #94A3B8;
}

/* Padding Superior global alignment */
#condominio-app-root {
    padding-top: 0 !important;
    box-sizing: border-box;
}

/* Fixed bottom footer menu for Resident & Guest */
.resident-footer-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 16px 0;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.resident-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    color: #64748B;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    padding: 4px 12px 8px 12px;
    box-shadow: none !important;
    outline: none !important;
}

.resident-footer-item:hover {
    color: #0D47A1;
    background: transparent !important;
}

.resident-footer-item.active,
.resident-footer-item.active .icon,
.resident-footer-item.active .label {
    color: #1E293B !important;
    background: transparent !important;
    box-shadow: none !important;
}

.resident-footer-item.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background-color: #0D47A1 !important;
    border-radius: 1px;
}

.resident-footer-item .icon {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.resident-footer-item.active .icon {
    transform: scale(1.1);
}

/* Responsive media queries for the Gestor Dashboard */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Gestor main workspace gutter spacing */
.gestor-main-inner {
    padding: 40px 32px 60px 32px;
    box-sizing: border-box;
    margin-top: 0 !important;
}

@media (max-width: 768px) {
    .gestor-layout-container {
        flex-direction: column;
    }
    
    .gestor-sidebar {
        z-index: 10000 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: 4px 0 15px rgba(15, 23, 42, 0.15);
    }
    
    .gestor-header-profile {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px !important;
    }
    
    .gestor-main-inner {
        padding: 16px 12px 60px 12px !important;
        margin-top: 0 !important;
    }
    
    #dashboard-charts-row, #dashboard-realtime-row, #dashboard-kpi-row {
        grid-template-columns: 1fr !important;
    }
    
    .condo-modal-box {
        width: 100% !important;
        margin: 10px;
        max-height: 95vh;
    }

    #modal-actions-container {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .table-scroll-wrapper {
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr !important;
    }
    
    .condo-modal-box {
        border-radius: 16px !important;
    }
    
    .condo-modal-header {
        padding: 16px 20px !important;
    }
    
    .condo-modal-body {
        padding: 16px 20px !important;
    }
    
    .gestor-sidebar-header {
        padding: 16px 14px !important;
    }
}

/* Document rotate and zoom helper */
.rotate-target {
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.3s ease;
    cursor: zoom-in;
}
.rotate-target.zoomed {
    max-height: 520px !important;
    cursor: zoom-out;
}

/* Custom form back home button style override (Blue Theme) */
.form-back-home-btn {
    color: #0D47A1 !important;
    border-color: #CBD5E1 !important;
    background: #EFF6FF !important;
    transition: all 0.2s ease;
}
.form-back-home-btn:hover {
    background: #DBEAFE !important;
    border-color: #0D47A1 !important;
}

@keyframes pulseGreen {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ----------------------------------------------------
   ESTILOS DOS CARTÕES DE MÉTRICAS (DASHBOARD GRID)
---------------------------------------------------- */
.cc-dashboard-grid {
    display: flex;
    flex-wrap: wrap; /* Permite a quebra dos cartões em múltiplas linhas */
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}
.cc-metric-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 20px;
    /* Divide o espaço horizontal igualmente (20% para cada um dos 5 cards menos a margem do gap) */
    flex: 1 1 calc(20% - 15px);
    min-width: 160px; /* Impede que fiquem muito pequenos no redimensionamento */
    box-sizing: border-box;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cc-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 71, 161, 0.4);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.cc-metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}
.cc-metric-card.cyan::after { background: #06B6D4; }
.cc-metric-card.emerald::after { background: #10B981; }
.cc-metric-card.rose::after { background: #EF4444; }
.cc-metric-card.amber::after { background: #F59E0B; }
.cc-metric-card.blue::after { background: #0D47A1; }

.cc-metric-title {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.cc-metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1E293B;
    line-height: 1;
}
/* Bolinha vermelha de alerta para problemas pendentes */
.cc-badge-alert {
    background: #EF4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 20px;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}
/* ----------------------------------------------------
   ESTILOS DE AÇÕES RÁPIDAS
---------------------------------------------------- */
.cc-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}
.cc-qa-btn {
    background: rgba(13, 71, 161, 0.02);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.cc-qa-btn:hover {
    background: rgba(13, 71, 161, 0.06);
    border-color: rgba(13, 71, 161, 0.3);
    transform: translateY(-1px);
}
.cc-qa-icon {
    font-size: 1.5rem;
}
.cc-qa-btn span:last-child {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1E293B;
}
/* ----------------------------------------------------
   RESPONSIVIDADE (Telas menores)
---------------------------------------------------- */
@media (max-width: 768px) {
    .cc-metric-card {
        flex: 1 1 calc(50% - 15px); /* Ocupam metade da largura disponível */
    }
}
@media (max-width: 480px) {
    .cc-metric-card {
        flex: 1 1 100%; /* Ocupam 100% da largura em telas muito estreitas */
    }
}

/* ----------------------------------------------------
   ALERT PULSE ANIMATION FOR OVERDUE PENDING REQUESTS
---------------------------------------------------- */
@keyframes overduePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
        border-color: rgba(239, 68, 68, 0.6);
        background-color: #FFF5F5;
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
        border-color: rgba(239, 68, 68, 0.8);
        background-color: #FEE2E2;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        border-color: rgba(239, 68, 68, 0.6);
        background-color: #FFF5F5;
    }
}

.overdue-pulse {
    animation: overduePulse 2s infinite ease-in-out !important;
    border: 2px solid #EF4444 !important;
}

