:root {
    --brand-50: 255 245 245;
    --brand-100: 253 225 225;
    --brand-400: 229 80 80;
    --brand-500: 187 18 38;
    --brand-600: 153 14 30;
    --brand-800: 89 6 15;
    --brand-900: 52 3 9;

    --primary-red: #b11226;
    --primary-red-dark: #7a0b16;
    --surface-white: #ffffff;
    --surface-wash: #f6f6f6;
    --surface-gray: #e1e1e1;
    --ink: #050505;
    --charcoal: #1a1a1a;
    --graphite: #2f3033;
    --steel: #4d515a;
    --muted-gray: #8a8d95;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

/* Branches watermark scrollbar - more visible */
#branches-watermark::-webkit-scrollbar {
    width: 8px;
}

#branches-watermark::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.5);
    border-radius: 4px;
}

#branches-watermark::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 4px;
}

#branches-watermark::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.8);
}

/* Tenant selector modal scrollbar */
#tenant-selector .overflow-y-auto::-webkit-scrollbar {
    width: 10px;
}

#tenant-selector .overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

#tenant-selector .overflow-y-auto::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

#tenant-selector .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-dark);
}

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

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; transform: scale(1.02); }
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite;
}

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out forwards;
}

.animate-scale-up {
    animation: scaleUp 0.3s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.group-item:hover i {
    transform: scale(1.2); 
    transition: transform 0.2s;
}

#ad-modal, #ad-wizard-modal, #invoice-modal, #pay-modal {
    transition: opacity 0.3s ease;
}

#app-container {
    background-image: radial-gradient(circle at 10% 20%, rgb(248, 250, 252) 0%, rgb(241, 245, 249) 90%);
}

@media (max-width: 768px) {
    .custom-scrollbar::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Tooltip styling */
.tooltip {
    position: relative;
}
.tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--charcoal);
    color: var(--surface-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 50;
    margin-bottom: 5px;
}