


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body {
    background-color: #f8fafc;
    color: #0f172a;
    height: 100vh;
    overflow: hidden;
}
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- SIDEBAR REVISADA --- */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 16px;
    flex-shrink: 0;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 8px;
    margin-bottom: 32px;
}
.logo-icon {
    background: #2563eb;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}
.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.02em;
}
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}
.nav-item.active {
    background: #f1f5f9;
    color: #1e293b;
}
.nav-item:hover:not(.active) {
    background: #f8fafc;
    color: #0f172a;
}
.sidebar-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}
.user-avatar {
    width: 42px;
    height: 42px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid #dbeafe;
    flex-shrink: 0;
}
.user-details p {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}
.user-details span {
    font-size: 12px;
    color: #94a3b8;
}
.logout-btn {
    color: #94a3b8;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}
.logout-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* --- CONTEÚDO PRINCIPAL E BOTÕES --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.header-title p {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #1d4ed8;
}

/* --- CARDS DE MÉTRICAS SUAVIZADOS --- */
.page-body {
    padding: 40px;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
}
.metric-label {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 6px;
    letter-spacing: -0.03em;
}

/* --- CONTAINER DA TABELA MODIFICADO PARA ROLAGEM --- */
.table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    
}

/* Faz o cabeçalho ficar fixo no topo durante a rolagem */
.custom-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8fafc; /* Cor de fundo idêntica para não ficar transparente */
    border-bottom: 1px solid #e2e8f0;
}

/* Garante que os cantos arredondados de cima continuem perfeitos na rolagem */
.table-container::-webkit-scrollbar {
    width: 8px;
}
.table-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}
.table-container::-webkit-scrollbar-track {
    background: transparent;
}
}
.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-input {
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    width: 240px;
    transition: all 0.2s;
}
.search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* --- CORREÇÃO DA TABELA E BADGES --- */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.custom-table th {
    background: #f8fafc;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}
.custom-table td {
    padding: 16px 24px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}
/* --- CONFIGURAÇÃO VISUAL DOS BADGES BLINDADOS --- */
.badge {
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    letter-spacing: 0.02em !important;
    text-align: center !important;
}

/* Verde Menta Suave para Concluída */
.badge-concluido { 
    background-color: #ecfdf5 !important; 
    color: #065f46 !important; 
    border: 1px solid #a7f3d0 !important;
}

/* Azul Índigo Moderno para Em Andamento */
.badge-andamento { 
    background-color: #eff6ff !important; 
    color: #1e40af !important; 
    border: 1px solid #bfdbfe !important;
}

/* Vermelho Coral para Erro */
.badge-erro { 
    background-color: #fef2f2 !important; 
    color: #991b1b !important; 
    border: 1px solid #fecaca !important;
}

/* Âmbar / Mel Corporativo para Pendente */
.badge-pendente { 
    background-color: #fffbeb !important; 
    color: #92400e !important; 
    border: 1px solid #fde68a !important;
}

/* Âmbar / Mel Corporativo para Pendente */
.badge-pendente { 
    background-color: #fffbeb !important; 
    color: #92400e !important; 
    border: 1px solid #fde68a !important;
}

/* --- DESIGN DOS MODAIS FLUTUANTES --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 20px;
}
.close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #94a3b8;
    cursor: pointer;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    margin-bottom: 6px;
}
.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}


/* Conteúdo do seu arquivo dashboard.css */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background-color: #f8f9fa !important;
}

.iframe-container {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
}

.iframe-full {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* --- CLASSES DE AJUSTE PARA O IFRAME INTEGRADO --- */
.dashboard-workspace {
    flex: 1; /* Ocupa todo o espaço vertical restante abaixo do cabeçalho */
    width: 100%;
    position: relative;
    background-color: #ffffff;
}

.iframe-embedded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



