/* ========================================
   GESCOM - Gestão do Macroprocesso
   Arquivo CSS Principal
   ======================================== */

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #144780 0%, #0d2f5a 100%);
    min-height: 100vh;
    color: #333;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
    padding-left: 0;
}

.header h1 i {
    color: #144780;
    font-size: 1.8rem;
}

.header h1 img {
    border-radius: 8px;
}

/* ========================================
   CONTAINER PRINCIPAL
   ======================================== */
.container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-logo {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.sidebar-logo i {
    font-size: 2rem;
    color: #144780;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sidebar-logo i:hover {
    transform: rotate(180deg);
}

.sidebar-logo img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.sidebar-logo img:hover {
    transform: scale(1.05);
}

/* Botão Dashboard/Macroprocesso */
.dashboard-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    margin: 0 15px 15px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #144780, #0d2f5a);
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    justify-content: flex-start;
}

.dashboard-button:hover,
.dashboard-button.active {
    background: linear-gradient(135deg, #0f3a6b, #0a2547);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(20, 71, 128, 0.4);
}

.dashboard-button i {
    font-size: 1.2rem;
}

/* ========================================
   CONTEÚDO PRINCIPAL
   ======================================== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    width: calc(100vw - 280px);
}

.content-wrapper {
    width: 100%;
    margin: 0;
    max-width: none;
}

/* ========================================
   TABELAS
   ======================================== */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.data-table thead {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.data-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.data-table tbody tr:hover {
    background: rgba(20, 71, 128, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-table td {
    padding: 12px;
    font-size: 0.9rem;
    color: #333;
    vertical-align: middle;
}

.data-table td:first-child {
    font-weight: 600;
    color: #144780;
}

.table-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-info {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   STATUS BADGES
   ======================================== */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ativo {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-inativo {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-pendente {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status-concluido {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-em-andamento {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.status-concluida {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-suspensa {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.status-em-revisao {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.status-em-analise {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.status-aprovada {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.status-rejeitada {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.status-expirada {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.2);
}

.status-cancelada {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ========================================
   BOTÕES DE AÇÃO
   ======================================== */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-view {
    background: #3498db;
    color: white;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-edit {
    background: #f39c12;
    color: white;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-download {
    background: #27ae60;
    color: white;
}

.btn-download:hover {
    background: #229954;
}

.btn-delete {
    background: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background: #c0392b;
}

/* ========================================
   BOTÕES GERAIS
   ======================================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f3a6b, #0a2547);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

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

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.25);
}

/* Botão Auto-Refresh - Específico para sobrescrever regras gerais */
.btn.btn-auto-refresh {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15) !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
    height: auto !important;
    justify-content: center !important;
}

.btn.btn-auto-refresh:hover {
    background: linear-gradient(135deg, #20c997, #28a745) !important;
    color: #fff !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.25) !important;
}

.btn.btn-auto-refresh.paused {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15) !important;
}

.btn.btn-auto-refresh.paused:hover {
    background: linear-gradient(135deg, #c82333, #dc3545) !important;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25) !important;
}

/* ========================================
   FILTROS
   ======================================== */
.filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-end;
    background: rgba(255,255,255,0.85);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(20,71,128,0.08);
    padding: 18px 24px 10px 24px;
}

.filtros-bar input.form-control,
.filtros-bar select.form-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1rem;
    background: #f8f9fa;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(20,71,128,0.04);
    outline: none;
}

.filtros-bar input.form-control:focus,
.filtros-bar select.form-control:focus {
    border-color: #144780;
    box-shadow: 0 0 0 2px #14478033;
    background: #fff;
}

.filtros-bar select.form-control {
    cursor: pointer;
}

/* ========================================
   MODAIS
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    width: 1000px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-actions .btn {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-actions .btn-success {
    background-color: #28a745;
    color: white;
}

.modal-actions .btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* ========================================
   KANBAN LAYOUT
   ======================================== */
.kanban-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-x: auto;
    min-height: calc(100vh - 200px);
}

.kanban-column {
    background: #f4f5f7;
    border-radius: 8px;
    min-width: 300px;
    max-width: 350px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e1e5e9;
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    color: #172b4d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-count {
    background: #dfe1e6;
    color: #42526e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.column-options {
    color: #6b778c;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.column-options:hover {
    background-color: #dfe1e6;
}

.cards-container {
    min-height: 200px;
}

.kanban-card {
    background: white;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid #0079bf;
}

.kanban-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-number {
    font-size: 14px;
    font-weight: 600;
    color: #172b4d;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 4px;
}

.card-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.card-title {
    font-size: 13px;
    color: #172b4d;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6b778c;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-value {
    font-weight: 600;
    color: #42526e;
}

/* ========================================
   FORMULÁRIOS
   ======================================== */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #144780;
    box-shadow: 0 0 0 3px rgba(20, 71, 128, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   LOGIN PAGE
   ======================================== */
/* Estilo específico para a página de login */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.login-container {
    background: rgba(255,255,255,0.98);
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(20,71,128,0.20), 0 2px 12px rgba(20,71,128,0.10);
    border: 1.5px solid #e1e8ed;
    padding: 56px 36px 36px 36px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s, border 0.3s;
}

.login-container:hover {
    box-shadow: 0 16px 48px rgba(20,71,128,0.22), 0 2px 12px rgba(20,71,128,0.13);
    border: 1.5px solid #b3c6e0;
}

.login-logo {
    margin-bottom: 18px;
}

.login-logo img {
    height: 70px;
    filter: drop-shadow(0 2px 8px rgba(20,71,128,0.10));
}

.login-entity {
    margin-bottom: 28px;
}

.login-entity img {
    height: 200px;
    filter: drop-shadow(0 2px 8px rgba(20,71,128,0.10));
}

.login-title {
    font-size: 1.7rem;
    color: #144780;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(20,71,128,0.07);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-top: 10px;
}

.login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 15px 44px 15px 16px;
    border-radius: 12px;
    border: 1.5px solid #e1e8ed;
    font-size: 1.08rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(20,71,128,0.06);
}

.login-form input:focus {
    border: 1.5px solid #144780;
    box-shadow: 0 0 0 3px #b3c6e0, 0 2px 8px rgba(20,71,128,0.10);
    background: #fff;
}

.login-form input::placeholder {
    color: #b0b8c9;
    font-size: 0.98rem;
    opacity: 1;
}

.login-form button {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 0;
    font-size: 1.22rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(20,71,128,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-form button i {
    font-size: 1.25em;
}

.login-form button:hover {
    background: linear-gradient(135deg, #0f3a6b, #0a2547);
    box-shadow: 0 6px 20px rgba(20,71,128,0.16);
    transform: translateY(-2px) scale(1.03);
}

.login-footer {
    margin-top: 32px;
    color: #888;
    font-size: 1.02rem;
    letter-spacing: 0.1px;
    opacity: 0.95;
}

.login-footer i {
    color: #144780;
    margin-right: 6px;
}

.login-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 0;
    width: 100%;
    position: relative;
}

.login-group label {
    color: #144780;
    font-weight: 500;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 2px;
    opacity: 0.92;
    letter-spacing: 0.1px;
}

.senha-group {
    position: relative;
}

.senha-group input[type="password"] {
    padding-right: 44px !important;
}

.senha-group #toggleSenha {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #144780;
    font-size: 1.2em;
    padding: 0 6px;
    z-index: 2;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loginMessage {
    margin-top: 18px;
    min-height: 22px;
    font-size: 1.08rem;
    text-align: center;
}

/* ========================================
   ANIMAÇÕES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        z-index: 999;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100vw;
    }
    
    .header h1 {
        font-size: 1.2rem;
    }
    
    .form-container {
        padding: 25px;
    }
    
    .table-container {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 70vh;
    }
    
    .filtros-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 10px 8px 10px;
    }
    
    .filtros-bar input.form-control,
    .filtros-bar select.form-control {
        width: 100% !important;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 100%;
        justify-content: center;
    }
    
    .sidebar-logo img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 600px) {
    .login-container {
        padding: 24px 4vw 18px 4vw;
        max-width: 99vw;
        min-width: 0;
    }
    
    .login-logo img {
        height: 48px;
    }
    
    .login-entity img {
        height: 80px;
    }
    
    .login-title {
        font-size: 1.1rem;
    }
    
    .login-form input {
        padding: 13px 38px 13px 12px;
        font-size: 1rem;
    }
    
    #toggleSenha {
        right: 8px;
        font-size: 1.1em;
        height: 28px;
    }
    
    .senha-group input[type="password"] {
        padding-right: 38px !important;
    }
    
    .senha-group #toggleSenha {
        right: 4px;
        font-size: 1.1em;
        height: 20px;
    }
}

@media (max-width: 400px) {
    .login-container {
        max-width: 92vw;
        margin: 0 4vw;
    }
}

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

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(40, 129, 197, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 129, 197, 0.5);
}

/* ========================================
   SCROLLBAR PERSONALIZADA - KANBAN
   ======================================== */

/* Scrollbar para o container Kanban */
.kanban-container::-webkit-scrollbar {
    height: 12px;
}

.kanban-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.kanban-container::-webkit-scrollbar-thumb {
    background: 
        linear-gradient(135deg, 
            #dbab45 0%, 
            #e6b84d 15%, 
            #f0c55a 30%, 
            #dbab45 45%, 
            #d4a23e 60%, 
            #c99a3a 75%, 
            #b88a2f 100%
        ),
        radial-gradient(circle at 25% 25%, 
            rgba(219, 171, 69, 0.9) 0%, 
            rgba(230, 184, 77, 0.7) 30%, 
            rgba(219, 171, 69, 0.5) 60%, 
            rgba(184, 138, 47, 0.3) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(219, 171, 69, 0.15) 3px,
            rgba(219, 171, 69, 0.15) 6px
        );
    background-blend-mode: overlay, soft-light;
    border-radius: 6px;
    border: 2px solid rgba(219, 171, 69, 0.4);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(219, 171, 69, 0.2);
    position: relative;
}

.kanban-container::-webkit-scrollbar-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(
            ellipse at 50% 50%,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(219, 171, 69, 0.1) 1px,
            rgba(219, 171, 69, 0.1) 2px
        );
    border-radius: 6px;
    pointer-events: none;
}

.kanban-container::-webkit-scrollbar-thumb:hover {
    background: 
        linear-gradient(135deg, 
            #e6b84d 0%, 
            #f0c55a 15%, 
            #dbab45 30%, 
            #d4a23e 45%, 
            #c99a3a 60%, 
            #b88a2f 75%, 
            #a67a25 100%
        ),
        radial-gradient(circle at 75% 75%, 
            rgba(219, 171, 69, 1) 0%, 
            rgba(230, 184, 77, 0.8) 30%, 
            rgba(219, 171, 69, 0.6) 60%, 
            rgba(184, 138, 47, 0.4) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(219, 171, 69, 0.2) 3px,
            rgba(219, 171, 69, 0.2) 6px
        );
    background-blend-mode: overlay, soft-light;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 2px 4px rgba(219, 171, 69, 0.3);
}

/* Scrollbar para as colunas do Kanban */
.cards-container::-webkit-scrollbar {
    width: 8px;
}

.cards-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.cards-container::-webkit-scrollbar-thumb {
    background: 
        linear-gradient(135deg, 
            #dbab45 0%, 
            #e6b84d 30%, 
            #dbab45 60%, 
            #c99a3a 100%
        ),
        radial-gradient(circle at 40% 40%, 
            rgba(219, 171, 69, 0.8) 0%, 
            rgba(230, 184, 77, 0.6) 50%, 
            rgba(219, 171, 69, 0.4) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(219, 171, 69, 0.12) 2px,
            rgba(219, 171, 69, 0.12) 4px
        );
    background-blend-mode: overlay, soft-light;
    border-radius: 4px;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.4),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.cards-container::-webkit-scrollbar-thumb:hover {
    background: 
        linear-gradient(135deg, 
            #e6b84d 0%, 
            #f0c55a 30%, 
            #dbab45 60%, 
            #c99a3a 100%
        ),
        radial-gradient(circle at 60% 60%, 
            rgba(219, 171, 69, 0.9) 0%, 
            rgba(230, 184, 77, 0.7) 50%, 
            rgba(219, 171, 69, 0.5) 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(219, 171, 69, 0.18) 2px,
            rgba(219, 171, 69, 0.18) 4px
        );
    background-blend-mode: overlay, soft-light;
    box-shadow: 
        inset 0 1px 3px rgba(255, 255, 255, 0.5),
        inset 0 -1px 3px rgba(0, 0, 0, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Scrollbar para o conteúdo principal */
.main-content::-webkit-scrollbar {
    width: 10px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.main-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* ========================================
   ESTILOS ESPECÍFICOS PARA PÁGINAS DE CADASTRO
   ======================================== */
.page-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #144780;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-header-text {
    flex: 1;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header h2 i {
    color: #144780;
    font-size: 1.6rem;
}

.page-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.table-section-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #144780;
}

.table-section-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-section-header h3 i {
    color: #144780;
    font-size: 1.6rem;
}

/* ========================================
   ESTILOS DO FORMULÁRIO BONITO
   ======================================== */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #144780;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e8ed;
}

.form-header h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h3 i {
    color: #144780;
    font-size: 1.6rem;
}

.entidade-form {
    width: 100%;
}

.form-section {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row.three-columns {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row.single-column {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    height: 48px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #144780;
    box-shadow: 0 0 0 3px rgba(20, 71, 128, 0.1);
}

.form-group input::placeholder {
    color: #999;
    font-size: 0.95rem;
}

.form-group small {
    color: #888;
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    height: 48px;
    box-sizing: border-box;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #144780, #0d2f5a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0f3a6b, #0a2547);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Responsividade para o formulário */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row.three-columns {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}
