/* Theme variables based on the RentStat Logo (Professional Blue & Slate Gray) */
:root {
    --brand-primary: #2E5FA1;
    /* Dominant Blue from logo */
    --brand-primary-light: #4A88C1;
    --brand-primary-dark: #1D3E66;
    --brand-gray: #64748b;
    /* Neutral Slate for text on white */
    --brand-gray-dark: #475569;
    --sidebar-bg: #ffffff;
    --sidebar-border: #f1f5f9;
    --brand-accent: #3b82f6;
}

/* Fallback for buttons to ensure they are ALWAYS visible */
button,
[type='button'],
[type='reset'],
[type='submit'] {
    appearance: button;
    -webkit-appearance: button;
    background-color: #0f172a;
    color: #ffffff !important;
    /* Ensure white text */
    border: none;
    cursor: pointer;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

/* Explicit Button Overrides to use Brand Colors */
.bg-slate-900,
.bg-slate-800,
button.bg-slate-900 {
    background-color: #0f172a !important;
    color: #ffffff !important;
}

.bg-blue-600,
.bg-blue-500 {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

.bg-blue-700:hover,
.bg-blue-600:hover,
.bg-slate-800:hover {
    background-color: var(--brand-primary-dark) !important;
    color: #ffffff !important;
}

/* Ensure that links in the dashboard don't inherit weird colors */
/* Custom scrollbars for side navigation & content area */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Nav links for WHITE SIDEBAR */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.85rem;
    color: var(--brand-gray);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.125rem;
}

.nav-link:hover {
    color: var(--brand-primary);
    background-color: #f8fafc;
}

.nav-link.active {
    color: var(--brand-primary);
    background-color: #eff6ff;
    /* light blue */
    font-weight: 600;
}

.nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: inherit;
    /* inherit color from parent */
}

/* Utilities */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom classes for brand consistency */
.bg-brand-primary {
    background-color: var(--brand-primary);
}

.text-brand-primary {
    color: var(--brand-primary);
}

.border-brand-primary {
    border-color: var(--brand-primary);
}