@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f8fafc; 
}

.fade-in { 
    animation: fadeIn 0.5s ease-in-out; 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(-10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.hidden { 
    display: none; 
}

.view-section { 
    animation: fadeIn 0.3s ease-in-out; 
}

.nav-tab { 
    cursor: pointer; 
    padding: 0.75rem 1rem; 
    border-bottom: 2px solid transparent; 
    font-weight: 500; 
    color: #6b7280; 
    transition: all 0.2s;
}

.nav-tab.active { 
    border-color: #4f46e5; 
    color: #4f46e5; 
    font-weight: 600; 
}

.nav-tab:hover {
    color: #4f46e5;
    border-color: #c7d2fe;
}

.chart-container { 
    position: relative; 
}

#category-description {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.875rem;
    color: #4b5563;
    min-height: 80px;
    line-height: 1.5;
}

.highlight-row {
    animation: highlightFade 2s ease-out;
}

@keyframes highlightFade {
    0%, 50% { background-color: #eef2ff; }
    100% { background-color: transparent; }
}

/* Improved notification styles */
.notification-bell-container {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item p {
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin: 0;
}

.notification-item .time {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}
/* Custom form styles */
.form-radio:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.form-radio:checked::before {
    content: '';
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: white;
    margin: auto;
}

/* Card hover effects */
.bg-white {
    transition: box-shadow 0.2s ease-in-out;
}

.bg-white:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}