/**
 * SHZ Theme - Orange & White
 * Overrides Tabler default variables
 */
:root {
    /* Primary Color - SHZ Orange */
    --tblr-primary: #F97316;
    --tblr-primary-rgb: 249, 115, 22;
    --tblr-primary-fg: #ffffff;

    /* Secondary Color - Slate */
    --tblr-secondary: #475569;
    --tblr-secondary-rgb: 71, 85, 105;

    /* Backgrounds */
    --tblr-body-bg: #f9f9f9;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--tblr-primary) !important;
    border-color: var(--tblr-primary) !important;
}

.btn-primary:hover {
    background-color: #EA580C !important;
    /* Darker orange */
    border-color: #EA580C !important;
}

.btn-outline-primary {
    color: var(--tblr-primary) !important;
    border-color: var(--tblr-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--tblr-primary) !important;
    color: #fff !important;
}

/* Text & Links */
.text-primary {
    color: var(--tblr-primary) !important;
}

a {
    color: var(--tblr-primary);
}

a:hover {
    color: #EA580C;
    text-decoration: none;
}

/* Navbar Overrides */
.shz-navbar {
    min-height: 56px;
    padding: 0.25rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #fff !important;
    border-bottom: 1px solid #e6e8eb !important;
    border-top: 3px solid var(--tblr-primary) !important;
}

.shz-navbar .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.shz-brand-text {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #1d273b;
    line-height: 1;
}

.shz-navbar .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0.85rem !important;
    font-weight: 500;
    font-size: 0.85rem;
    color: #475569 !important;
}

.shz-navbar .nav-item.active .nav-link {
    color: var(--tblr-primary) !important;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 4px;
}

.shz-navbar .nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.4rem;
}

/* User Profile Section */
.shz-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1d273b;
    line-height: 1.2;
}

.shz-user-role {
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8 !important;
}

.shz-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
}

/* Mobile Adjustments */
@media (max-width: 767.98px) {
    .shz-navbar {
        padding: 0.5rem 0;
    }

    .shz-navbar .navbar-brand {
        margin-right: auto;
    }

    .navbar-collapse {
        background: #fff;
        margin: 0.5rem -1rem -0.5rem -1rem;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e2e8f0;
    }

    .shz-navbar .nav-link {
        padding: 0.75rem 0 !important;
    }
}

/* Body & Page Density Adjustments */
.page-header {
    margin-bottom: 0.75rem !important;
}

.page-title {
    font-size: 1.1rem !important;
}

.subheader {
    font-size: 0.65rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.card-body {
    padding: 1rem !important;
}

.card-title {
    font-size: 0.9rem !important;
    font-weight: 600;
}

/* Tabler Table Compact */
.table td,
.table th {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem;
}

.navbar {
    border-top: 3px solid var(--tblr-primary) !important;
}

.nav-link.active {
    color: var(--tblr-primary) !important;
}

/* Form Controls */
.form-control:focus {
    border-color: #fdba74;
    /* Lighter orange */
    box-shadow: 0 0 0 .25rem rgba(249, 115, 22, 0.25);
}

.form-check-input:checked {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

/* FullCalendar Overrides */
.fc-button-primary {
    background-color: var(--tblr-primary) !important;
    border-color: var(--tblr-primary) !important;
}

.fc-button-primary:hover {
    background-color: #EA580C !important;
    border-color: #EA580C !important;
}

.fc-event {
    border-color: var(--tblr-primary);
    background-color: var(--tblr-primary);
    color: #fff !important;
}

.fc-event-main,
.fc-event-title,
.fc-event-time {
    color: #fff !important;
}

.fc-dayGridMonth-view .fc-event {
    cursor: pointer;
}

/* Login Page Specifics */
.auth-card {
    border-top: 3px solid var(--tblr-primary);
}

/*
 * ICON SYSTEM STANDARDIZATION
 * Enforcing a consistent, light, and modern look for all icons (Tabler Icons).
 * Matches the Reference Style found in eleitores.php.
 */

.ti {
    /* 1. Reset any bold weights to ensure lightness */
    font-weight: normal !important;

    /* 2. Enforce standard sizing and alignment */
    /* Only apply font-size if not overridden by inline style or specific utility */
    line-height: 1;
    vertical-align: middle;

    /* 3. Font Smoothing for "elegant" rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* 4. Stroke Width (For SVGs or future-proofing) */
    stroke-width: 1.5 !important;
}

/* Ensure no bolding propagates from parents */
.btn .ti,
.nav-link .ti,
.dropdown-item .ti,
.card-header .ti {
    font-weight: normal !important;
}

/* Contextual Adjustments */

/* Buttons: Icon + Text */
.btn .ti {
    font-size: 1.15rem;
    /* Slightly larger/clearer in buttons */
}

/* Sidebar / Navbar Icons */
.nav-link-icon .ti,
.nav-link .ti {
    font-size: 1.15rem;
    /* Adjusted for better balance */
}

/* Dashboard Cards */
.card .subheader+.h1 {
    font-weight: 600;
    /* Ensure numbers pop, but icons stay light */
}