:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-soft: rgba(37, 99, 235, 0.1);

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #616f89;

    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #dbdfe6;

    --border-light: #f0f1f3;
    --white: #ffffff;
}

/* RESET ESSENCIAL */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: "Public Sans", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-main);
    background: #f6f6f8;
    margin: 0;
}

/* SIZES */

.size-8 {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.size-10 {
    width: 48px;
    height: 48px;
}

.size-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
}

/* CONTAINERS */

.max-container {
    max-width: 1200px;
    margin: 0 auto;
}

.max-content {
    max-width: 900px;
}

/* SIDEBAR */

.sidebar-width {
    width: 280px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    color: #2c2f36;
    transition: all .2s ease;
    text-decoration: none;
}

.icon-btn:hover {
    background: rgba(19, 142, 236, 0.12);
    color: #138eec;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.icon-btn .material-symbols-outlined {
    font-size: 22px;
}

.notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
}

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-blur {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .9);
    position: sticky;
    top: 0;
    z-index: 1050;

    height: 93px;
}

.main-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.sidebar {
    width: 260px;
    min-height: calc(100vh - 72px);
    transition: transform .3s ease;
}

.bg-primary-soft {
    background: var(--primary-soft);
}

.badge.text-primary {
    color: var(--primary);
}

/* =========================
   HERMES PROFILE LAYOUT
========================= */

.hermes-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all .25s ease;
}

.hermes-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to right, rgba(37,99,235,.08), rgba(37,99,235,.02));
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.profile-gradient-top {
    height: 90px;
    background: linear-gradient(90deg, #2563eb, #138eec);
    opacity: .08;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.profile-avatar-wrapper {
    position: relative;
    margin-top: 40px;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: all .3s ease;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
    color: #fff;
}

.profile-avatar-wrapper:hover .profile-avatar-overlay {
    opacity: 1;
}

.hermes-badge-soft {
    background: rgba(37, 99, 235, .12);
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
}

.info-box {
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 14px;
}

.security-box {
    background: #f8fafc;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
}

.divider-vertical {
    width: 1px;
    background: var(--gray-200);
}

.header-avatar{
    width: 40px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .divider-vertical {
        display: none;
    }
}

/* Mobile */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 72px; /* altura do header */
        left: 0;
        height: calc(100vh - 72px);
        transform: translateX(-100%);
        z-index: 1045;
        box-shadow: 0 0 20px rgba(0,0,0,.15);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .top-header{
        display: none;
    }
}

.sidebar-menu .menu-item {
    text-decoration: none;
    border-left: 4px solid transparent;
    color: #616f89;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu .menu-item .material-symbols-outlined {
    font-size: 24px;
}

.sidebar-menu .menu-item:hover {
    background-color: #f0f2f4;
    color: #111318;
}

.sidebar-menu .menu-item:hover .material-symbols-outlined {
    color: #111318;
}

.sidebar-menu .menu-item.active {
    background-color: #f0f2f4;
    border-left: 4px solid var(--primary);
    color: #111318;
}

.sidebar-menu .menu-item.active .material-symbols-outlined {
    color: var(--primary);
}

.menu-text {
    line-height: normal;
}

.cid-blur {
    filter: blur(5px);
    transition: filter 0.2s ease;
    cursor: pointer;
}

.cid-blur:hover {
    filter: blur(0);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.table-modern thead th{
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.04em;
    color:#616f89;
    padding:14px 16px;
    border-bottom:1px solid #dbdfe6;
}

.table-modern tbody td{
    padding:14px 16px;
    vertical-align:middle;
}

.table-modern tbody tr:hover{
    background:#f8f9fb;
}

.avatar-circle{
    width:32px;
    height:32px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
}

.badge-soft-success{
    background:#d1fae5;
    color:#065f46;
    font-weight:500;
}

.badge-soft-warning{
    background:#fef3c7;
    color:#92400e;
}

.badge-soft-secondary{
    background:#e5e7eb;
    color:#374151;
}

.hover-row{
transition: background-color .2s;
}

.hover-row:hover{
background-color: rgba(0,0,0,0.03);
}

.info-highlight-card{
    background: var(--primary-soft);
    border:1px solid var(--primary-soft);
    border-radius:12px;
}

.upload-dropzone{
border:2px dashed var(--primary-soft);
border-radius:12px;
padding:40px;
text-align:center;
position:relative;
cursor:pointer;
}

.upload-dropzone input{
position:absolute;
inset:0;
opacity:0;
cursor:pointer;
}

.upload-icon{
font-size:36px;
color:var(--primary);
}

.icon-circle{
width:32px;
height:32px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
}

.icon-circle-lg{
width:40px;
height:40px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

.label-caption{
font-size:12px;
font-weight:600;
text-transform:uppercase;
color:var(--text-muted);
letter-spacing:.04em;
}

.bg-primary-soft{
background:var(--primary-soft);
}

.bg-danger-soft{
background:#fee2e2;
}

.timeline{
border-left:2px solid var(--primary-soft);
padding-left:20px;
}

.timeline-item{
position:relative;
margin-bottom:30px;
}

.timeline-dot{
position:absolute;
left:-28px;
top:4px;
width:14px;
height:14px;
border-radius:50%;
border:3px solid white;
}

.timeline-file{
    display:inline-flex;
    align-items:center;
    justify-content: start;
    gap:10px;
    margin-top:10px;
    padding:20px;
    background:var(--primary-soft);
    border-radius:8px;
}

.input-suffix{
position:relative;
}

.input-suffix input{
padding-right:55px;
}

.input-suffix .suffix{
position:absolute;
right:12px;
top:50%;
transform:translateY(-50%);
font-size:12px;
font-weight:600;
color:var(--text-muted);
}

.icon-square{
width:32px;
height:32px;
border-radius:6px;
display:flex;
align-items:center;
justify-content:center;
flex-shrink:0;
}

.modal-icon-danger{
width:64px;
height:64px;
margin:auto;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
background:rgba(220,53,69,0.12);
color:#dc3545;
}

.modal-icon-danger span{
font-size:32px;
}

.material-symbols-outlined {
    font-size: 20px;
}

.notification-stripe{
position:absolute;
left:0;
top:0;
bottom:0;
width:3px;
background:var(--bs-primary);
border-radius:0 3px 3px 0;
}

.text-truncate-2{
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

.notification-dropdown{
width:360px;
border-radius:12px;
overflow:hidden;
}

.notification-dropdown .dropdown-item{
white-space:normal;
}

#sidebar {
    position: fixed;
    top: 94px;
    left: 0;

    width: 260px;
    height: calc(100vh - 94px);

    overflow-y: auto;

    background: white;
    border-right: 1px solid #e5e5e5;

     z-index: 1000;
}

.sidebar-menu {
    height: 100%;
}

main {
    margin-left: 260px;
}

.btn-new-request:hover {
    transform: translateY(-1px);
}

.btn-new-request:hover .icon-rotate {
    transform: rotate(90deg);
}

.icon-rotate {
    transition: transform .3s;
}

.surface-card{
    background:#ffffff;
    border:1px solid #dbdfe6;
    border-radius:12px;
    box-shadow:0 1px 2px rgba(0,0,0,0.05);
}

.bg-purple-soft{
background: rgba(139,92,246,.12);
color:#8b5cf6;
border:1px solid rgba(139,92,246,.25);
}

.bg-blue-soft{
background: rgba(59,130,246,.12);
color:#3b82f6;
border:1px solid rgba(59,130,246,.25);
}

.btn-amber{
background:#fffbeb;
color:#b45309;
border:1px solid #fde68a;
height:40px;
font-size:14px;
border-radius:8px;
transition:background .2s;
}

.btn-amber:hover{
background:#fef3c7;
color:#92400e;
}

/* largura igual ao bootstrap */
.select2-container {
    width: 100% !important;
}

/* caixa principal */
.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
}

/* texto interno */
.select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
}

/* seta */
.select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

/* foco igual bootstrap */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.stat-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.stat-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.stat-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}