:root {
    --primary-color: #004a99;
    --primary-hover: #003a7a;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --login-bg: #0b2229;
    --theme-teal: #106674;
}

body {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: var(--dark-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Login Page V2 (Based on Finpes + Tech Background) */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/login_bg.png') no-repeat center center;
    background-size: cover;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 34, 41, 0.85); /* Overlay teal escuro */
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.login-logo {
    color: #1a87a2;
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.login-header-bar {
    background-color: #9eb1bb;
    color: #1e3a45;
    padding: 12px;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.login-card-v2 {
    background-color: #e8ecef;
    padding: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.login-card-v2 .form-label {
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.login-card-v2 .form-control {
    border: 2px solid #106674;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
    color: #333;
}

.login-card-v2 .form-control:focus {
    box-shadow: 0 0 0 3px rgba(16, 102, 116, 0.2);
    border-color: #106674;
}

.btn-login-v2 {
    background-color: #106674;
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-login-v2:hover {
    background-color: #0d545f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.login-footer-bar {
    background-color: #9eb1bb;
    color: #1e3a45;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.text-primary {
    color: #106674 !important;
}

/* Rest of the system */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--dark-color);
    color: #fff;
    transition: all 0.2s ease-in-out;
    min-height: 100vh;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #1a1e21;
    text-align: center;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 15px 25px;
    display: block;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

#sidebar ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar ul li.active > a {
    color: #fff;
    background: var(--primary-color);
}

#content {
    flex: 1;
    min-width: 0; 
    padding: 30px;
    background-color: #f0f2f5;
    transition: all 0.2s ease-in-out;
}

.navbar {
    background: #fff;
    border: none;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 15px 25px;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    backface-visibility: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.badge {
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
}

/* Submenus Sidebar */
#sidebar ul ul a {
    font-size: 0.85rem !important;
    padding-left: 45px !important;
    background: #1a1e21;
}

#sidebar .dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    transition: transform 0.3s ease;
}

#sidebar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}
