:root {
    --bs-primary: #006e62 !important;
    --bs-primary-active: #006e62 !important;
    --bs-primary-rgb: 0, 110, 98;
    --bs-info: #1b84ff !important;
    --bs-info-active: #1b84ff !important;
    --bs-info-hover: #1b84ff !important;
    --bs-success: #198754;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-text-primary: #006e62 !important;
    --bs-link-color: #006e62;
    --bs-link-hover-color: #004d44;
}

html {
    font-size: 14px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #071437;
    background-color: #f3f3f3;
}

/* Logo */
.sircoi-logo {
    height: 45px;
    max-height: 45px;
    object-fit: contain;
}

.sircoi-logo-small {
    height: 40px;
    max-height: 40px;
    object-fit: contain;
}

/* Navbar branco - Layout Horizontal SIRCOI */
.navbar-primary {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e4e6ef;
    min-height: 70px;
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-primary .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-primary .navbar-brand {
    padding: 0;
}

.navbar-primary .nav-link {
    color: #495057 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 0.25rem;
}

.navbar-primary .nav-link:hover {
    color: #006e62 !important;
    background-color: rgba(0, 110, 98, 0.05);
}

.navbar-primary .nav-link i {
    margin-right: 0.5rem;
    color: #6c757d;
}

.navbar-primary .nav-link:hover i {
    color: #006e62;
}

.navbar-primary .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #e4e6ef;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
}

/* Avatar do usuário - bolinha verde com iniciais */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #006e62;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 110, 98, 0.3);
}

.navbar-primary .navbar-toggler {
    border-color: #e4e6ef;
}

.navbar-primary .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Botões primários */
.btn-primary {
    background-color: #006e62;
    border-color: #006e62;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #004d44;
    border-color: #004d44;
    color: #ffffff;
}

.btn-outline-primary {
    color: #006e62;
    border-color: #006e62;
}

.btn-outline-primary:hover {
    background-color: #006e62;
    border-color: #006e62;
    color: #ffffff;
}

/* Cards */
.card {
    border: 1px solid #e4e6ef;
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.075);
    border-radius: 0.475rem;
    background-color: #ffffff;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e4e6ef;
    font-weight: 600;
    color: #071437;
}

/* Dashboard Cards - Estilo Moderno e Intuitivo (similar ao frontend) */
.dashboard-card {
    background-color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.dashboard-card .text-muted {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.dashboard-card .fw-bold {
    font-weight: 600;
    color: #212529;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-card .fs-3 {
    font-size: calc(1.26rem + 0.12vw);
    line-height: 1.2;
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1200px) {
    .dashboard-card .fs-3 {
        font-size: 1.35rem;
    }
}

.dashboard-card-large {
    background-color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.dashboard-card-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-card-large .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.dashboard-card-large .text-muted {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

.dashboard-card-large .fw-bold {
    font-weight: 600;
    color: #212529;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-card-large .fs-3 {
    font-size: calc(1.26rem + 0.12vw);
    line-height: 1.2;
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 1200px) {
    .dashboard-card-large .fs-3 {
        font-size: 1.35rem;
    }
}

/* Cores para títulos dos cards */
.card-title-colored {
    font-weight: 600;
}

.card-title-primary {
    color: #006e62 !important;
}

.card-title-warning {
    color: #ffc107 !important;
}

.card-title-info {
    color: #1b84ff !important;
}

.card-title-success {
    color: #198754 !important;
}

.card-title-danger {
    color: #dc3545 !important;
}

.card-title-secondary {
    color: #6c757d !important;
}

.card-title-dark {
    color: #212529 !important;
}

/* Tabelas */
.table {
    background-color: #ffffff;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e4e6ef;
    font-weight: 600;
    color: #495057;
    text-align: center;
    vertical-align: middle;
}

.table thead th a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}

.table thead th a:hover {
    color: #006e62;
    text-decoration: none;
}

.table thead th a i {
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 110, 98, 0.08);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Links */
a {
    color: #006e62;
    text-decoration: none;
}

a:hover {
    color: #004d44;
    text-decoration: underline;
}

.link-primary {
    color: #006e62 !important;
}

/* Formulários */
.form-control:focus,
.form-select:focus {
    border-color: #006e62;
    box-shadow: 0 0 0 0.2rem rgba(0, 110, 98, 0.25);
}

.form-check-input:checked {
    background-color: #006e62;
    border-color: #006e62;
}

/* Inputs customizados */
.input-data {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #bdbdbd;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.97rem;
}

.input-data:focus {
    border-color: #006e62;
    box-shadow: 0 0 0 2px rgba(0, 110, 98, 0.15);
    outline: none;
}

/* Paginação */
.page-link {
    color: #006e62;
}

.page-item.active .page-link {
    background-color: #006e62;
    border-color: #006e62;
    color: #ffffff;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e4e6ef;
}

/* Login page background */
.login-background {
    background: linear-gradient(135deg, #006e62 0%, #004d44 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .sircoi-logo {
        height: 35px;
    }
    
    .card {
        margin: 0.5rem;
    }
}
