/**
 * Estilos da Área Restrita - IBPM
 * Design Profissional e Executivo
 * Sidebar Branca com Acentos Azul Marinho
 */

:root {
    --ibpm-azul: #072f5a;
    --ibpm-azul-claro: #0a4a8f;
    --ibpm-azul-hover: #051d3b;
    --ibpm-azul-light: #e8f0f8;
    --ibpm-laranja: #f59e0b;
    --ibpm-verde: #10b981;
    --ibpm-vermelho: #ef4444;
    --ibpm-cinza-100: #f8fafc;
    --ibpm-cinza-200: #f1f5f9;
    --ibpm-cinza-300: #e2e8f0;
    --ibpm-cinza-400: #cbd5e1;
    --ibpm-cinza-500: #94a3b8;
    --ibpm-cinza-600: #64748b;
    --ibpm-cinza-700: #475569;
    --ibpm-cinza-800: #334155;
    --ibpm-texto: #1e293b;
    --ibpm-border: #e2e8f0;
    --sidebar-width: 280px;
    --header-height: 70px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET E BASE */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ibpm-cinza-100);
    color: var(--ibpm-texto);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* LAYOUT PRINCIPAL */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =====================================================
   SIDEBAR - Design Branco Executivo
   ===================================================== */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    color: var(--ibpm-texto);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: var(--transition);
    border-right: 1px solid var(--ibpm-border);
    box-shadow: var(--shadow-sm);
}

.admin-sidebar.collapsed {
    width: 80px;
}

/* Sidebar Header - Logo */
.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--ibpm-border);
    background: #ffffff;
    min-height: 90px;
}

.sidebar-logo {
    max-width: 160px;
    height: auto;
}

.admin-sidebar.collapsed .sidebar-logo {
    max-width: 45px;
}

/* Sidebar User Info */
.sidebar-user {
    padding: 20px;
    border-bottom: 1px solid var(--ibpm-border);
    background-color: var(--ibpm-cinza-100);
}

.sidebar-user .user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ibpm-azul);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-perfil {
    font-size: 0.8rem;
}

.admin-sidebar.collapsed .sidebar-user {
    padding: 15px 10px;
    text-align: center;
}

.admin-sidebar.collapsed .sidebar-user .user-name {
    display: none;
}

/* BADGES DE PERFIL */
.badge-perfil {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-prefeitura {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.badge-concessionaria {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.badge-parceiro {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.badge-admin {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
}

/* NAVEGAÇÃO SIDEBAR */
.sidebar-nav {
    padding: 16px 0;
}

.nav-section {
    padding: 20px 24px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ibpm-cinza-500);
}

.admin-sidebar.collapsed .nav-section {
    display: none;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 2px 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--ibpm-cinza-700);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition);
    gap: 14px;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
}

.sidebar-nav a:hover {
    background-color: var(--ibpm-azul-light);
    color: var(--ibpm-azul);
}

.sidebar-nav a.active {
    background-color: var(--ibpm-azul);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--ibpm-azul);
    border-radius: 0 4px 4px 0;
}

.sidebar-nav a i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.admin-sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 12px;
}

.admin-sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.admin-sidebar.collapsed .sidebar-nav a::before {
    display: none;
}

/* Sidebar Footer - Logout */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    border-top: 1px solid var(--ibpm-border);
    background: #ffffff;
}

.sidebar-footer .btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: var(--ibpm-azul);
    border: 2px solid var(--ibpm-azul);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-footer .btn-logout:hover {
    background: var(--ibpm-azul);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.admin-sidebar.collapsed .sidebar-footer .btn-logout span {
    display: none;
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
    background-color: var(--ibpm-cinza-100);
}

.admin-sidebar.collapsed ~ .admin-main {
    margin-left: 80px;
}

/* =====================================================
   HEADER TOP BAR
   ===================================================== */
.admin-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--ibpm-border);
    padding: 0 30px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--ibpm-cinza-600);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-sidebar:hover {
    background-color: var(--ibpm-cinza-200);
    color: var(--ibpm-azul);
}

/* Breadcrumb */
.breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--ibpm-azul);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--ibpm-cinza-500);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--ibpm-cinza-400);
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right .btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--ibpm-cinza-500);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.header-right .btn-icon:hover {
    background-color: var(--ibpm-cinza-200);
    color: var(--ibpm-azul);
}

.header-right .btn-icon .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--ibpm-vermelho);
    color: #fff;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* User Dropdown */
.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--ibpm-border);
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 50px;
    transition: var(--transition);
}

.user-dropdown .dropdown-toggle:hover {
    background: var(--ibpm-cinza-100);
    border-color: var(--ibpm-cinza-400);
}

.user-dropdown .user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ibpm-azul) 0%, var(--ibpm-azul-claro) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-dropdown .user-info {
    text-align: left;
}

.user-dropdown .user-info .name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ibpm-texto);
}

.user-dropdown .user-info .role {
    font-size: 0.7rem;
    color: var(--ibpm-cinza-500);
    text-transform: capitalize;
}

/* =====================================================
   CONTENT AREA
   ===================================================== */
.admin-content {
    flex: 1;
    padding: 30px;
    background-color: var(--ibpm-cinza-100);
}

/* Page Header / Title Bar */
.page-header {
    background: #ffffff;
    color: var(--ibpm-azul);
    padding: 28px 32px;
    margin: -30px -30px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--ibpm-border);
}

.page-header h1 {
    font-size: 1.6rem;
    margin: 0 0 4px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--ibpm-azul);
}

.page-header p {
    margin: 0;
    color: var(--ibpm-cinza-600);
    font-size: 0.95rem;
    font-weight: 400;
}

.page-header .header-actions {
    display: flex;
    gap: 12px;
}

.page-header .header-actions .btn {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: #ffffff;
    border: 1px solid var(--ibpm-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    background: #ffffff;
    color: var(--ibpm-azul);
    padding: 18px 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ibpm-border);
}

.card-header h5,
.card-header h4,
.card-header h3 {
    margin: 0;
    color: var(--ibpm-azul);
    font-weight: 700;
    font-size: 1rem;
}

.card-header .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.card-body {
    padding: 24px;
    background-color: #fff;
}

/* Card Variants */
.card.card-light .card-header {
    background: var(--ibpm-cinza-100);
    color: var(--ibpm-texto);
    border-bottom: 1px solid var(--ibpm-border);
}

.card.card-light .card-header h5,
.card.card-light .card-header h4,
.card.card-light .card-header h3 {
    color: var(--ibpm-azul);
}

/* =====================================================
   STAT CARDS - Dashboard Statistics
   ===================================================== */
.stat-card {
    background: #fff;
    border: 1px solid var(--ibpm-border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.stat-card .stat-icon.bg-primary {
    background: linear-gradient(135deg, var(--ibpm-azul) 0%, var(--ibpm-azul-claro) 100%);
    color: #fff;
}

.stat-card .stat-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: #fff;
}

.stat-card .stat-icon.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: #fff;
}

.stat-card .stat-icon.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #fff;
}

.stat-card .stat-icon.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    color: #fff;
}

.stat-card .stat-info h3 {
    font-size: 2rem;
    margin: 0 0 4px 0;
    color: var(--ibpm-azul);
    font-weight: 800;
    line-height: 1;
}

.stat-card .stat-info p {
    margin: 0;
    color: var(--ibpm-cinza-600);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--ibpm-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-header {
    background: #ffffff;
    color: var(--ibpm-azul);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ibpm-border);
}

.table-header h5 {
    margin: 0;
    font-weight: 700;
    color: var(--ibpm-azul);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--ibpm-cinza-100);
    color: var(--ibpm-azul);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--ibpm-border);
    padding: 14px 18px;
    white-space: nowrap;
}

.table tbody td {
    padding: 16px 18px;
    vertical-align: middle;
    border-bottom: 1px solid var(--ibpm-cinza-200);
    font-size: 0.9rem;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: var(--ibpm-cinza-100);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ibpm-azul) 0%, var(--ibpm-azul-claro) 100%);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--ibpm-azul-hover) 0%, var(--ibpm-azul) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--ibpm-azul);
    border: 2px solid var(--ibpm-azul);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--ibpm-azul);
    color: #fff;
    border-color: var(--ibpm-azul);
}

.btn-light {
    background: #ffffff;
    border: 1px solid var(--ibpm-border);
    color: var(--ibpm-texto);
}

.btn-light:hover {
    background: var(--ibpm-cinza-100);
    border-color: var(--ibpm-cinza-400);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

.btn-action {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-icon-only {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* =====================================================
   STATUS BADGES
   ===================================================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pendente {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.status-ativo,
.status-aprovado {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-recusado,
.status-cancelado {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.status-em-analise {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-label {
    font-weight: 600;
    color: var(--ibpm-texto);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    padding: 12px 16px;
    border: 2px solid var(--ibpm-border);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #fff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ibpm-azul);
    box-shadow: 0 0 0 4px rgba(7, 47, 90, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--ibpm-cinza-400);
}

.form-group {
    margin-bottom: 24px;
}

/* Required Field Indicator */
.required::after {
    content: ' *';
    color: var(--ibpm-vermelho);
    font-weight: 700;
}

/* Input with Icon */
.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ibpm-cinza-400);
}

.input-icon .form-control {
    padding-left: 48px;
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ibpm-azul) 0%, var(--ibpm-azul-claro) 50%, #134e8a 100%);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-header {
    background: linear-gradient(135deg, var(--ibpm-azul) 0%, var(--ibpm-azul-claro) 100%);
    color: #fff;
    padding: 40px 32px;
    text-align: center;
}

.login-header img {
    max-width: 200px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.login-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

.login-body {
    padding: 40px 32px;
}

.login-body .form-control {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid var(--ibpm-border);
}

.login-body .form-control:focus {
    border-color: var(--ibpm-azul);
}

.login-body .btn-primary {
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-footer {
    padding: 24px 32px;
    background-color: var(--ibpm-cinza-100);
    text-align: center;
    border-top: 1px solid var(--ibpm-border);
}

.login-footer a {
    color: var(--ibpm-azul);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* =====================================================
   ADMIN FOOTER
   ===================================================== */
.admin-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--ibpm-border);
    padding: 20px 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ibpm-cinza-500);
}

.admin-footer a {
    color: var(--ibpm-azul);
    text-decoration: none;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    gap: 4px;
}

.pagination .page-link {
    color: var(--ibpm-azul);
    border: 1px solid var(--ibpm-border);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--ibpm-azul-light);
    border-color: var(--ibpm-azul);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--ibpm-azul) 0%, var(--ibpm-azul-claro) 100%);
    border-color: var(--ibpm-azul);
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--ibpm-cinza-500);
}

.empty-state i {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 16px;
    color: var(--ibpm-cinza-400);
}

.empty-state h4 {
    margin-bottom: 12px;
    color: var(--ibpm-azul);
    font-weight: 700;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* =====================================================
   DROPDOWN MENUS
   ===================================================== */
.dropdown-menu {
    border: 1px solid var(--ibpm-border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--ibpm-azul-light);
    color: var(--ibpm-azul);
}

.dropdown-item i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-color: var(--ibpm-border);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1199px) {
    :root {
        --sidebar-width: 260px;
    }
}

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .page-header {
        padding: 24px;
        margin: -30px -30px 24px;
    }
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px;
    }
    
    .page-header {
        padding: 20px;
        margin: -20px -20px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 1.3rem;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stat-card .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 18px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 14px;
    }
}

@media (max-width: 576px) {
    .admin-header {
        padding: 0 16px;
    }
    
    .admin-content {
        padding: 16px;
    }
    
    .page-header {
        margin: -16px -16px 16px;
    }
    
    .login-body,
    .login-footer {
        padding: 24px 20px;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

.slide-in {
    animation: slideIn 0.4s ease;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-azul {
    color: var(--ibpm-azul) !important;
}

.bg-azul {
    background-color: var(--ibpm-azul) !important;
}

.border-azul {
    border-color: var(--ibpm-azul) !important;
}

.text-muted {
    color: var(--ibpm-cinza-500) !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

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

/* =====================================================
   SCROLLBAR CUSTOMIZADO
   ===================================================== */
.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: var(--ibpm-cinza-100);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--ibpm-cinza-300);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--ibpm-cinza-400);
}

/* Global Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ibpm-cinza-100);
}

::-webkit-scrollbar-thumb {
    background: var(--ibpm-cinza-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ibpm-cinza-400);
}

/* =====================================================
   LOADING STATES
   ===================================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ibpm-cinza-300);
    border-top-color: var(--ibpm-azul);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--ibpm-cinza-200) 25%, var(--ibpm-cinza-100) 50%, var(--ibpm-cinza-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   TOOLTIP
   ===================================================== */
.tooltip-custom {
    position: relative;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ibpm-azul);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-bottom: 8px;
}

.tooltip-custom:hover::after {
    opacity: 1;
    visibility: visible;
}

/* =====================================================
   SPECIAL COMPONENTS
   ===================================================== */

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.quick-action-item {
    background: #fff;
    border: 1px solid var(--ibpm-border);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--ibpm-texto);
    transition: var(--transition);
}

.quick-action-item:hover {
    border-color: var(--ibpm-azul);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--ibpm-azul);
}

.quick-action-item i {
    font-size: 2rem;
    color: var(--ibpm-azul);
    margin-bottom: 12px;
    display: block;
}

.quick-action-item span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 30px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ibpm-border);
}

.activity-item {
    position: relative;
    padding-bottom: 24px;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--ibpm-azul);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: var(--shadow-sm);
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-content {
    background: var(--ibpm-cinza-100);
    padding: 14px 18px;
    border-radius: 10px;
}

.activity-content .time {
    font-size: 0.75rem;
    color: var(--ibpm-cinza-500);
}

/* Notification Badge Pulse */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--ibpm-vermelho);
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.2); 
        opacity: 0.8;
    }
}
