@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');


@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-purple: #1e0b2b;
  --secondary-purple: #2b0c3d;
  --primary-orange: #ff6a00;
  --light-orange: #fff0e6;
  --bg-body: #f5f6fa;
  --text-main: #2c3e50;
  --text-muted: #6c757d;
  --border-radius: 8px;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Espaço para a navbar fixa */

}

/* --- NAVBAR (Topo) --- */
.navbar-custom {
  background-color: var(--primary-purple);
  height: 70px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 0 2rem;
  transition: all 0.3s;
}

.brand-area {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.brand-logo-bg {
  background: var(--primary-orange);
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.brand-text { color: white; line-height: 1.1; }
.brand-title { font-weight: 700; font-size: 16px; letter-spacing: -0.5px; }
.brand-subtitle { font-size: 10px; opacity: 0.8; letter-spacing: 1px; text-transform: uppercase; }

/* Menu Central (Pills) */
.nav-pills-custom {
  background: rgba(255,255,255,0.05);
  border-radius: 50px; padding: 4px; display: flex; gap: 4px; border: 1px solid rgba(255,255,255,0.1);
}
.nav-link-custom {
  color: rgba(255,255,255,0.7);
  padding: 8px 20px; border-radius: 50px; font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s;
}
.nav-link-custom:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link-custom.active { background-color: rgba(255,255,255,0.2); color: white; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* Perfil & Dropdowns */
.user-profile-area { display: flex; align-items: center; gap: 16px; }
.user-info { text-align: right; line-height: 1.3; color: white; }
.user-name { font-size: 13px; font-weight: 600; display: block; }
.user-role { font-size: 11px; opacity: 0.7; background: rgba(255,255,255,0.1); padding: 1px 6px; border-radius: 4px; }

.avatar-circle {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; text-transform: uppercase;
  background-color: var(--light-orange); color: var(--primary-orange);
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: transform 0.2s;
}
.avatar-circle:hover { transform: scale(1.05); }

/* CORREÇÃO DO DROPDOWN (Adeus Azul) */
.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 8px;
  margin-top: 10px !important;
  animation: slideIn 0.2s ease;
}


@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.dropdown-item {
  border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 500; color: var(--text-main); transition: all 0.2s;
}
.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--light-orange);
  color: var(--primary-orange);
}
.dropdown-item.active, .dropdown-item:active {
  background-color: var(--primary-orange);
  color: white;
}
.dropdown-divider { border-top-color: #f0f0f0; margin: 8px 0; }
.dropdown-header { color: #999; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 16px; }

/* --- CONTAINERS & CARDS --- */
.page-header-block { margin: 30px 0 25px 0; display: flex; justify-content: space-between; align-items: end; }
.page-title { font-size: 26px; font-weight: 700; color: var(--primary-purple); margin: 0; letter-spacing: -0.5px; }
.page-subtitle { color: var(--text-muted); font-size: 14px; margin-top: 5px; }

.table-card {
  background: white; border-radius: 12px;
  box-shadow: var(--card-shadow); border: 1px solid rgba(0,0,0,0.02);
  overflow: hidden; margin-bottom: 30px;
}

/* --- FORMS (Adeus Foco Azul) --- */
.form-control, .form-select {
  border-radius: 8px; border: 1px solid #e0e0e0; padding: 10px 14px; font-size: 14px; color: var(--text-main);
  background-color: #fcfcfc; transition: all 0.2s;
}
.form-control:focus, .form-select:focus {
  background-color: white; border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15); /* Glow Laranja */
  color: var(--text-main);
}
.form-label { font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; letter-spacing: 0.5px; }

/* Toggles (Switch) */
.form-check-input {
  cursor: pointer;
  border: 1px solid #ddd;
  background-color: #eee;
}
.form-check-input:checked {
  background-color: var(--primary-orange); border-color: var(--primary-orange);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-input:focus { border-color: var(--primary-orange); box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.25); }

/* --- BOTÕES --- */
.btn-primary-stanza {
  background-color: var(--primary-purple); color: white; border: none;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-primary-stanza:hover { background-color: #381050; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43, 12, 61, 0.2); color: white; }
.btn-primary-stanza:disabled { background-color: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary-stanza {
  background-color: white; color: var(--text-muted); border: 1px solid #e0e0e0;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn-secondary-stanza:hover { background-color: #f8f9fa; color: var(--primary-purple); border-color: #ccc; }

/* Ícones de Ação */
.action-btn {
  width: 32px; height: 32px; border-radius: 6px; border: none; background: transparent;
  color: #999; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.action-btn:hover { background-color: var(--light-orange); color: var(--primary-orange); }

/* --- TABELAS --- */
.table-custom { width: 100%; border-collapse: separate; border-spacing: 0; }
.table-custom thead th {
  background-color: var(--primary-purple); color: white; font-size: 11px; text-transform: uppercase; font-weight: 700;
  padding: 16px 20px; border-bottom: 2px solid rgba(0,0,0,0.1); letter-spacing: 0.5px;
}
.table-custom tbody td {
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; color: var(--text-main); font-size: 14px;
}
.table-custom tr:hover td { background-color: #fafbfd; }
.table-footer {
  padding: 15px 25px; border-top: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff;
}
.pagination-link {
  color: var(--text-muted); padding: 6px 14px; border-radius: 6px; font-size: 13px; text-decoration: none; border: 1px solid #eee; transition: all 0.2s; margin-left: 5px;
}
.pagination-link:hover { border-color: var(--primary-orange); color: var(--primary-orange); background: var(--light-orange); }
.pagination-link.disabled { opacity: 0.5; pointer-events: none; }

/* --- CARDS DASHBOARD (Visão Geral) --- */
.dash-card {
  background: white; 
  border-radius: 12px; 
  padding: 25px; 
  height: 25rem;
  border-top: 4px solid var(--primary-orange);
  box-shadow: var(--card-shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.dash-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.dash-icon {
  width: 48px; height: 48px; background: #f8f9fa; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--primary-purple); margin-bottom: 20px; font-size: 24px; transition: 0.2s;
}
.dash-card:hover .dash-icon { background: var(--primary-purple); color: white; }
.dash-title { font-size: 18px; font-weight: 700; color: var(--primary-purple); margin-bottom: 10px; }
.dash-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 20px; height: 40px; overflow: hidden; }

/* Container de links com scroll */
.dash-links-container {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 15px;
}

/* Scroll personalizado */
.dash-links-container::-webkit-scrollbar {
  width: 6px;
}
.dash-links-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.dash-links-container::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 10px;
}
.dash-links-container::-webkit-scrollbar-thumb:hover {
  background: #e55a00;
}

.dash-link {
  display: flex; align-items: center; gap: 8px; color: var(--text-main); text-decoration: none;
  padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 14px; transition: 0.2s;
}
.dash-link:hover { color: var(--primary-orange); padding-left: 5px; }
.dash-link:last-child { border-bottom: none; }

/* Busca */
.search-wrapper { position: relative; width: 280px; }
.search-wrapper input { padding-left: 40px; border-radius: 50px; background: white; border: 1px solid #e0e0e0; }
.search-wrapper .icon { position: absolute; left: 14px; top: 10px; color: #aaa; font-size: 18px; }

/* Toast */
.toast { border-radius: 10px; overflow: hidden; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

:root {
  --primary-purple: #1e0b2b; /* Roxo escuro do header */
  --primary-orange: #ff6a00; /* Laranja Stanza */
  --bg-body: #f5f6fa; /* Cinza de fundo bem claro */
  --text-dark: #333333;
  --text-muted: #888888;
  --border-color: #e0e0e0;
  --card-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
    padding-top: 80px; /* Espaço para a navbar fixa */

}

/* --- NAVBAR SUPERIOR --- */
.navbar-custom {
  background-color: var(--primary-purple);
  height: 70px;
  box-shadow: 0 4px 4px rgba(0,0,0,0.1);
  padding: 0 2rem;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.brand-logo-bg {
  background: var(--primary-orange);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  line-height: 1.2;
}
.brand-title { font-weight: 700; font-size: 16px; color: white; display: block; }
.brand-subtitle { font-size: 10px; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; color: white; display: block;}

/* Menu Central */
.nav-pills-custom {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 4px;
  display: flex;
  gap: 5px;
}

.nav-link-custom {
  color: rgba(255,255,255,0.7);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-link-custom:hover { color: white; }
.nav-link-custom.active {
  background-color: rgba(255,255,255,0.15);
  color: white;
  font-weight: 600;
}

/* Perfil Usuário */
.user-profile-area {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.user-info {
  text-align: right;
  line-height: 1.2;
}
.user-name { font-size: 13px; font-weight: 600; display: block; }
.user-email { font-size: 11px; opacity: 0.6; display: block; }

.avatar-circle {
  width: 36px;
  height: 36px;
  background-color: #ffcc99; /* Cor pastel para avatar */
  color: #553300;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

/* --- CARDS PADRÃO --- */
.card-stanza {
  background: white;
  border: none;
  border-radius: 8px;
  border-top: 4px solid var(--primary-orange);
  box-shadow: var(--card-shadow);
  padding: 24px;
  height: 100%;
  transition: transform 0.2s;
}

.card-stanza:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-icon-box {
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-purple);
}

.card-title-custom {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.status-badge {
  background-color: #e6f7ed;
  color: #00a84e;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  float: right;
}

.dash-list-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  transition: padding-left 0.2s;
}
.dash-list-item:hover {
  color: var(--primary-orange);
  padding-left: 5px;
}
.dash-list-item i { margin-right: 8px; font-size: 16px; color: var(--primary-orange); }

/* --- TABELAS (Gestão Usuários) --- */
.table-header-custom {
  background-color: var(--primary-purple);
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 15px 20px;
}

.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
}

.table-custom thead th {
  background-color: #1e0b2b; /* Roxo mais escuro ainda para o head */
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 15px;
  border-bottom: none;
  letter-spacing: 0.5px;
}
.table-custom thead th:first-child { border-top-left-radius: 8px; }
.table-custom thead th:last-child { border-top-right-radius: 8px; }

.table-custom tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #444;
  font-size: 14px;
}

.table-custom tbody tr:hover { background-color: #fafafa; }

/* Toggles (Switches) Laranja */
.form-check-input:checked {
  background-color: var(--primary-orange);
  border-color: var(--primary-orange);
}
.form-check-input:focus {
  border-color: #ffb380;
  box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.25);
}

/* Botões de Ação da Tabela */
.action-icon {
  color: #888;
  margin: 0 5px;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.action-icon:hover { color: var(--primary-purple); }

/* --- LOGIN PAGE --- */
.login-bg {
  background-color: #f4f6f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 40px;
  border-radius: 8px;
  border-top: 4px solid var(--primary-orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: center;
}
.login-input-group {
  position: relative;
  margin-bottom: 15px;
}
.login-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  color: #aaa;
}
.login-input {
  width: 100%;
  padding: 12px 12px 12px 40px; /* espaço para icone */
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fcfcfc;
  outline: none;
}
.login-input:focus { border-color: var(--primary-orange); background: white; }

.btn-login-orange {
  width: 100%;
  background-color: var(--primary-orange);
  color: white;
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: 6px;
  margin-top: 20px;
  text-transform: uppercase;
  font-size: 14px;
}
.btn-login-orange:hover { background-color: #e65f00; color: white;}
.btn-login-orange:disabled { background-color: #ccc; }

/* PAGE HEADER (Títulos das páginas) */
.page-header-block {
  margin-bottom: 30px;
}
.page-title { font-size: 24px; font-weight: 700; color: #1e0b2b; margin-bottom: 5px; }
.page-subtitle { color: #888; font-size: 14px; }

/* Botão Novo Usuário */
.btn-dark-purple {
  background-color: #1e0b2b;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.btn-dark-purple:hover { opacity: 0.9; color: white; }

/* Dashboard Iframe Full */
.iframe-container {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    height: calc(100vh - 100px);
}