/* Alarmar - Modern Corporate Design System (Branded Colors) */
:root {
    --primary-color: #1f5b41;
    /* Verde Oscuro Alarmar */
    --primary-light: #2d7d5a;
    --accent-color: #8cc63f;
    /* Verde Claro Alarmar */
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
.h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

h2,
.h2 {
    font-size: 1.85rem;
    font-weight: 700;
}

h3,
.h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4,
.h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5,
.h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

h6,
.h6 {
    font-size: 0.95rem;
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Inter', sans-serif;
}


/* NAVBAR REDESIGN */
.main-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-color);
    /* Línea de marca */
    padding: 0.5rem 0;
    z-index: 1030;
}

.brand-logo-img {
    height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(31, 91, 65, 0.05);
}

.nav-custom-spacing {
    gap: 0.25rem;
}

/* BRANCH BUTTON */
.btn-branch {
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-branch:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

/* DROPDOWN ANIMATION */
.animate {
    animation-duration: 0.2s;
    animation-fill-mode: both;
}

@keyframes slideIn {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slideIn {
    animation-name: slideIn;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: none;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.dropdown-item i {
    font-size: 1.1rem;
    opacity: 0.8;
}

.dropdown-item:hover {
    background: rgba(140, 198, 63, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-item.active {
    background: var(--primary-color) !important;
    color: white !important;
}

/* USER DROPDOWN */
.user-avatar-text {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(31, 91, 65, 0.2);
}

.user-name-header {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.user-role-header {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LOGIN BRANDED */
.login-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.login-header {
    background: white;
    padding: 2.5rem 2rem 1rem;
    text-align: center;
}

.btn-primary-alarmar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-primary-alarmar:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 91, 65, 0.3);
}

.text-indigo {
    color: #6366f1 !important;
}

/* UTILS */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(140, 198, 63, 0.2);
}

/* GLOBAL PAGE HEADER STANDARDIZATION */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 16px;
    padding: 2.2rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 4px 20px rgba(31, 91, 65, .15);
}

.page-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.page-header h1 i,
.page-header h1 svg {
    font-size: 1.75rem;
    margin-right: 0.85rem;
    display: inline-flex;
    opacity: 0.95;
}

.page-header p {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
}

/* RESPONSIVE HEADINGS */
@media (max-width: 768px) {
    .page-header {
        padding: 1.5rem !important;
        border-radius: 14px !important;
        margin-bottom: 1.5rem !important;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.88rem;
        line-height: 1.4;
    }
}