@charset "UTF-8";
/******************************
  Variables 
******************************/
:root {
  /* Core semantic colors */
  --color-primary: #5077EE;
  --color-secondary: #F56D5B;
  --color-success: #66CD4C;
  --color-danger: #F23B65;
  --color-warning: #F5E360;
  --color-info: #4FAAEF;
  --color-info-light: #e3f2fd;
  /* Aliases / theme mapping (used across styles) */
  --primary-color: var(--color-primary);
  --secondary-color: var(--color-secondary);
  --accent-color: var(--amarelo-bd, #ffc107);
  /* Navbar / layout */
  --navbar-bg: #f8f9fa;
  --navbar-border: #e9ecef;
  --navbar-hover: rgb(168, 199, 233);
  --navbar-text: #333;
  /* Sizes */
  --sidebar-width: 250px;
  --header-height: 60px;
  /* Borders / surfaces */
  --border-base: #f8f9fa;
  --border-light: #e3e9f0;
  --border-color: var(--navbar-border);
  /* Text */
  --text-primary: #272c32;
  --text-secundary: #576b7d;
  --text-color: var(--navbar-text);
  /* Misc */
  --amarelo-bd: #F5E360;
  --ouro: linear-gradient(45deg, #eb972a 0%, #ffd700 100%);
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  /* UI tokens */
  --card-radius: 12px;
  --transition-speed: 0.3s;
}

/******************************
Rotating Word Styles
******************************/
.rotating-word {
  background: var(--ouro);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: opacity 1s ease;
}

/******************************
Elementos e UI
******************************/
.positive {
  color: var(--color-success);
}

.neutral {
  color: var(--color-warning);
}

.negative {
  color: var(--color-danger);
}

.hidden {
  display: none;
}

input[type=email],
input[type=password],
input[type=text] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color var(--transition-speed);
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Exo 2", sans-serif;
}

body {
  background-color: var(--navbar-bg);
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.date-range {
  font-size: small;
  color: #adb8c5;
}

.field-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: none;
  min-width: 180px;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

/******************************
  Notifications & Messages 
*******************************/
.error-message,
.success-message {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-weight: 500;
  display: none;
  animation: slideIn 0.3s ease-out;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 300px;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid var(--color-danger);
  border-left: 4px solid var(--color-danger);
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid var(--color-success);
  border-left: 4px solid var(--color-success);
}

.fade-out {
  animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
/******************************
  Login Page Styles - Minimalist
******************************/
.container-caixalogin {
  background-color: white;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  max-width: 600px;
  width: 100%;
  margin: 1rem auto;
  border: 1px solid var(--border-light);
}
.container-caixalogin button {
  margin-top: 10px;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
  font-size: large;
}
.container-caixalogin button:hover {
  background-color: #3a5fc7;
}
.container-caixalogin button:disabled {
  background-color: var(--text-secundary);
  cursor: not-allowed;
}
.container-caixalogin #sendCodeBtn {
  background-color: var(--color-secondary);
}
.container-caixalogin #sendCodeBtn:hover {
  background-color: #3a5fc7;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-secundary);
  transition: color var(--transition-speed);
  font-size: large;
}

.esquecisenha {
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-top: 5px;
  text-align: right;
  width: 100%;
  display: block;
}

.esquecisenha:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

.tab.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-secundary);
}

.help-text {
  font-size: 0.875rem;
  color: var(--text-secundary);
  margin-top: 0.5rem;
}

.secondary-options {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.back-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.verification-status {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.verification-status.success {
  color: var(--color-success);
}

.verification-status.error {
  color: var(--color-danger);
}

.password-strength {
  margin-top: 0.5rem;
}

.password-strength-meter {
  height: 6px;
  background-color: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-speed);
}

.password-strength-meter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width var(--transition-speed), background-color var(--transition-speed);
}

.password-strength-meter.strength-weak::before {
  width: 33%;
  background-color: var(--color-danger);
}

.password-strength-meter.strength-medium::before {
  width: 66%;
  background-color: var(--color-warning);
}

.password-strength-meter.strength-strong::before {
  width: 100%;
  background-color: var(--color-success);
}

.password-strength-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-speed);
}

.password-strength-text.strength-weak {
  color: var(--color-danger);
}

.password-strength-text.strength-medium {
  color: var(--color-warning);
}

.password-strength-text.strength-strong {
  color: var(--color-success);
}

.password-tips {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--color-info-light);
  border-radius: 6px;
}

.password-tips h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.password-tips ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.password-tips li {
  font-size: 0.875rem;
  color: var(--text-secundary);
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.25rem;
}

.password-tips li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--text-secundary);
  font-weight: bold;
  transition: all var(--transition-speed);
}

.password-tips li.checked::before {
  content: "✓";
  color: var(--color-success);
}

.password-tips li.checked {
  color: var(--text-primary);
}

/* Spinner for buttons */
.spinner {
  margin: 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/******************************
Navbar Styles - top and sidebar
******************************/
/* 
==============================================
NAVBAR UNIFICADO - CONTÉM ESTILOS PARA:
- Navbar horizontal (top)
- Navbar lateral (sidebar)
==============================================
*/
/* Aviso de manutenção flutuante */
.maintenance-alert-floating {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.maintenance-icon {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.maintenance-icon i {
  font-size: 1rem;
  animation: rotate 2s infinite linear;
}

.maintenance-tooltip {
  position: absolute;
  top: 0;
  right: 60px;
  /* Posiciona o tooltip à esquerda do ícone */
  background-color: var(--color-primary);
  color: #fff;
  padding: 15px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.maintenance-tooltip:after {
  content: "";
  position: absolute;
  top: 10px;
  right: -10px;
  /* Posiciona a seta à direita do tooltip */
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--color-primary);
  /* Altera a direção da seta */
}

.maintenance-icon:hover + .maintenance-tooltip {
  opacity: 1;
  visibility: visible;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Versão responsiva do tooltip de manutenção */
@media (max-width: 1000px) {
  .maintenance-alert-floating {
    top: 70px;
  }
  .maintenance-tooltip {
    right: 0;
    top: 60px;
  }
  .maintenance-tooltip:after {
    top: -10px;
    right: 10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--color-primary);
    border-top: none;
  }
}
/*==============================================
  NAVBAR HORIZONTAL (TOP) - Styles
==============================================*/
/* Configuração de corpo para navbar top */
body.using-top-navbar {
  padding-top: 76px;
  /* Espaço para o navbar fixo */
}

/* Navbar Horizontal */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 999;
  height: 75px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 0px 0 20px;
  display: flex;
}

.top-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.top-navbar .navbar-logo img {
  height: 40px;
}

.top-navbar .navbar-menu {
  display: flex;
  align-items: center;
}

.top-navbar .navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.top-navbar .nav-item {
  position: relative;
  margin: 0 10px;
}

.top-navbar .nav-link {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 5px;
}

.top-navbar .nav-link i {
  margin-right: 8px;
  font-size: 16px;
  color: var(--secondary-color);
}

.top-navbar .nav-link:hover {
  background-color: var(--secondary-color);
  color: white;
}

.top-navbar .nav-link:hover i {
  color: var(--accent-color);
}

.top-navbar .navbar-right {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.top-navbar .login-btn {
  background-color: var(--secondary-color);
  color: white !important;
  border-radius: 5px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  margin-right: 20px;
}

.top-navbar .login-btn:hover {
  background-color: var(--primary-color);
}

.top-navbar .login-btn i {
  color: white;
}

.top-navbar .login-btn:hover i {
  color: var(--accent-color);
}

/* Dropdown menus para top-navbar */
.top-navbar .dropdown {
  position: relative;
}

.top-navbar .dropdown-toggle {
  padding: 10px 15px;
}

.top-navbar .dropdown-toggle:hover {
  background-color: transparent;
  color: var(--dark-color);
}

.top-navbar .dropdown-toggle:hover i {
  color: var(--color-primary);
}

.top-navbar .dropdown-toggle::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
}

.top-navbar .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  min-width: 300px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  padding: 8px 0;
  z-index: 1001;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.top-navbar .dropdown-menu.dropdown-menu-right {
  left: auto;
  right: 0;
}

.top-navbar .dropdown-menu.show {
  display: block;
}

.top-navbar .dropdown-menu li {
  list-style: none;
}

.top-navbar .dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.top-navbar .dropdown-menu a i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  color: var(--secondary-color);
}

.top-navbar .dropdown-menu a:hover {
  background-color: var(--secondary-color);
  color: white;
}

.top-navbar .dropdown-menu a:hover i {
  color: var(--accent-color);
}

/* Titles inside dropdown menus (top navbar) */
.dropdown-section-title {
  margin-bottom: 10px;
  display: block;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

/* Mobile toggle button para top-navbar */
.top-navbar .mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color);
  cursor: pointer;
}

/*==============================================
  NAVBAR LATERAL (SIDEBAR) - Styles
==============================================*/
/* Estilos específicos para o navbar lateral */
.sidebar-navbar {
  color: var(--navbar-text);
  height: 100vh;
  width: var(--sidebar-width);
  position: fixed;
  left: 0;
  top: 0;
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.sidebar-navbar-brand {
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  background-color: var(--navbar-bg);
  width: 100%;
}

.sidebar-navbar .navbar-brand img {
  max-width: 170px;
}

.sidebar-navbar .navbar-brand {
  display: flex;
  justify-content: center;
  background-color: white;
  padding: 50px 0;
  border-radius: 10px;
  border: 1px solid var(--navbar-border);
}

.sidebar-profile-navbar {
  padding: 10px;
  background-color: var(--navbar-bg);
}

.sidebar-navbar-menu-semperfil {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.sidebar-mobile-header .navbar-brand {
  display: flex;
  justify-content: end;
  padding-right: 10px;
}

.sidebar-mobile-header .navbar-brand img {
  height: 30px;
}

.sidebar-navbar-nav {
  display: flex;
  flex-direction: column;
  padding: 10px;
  flex-grow: 1;
  background-color: var(--navbar-bg);
  overflow-y: auto;
}

.sidebar-nav-item {
  margin-top: 10px;
  list-style-type: none;
  border-radius: 5px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--navbar-text);
  background-color: var(--navbar-bg);
  transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
  background-color: var(--color-secondary);
  color: white;
}

.sidebar-nav-link:hover i {
  color: var(--amarelo-bd);
}

.sidebar-nav-link i {
  margin-right: 15px;
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: var(--color-secondary);
}

.sidebar-nav-link span {
  font-size: 16px;
}

/* Section titles inside navbars */
.sidebar-section-title {
  display: block;
  margin-top: 10px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-navbar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--navbar-bg);
}

.sidebar-versaoapp {
  font-size: small;
  white-space: nowrap;
  color: var(--color-primary);
}

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  color: var(--color-danger);
}

.sidebar-logout-btn i {
  margin-right: 10px;
}

.sidebar-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--navbar-bg);
  padding: 0 20px;
  z-index: 900;
  align-items: center;
}

/* Burger Menu Variables */
.burger {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  width: 45px;
  height: 35px;
  padding: 10px;
  cursor: pointer;
  overflow: hidden;
  background: none;
  border: none;
  /* BURGER FOUR - Animated style */
}
.burger span {
  width: 100%;
  height: 3px;
  background-color: #bbc4ce;
  transition: all 0.25s;
  border-radius: 2px;
}
.burger.activated span {
  background-color: var(--color-primary);
}
.burger.four.activated span:nth-child(1), .burger.four.activated span:nth-child(3) {
  width: 80%;
}
.burger.four.activated span:nth-child(2) {
  width: 50%;
  transform: translateX(100%);
}

/* Dropdown Styles para sidebar (genérico) */
.sidebar-dropdown-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #2c3e50;
  border-radius: 4px;
  padding: 0.5rem 0;
  min-width: 200px;
  z-index: 1000;
}

.sidebar-dropdown-menu li {
  padding: 0;
  margin: 0;
}

.sidebar-dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.sidebar-dropdown-menu a:hover {
  background-color: #3498db;
}

.sidebar-dropdown-menu i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Para dispositivos móveis - sidebar */
@media (max-width: 1000px) {
  .sidebar-dropdown-menu {
    position: static;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1rem;
  }
  .sidebar-blog-admin-dropdown .dropdown-toggle:after {
    display: none;
  }
  .sidebar-navbar {
    transform: translateX(-100%);
  }
  .sidebar-navbar.show {
    transform: translateX(0);
    z-index: 98;
    border-right: 1px solid var(--navbar-border);
  }
  .sidebar-mobile-header {
    display: flex;
    justify-content: space-between;
    z-index: 99;
  }
  .main-content {
    margin-left: 10px;
    padding-top: calc(var(--header-height) - 9px);
    margin-right: 10px;
  }
  .sidebar-navbar .navbar-brand {
    display: none;
  }
  .sidebar-navbar-nav {
    margin-top: var(--header-height);
    border-top: 1px solid var(--navbar-border);
  }
  .sidebar-navbar-brand {
    padding: 0;
    padding-left: 20px;
  }
  .top-navbar .dropdown-menu {
    width: calc(100vw - 20px);
  }
}
/* Estilo para o indicador de premium */
.sidebar-premium-badge {
  margin: 10px 0;
  text-align: center;
}

.sidebar-premium-indicator {
  background-color: #ffd700;
  color: #333;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9em;
  font-weight: bold;
  display: inline-block;
}

.sidebar-premium-indicator i {
  color: #ff9800;
  margin-right: 5px;
}

.sidebar-premium-indicator small {
  display: block;
  font-size: 0.8em;
  margin-top: 2px;
}

/* Estilo para o link de upgrade */
.sidebar-upgrade-link {
  color: #ff9800 !important;
  font-weight: bold;
}

.sidebar-upgrade-link i {
  color: #ff9800;
}

.badge-premium {
  background-color: #ffd700;
  color: #333;
  display: inline-block;
  padding: 3px 6px;
  font-size: 0.7em;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: bold;
}

.badge-premium i {
  color: #ff9800 !important;
  margin-right: 2px;
  font-size: 0.9em;
}

/***************************************************
Caderno.php - Estilos específicos para a página do caderno
****************************************************/
.chat-container {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  height: calc(100dvh - 20px);
  border: 1px solid var(--navbar-border);
}

.chat-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgb(255, 255, 255) 20%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.chat-container.scrolled::after {
  opacity: 1;
}

/* Container para sidebar */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  margin-right: 10px;
  border-radius: 8px;
}

.maingeral-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  min-height: calc(100dvh - 20px);
  border: 1px solid var(--navbar-border);
}

.container {
  margin: 10px auto;
}

@media (max-width: 1000px) {
  .main-content {
    margin-left: 10px;
    padding-top: calc(var(--header-height) - 9px);
    margin-right: 10px;
  }
  .chat-container {
    height: calc(100dvh - 11px - var(--header-height));
  }
}
/******************************
  Modal Styles 
******************************/
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.close-modal {
  align-self: flex-end;
  max-width: 35px;
  width: 100%;
  text-align: center;
  background-color: var(--color-primary);
  color: white;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 20px;
  border-radius: 8px;
  height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .flex-gap {
    flex-direction: column;
  }
  /* Ações de parcelas automáticas */
  .recurring-copy-actions {
    flex-direction: column-reverse !important;
  }
}
button i {
  font-size: 1rem;
}

/******************************
  ACCORDION | CADERNO.PHP
*******************************/
.accordion-header {
  width: 100%;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s linear;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.accordion-header:hover,
.accordion-header.is-open {
  background-color: var(--color-primary);
  color: white;
}

.accordion-header.is-open {
  border-radius: 4px 4px 0 0;
}

.accordion-content {
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out;
}
.accordion-content .no-expenses {
  text-align: center;
  margin: 0 auto;
  background-color: #f1f8ff;
  font-size: 0.9em;
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 15px;
  border-radius: 20px;
}

.no-more-message {
  text-align: center;
  margin: 0 auto;
  background-image: var(--ouro);
  font-size: 0.9em;
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 15px;
  border-radius: 20px;
  color: white;
}

#futureExpenses {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-top: 15px;
  padding-bottom: 15px;
  gap: 15px;
}

.accordion-content.is-open {
  overflow-y: auto;
}

.future-header {
  padding: 2px;
  background-color: var(--navbar-bg);
  color: var(--color-primary);
}

.chat-container .accordion {
  padding-left: 15px;
  padding-right: 15px;
}

.sugestoes-header {
  background-color: var(--color-primary);
  color: white;
}

.future-badge {
  margin-right: 5px;
  font-size: 0.8em;
}

/**************************
TAGS 
***************************/
button.add-tags {
  border: 1px solid var(--color-success);
  background-color: rgb(235, 251, 235);
  color: black;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 4px;
  align-self: flex-start;
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.configetags {
  display: flex;
  gap: 10px;
  padding: 15px;
  padding-bottom: 10px;
  /* Alias em inglês - o JS usa 'investment' como category_type */
}
.configetags button {
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.configetags .config {
  border: 1px dashed gray;
  background-color: transparent;
  color: gray;
}
.configetags .tags-container {
  overflow-x: hidden;
  white-space: nowrap;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  display: flex;
  gap: 10px;
}
.configetags .tags-container.grabbing {
  cursor: grabbing;
}
.configetags .tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}
.configetags .tag-color {
  width: 20px;
  height: 20px;
  border-radius: 100%;
}
.configetags .tag.selected {
  color: black !important;
  background-color: white !important;
}
.configetags .tag {
  display: flex;
  gap: 5px;
}
.configetags .tag i {
  font-size: 0.6rem;
  padding-top: 4px;
}
.configetags .tag.income {
  border-left: 2px solid var(--color-success) !important;
}
.configetags .tag.investimento, .configetags .tag.investment {
  border-left: 2px solid var(--color-info) !important;
}
.configetags .tag.expense {
  border-left: 2px solid var(--color-danger) !important;
}
.configetags .tag.investimento {
  border-left: 2px solid var(--color-info) !important;
}
.configetags .tag.investment {
  border-left: 2px solid var(--color-info) !important;
}

/******************************
tags modal
*******************************/
.containersugestoesetags {
  overflow-y: auto;
  flex: 1;
  min-height: 100px;
  border: 1px dashed var(--border-light);
  border-radius: 4px;
  margin-top: 20px;
}
.containersugestoesetags .accordion {
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
}
.containersugestoesetags .accordion-header {
  width: 100%;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s linear;
}
.containersugestoesetags .accordion-content {
  background-color: white;
  max-height: 0;
  transition: max-height 0.2s ease-in-out;
}
.containersugestoesetags .tags-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 20px;
  overflow-y: auto;
  padding: 10px;
  flex: 1;
}
.containersugestoesetags .tag-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  background: var(--border-base);
  border-radius: 4px;
  border: 1px solid var(--border-light);
  padding-left: 15px;
  cursor: pointer;
}
.containersugestoesetags button {
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.containersugestoesetags .edit-tags {
  border: 1px solid var(--color-primary);
  background-color: rgb(221, 238, 255);
  color: black;
}
.containersugestoesetags .delete-tags {
  border: 1px solid var(--color-danger);
  background-color: rgb(250, 216, 216);
  color: black;
}
.containersugestoesetags .tag-actions {
  display: flex;
  gap: 4px;
  position: relative;
  z-index: 4;
}
.containersugestoesetags .tag-preview {
  display: flex;
  gap: 10px;
  align-items: center;
}
.containersugestoesetags .tag-preview i {
  font-size: small;
  color: #adb8c5;
  margin-left: 3px;
}
.containersugestoesetags .tag-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 2px;
  margin-top: 3px;
}
.containersugestoesetags .input-group {
  display: flex;
  gap: 10px;
}
.containersugestoesetags .color-picker {
  cursor: pointer;
  text-indent: 28px;
}
.containersugestoesetags .clr-field button {
  border-radius: 100% !important;
  width: 20px !important;
  height: 20px !important;
  left: 10px !important;
}
.containersugestoesetags .char-counter {
  font-size: 0.6rem;
  color: #666;
  position: absolute;
  right: 8px;
  bottom: 5px;
  pointer-events: none;
  z-index: 2;
}
.containersugestoesetags .char-counter.limit-reached {
  color: #e74c3c;
  font-weight: bold;
}
.containersugestoesetags .descricaoecounter {
  position: relative;
  display: flex;
  width: 100%;
}
.containersugestoesetags #description {
  width: 100%;
}
.containersugestoesetags #description:invalid {
  border: 1px solid #e74c3c;
}
.containersugestoesetags .containersugestoesetags {
  overflow-y: auto;
  flex: 1;
  min-height: 100px;
  border: 1px dashed var(--border-light);
  border-radius: 4px;
  margin-top: 20px;
}
.containersugestoesetags .form-buttons {
  display: flex;
  gap: 5px;
  width: 100%;
}
.containersugestoesetags .category-select {
  flex: 1;
}
.containersugestoesetags .category-section-header {
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.coloreactions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  height: 100%;
}

.flex-element {
  flex: 1;
}

.color-picker {
  cursor: pointer;
  text-indent: 28px;
}

.clr-field button {
  border-radius: 100% !important;
  width: 20px !important;
  height: 20px !important;
  left: 10px !important;
}

.char-counter {
  font-size: 0.6rem;
  color: #666;
  position: absolute;
  right: 8px;
  bottom: 5px;
  pointer-events: none;
  z-index: 2;
}

.char-counter.limit-reached {
  color: #e74c3c;
  font-weight: bold;
}

.descricaoecounter {
  position: relative;
  display: flex;
  width: 100%;
}

#description {
  width: 100%;
}

#description:invalid {
  border: 1px solid #e74c3c;
}

.containersugestoesetags {
  overflow-y: auto;
  flex: 1;
  min-height: 100px;
  border: 1px dashed var(--border-light);
  border-radius: 4px;
  margin-top: 20px;
}

.tag-suggestion {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  justify-content: center;
  min-width: 100px;
}

.tag-suggestions {
  overflow-y: auto;
  margin-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

#suggestionsList {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.form-buttons {
  display: flex;
  gap: 5px;
  width: 100%;
}
.form-buttons button {
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.form-buttons .notconfirming {
  background-color: var(--color-danger);
  color: white;
}
.form-buttons .confirming {
  background-color: var(--color-success);
  color: white;
}

.category-select {
  flex: 1;
}

.category-section-header {
  margin-bottom: 20px;
}

/******************************
  Expenses List & Items | CADERNO.PHP
*******************************/
.expense-form {
  padding: 1rem;
  padding-top: 0;
}
.expense-form .expense-tag {
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}
.expense-form input {
  height: 100%;
}
.expense-form .expense-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid white;
  transition: border 0.2s ease;
}
.expense-form .expense-message:hover {
  border: 1px solid var(--color-primary);
}
.expense-form .expense-content {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}
.expense-form .expense-body .description {
  margin: 0;
}
.expense-form .financial-month {
  display: flex;
  align-items: center;
  gap: 4px;
}
.expense-form .financial-month i {
  font-size: 0.9em;
  opacity: 0.8;
}
.expense-form .updating {
  background-color: #4CAF50;
}
.expense-form .input-group {
  display: flex;
  gap: 10px;
}
.expense-form .valoreparcelas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
}
.expense-form .mobile-operator-wrapper {
  display: flex;
  position: relative;
  width: 100%;
}
.expense-form .mobile-operator-wrapper #amount {
  flex: 1;
}
.expense-form .mobile-operator-wrapper .operator-btn {
  display: none;
  padding: 0.5rem 0.75rem;
  background-color: var(--border-base);
  color: #bbc4ce;
  border: 1px solid var(--border-light);
  border-left: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.expense-form .mobile-operator-wrapper .operator-btn:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.expense-form .mobile-operator-wrapper .operator-btn:active, .expense-form .mobile-operator-wrapper .operator-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.expense-form .mobile-operator-wrapper .operator-btn i {
  font-size: 1rem;
}
.expense-form .mobile-operator-wrapper .operator-popup {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  z-index: 100;
  flex-direction: row;
  overflow: hidden;
}
.expense-form .mobile-operator-wrapper .operator-popup.show {
  display: flex;
  animation: popup-appear 0.15s ease-out;
}
.expense-form .mobile-operator-wrapper .operator-option {
  padding: 0.6rem 0.9rem;
  font-size: 1.1rem;
  font-weight: bold;
  background: white;
  border: none;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.1s ease;
  min-width: 44px;
  color: var(--text-primary);
}
.expense-form .mobile-operator-wrapper .operator-option:last-child {
  border-right: none;
}
.expense-form .mobile-operator-wrapper .operator-option:hover, .expense-form .mobile-operator-wrapper .operator-option.selected {
  background-color: var(--color-secondary);
  color: white;
}
@keyframes popup-appear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1024px) {
  .expense-form .mobile-operator-wrapper #amount {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .expense-form .mobile-operator-wrapper .operator-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.expense-form .descricaoecounter {
  position: relative;
  display: flex;
  width: 100%;
}
.expense-form .descricaoecounter .char-counter {
  font-size: 0.6rem;
  color: #666;
  position: absolute;
  right: 8px;
  top: 5px;
  pointer-events: none;
  z-index: 2;
}
.expense-form .descricaoecounter .char-counter.limit-reached {
  color: #e74c3c;
  font-weight: bold;
}
.expense-form textarea {
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  margin: 0;
  height: 100%;
}
.expense-form #description {
  width: 100%;
}
.expense-form .dataeenviar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1;
}
.expense-form .installment-selector {
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.expense-form .installment-input-group {
  display: flex;
  width: 100%;
  align-items: center;
  border: 1px solid #ced4da;
  border-radius: 4px;
  overflow: hidden;
  background-color: white;
}
.expense-form .installment-input-group input {
  padding: 0.5rem;
  margin: 0;
  height: 100%;
}
.expense-form #installments {
  border: none;
  text-align: center;
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
  /* Remove arrows in Firefox */
  min-width: 80px;
}
.expense-form #installments:disabled {
  background-color: white;
  color: #a1a5a8;
}
.expense-form #installments::-webkit-outer-spin-button,
.expense-form #installments::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.expense-form .select-payment {
  border: 1px solid #ddd;
  flex: 1;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  margin-left: 6px;
  margin-right: 5px;
  padding: 3px 5px;
}
.expense-form .select-payment optgroup {
  font-style: normal;
  font-weight: 700;
}
.expense-form input[type=datetime-local] {
  padding: 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  margin: 0;
  height: 100%;
}
.expense-form .confirming {
  background-color: var(--color-success);
  color: white;
}
.expense-form button[type=submit],
.expense-form .notconfirming {
  cursor: pointer;
  padding: 0.9rem;
  border-radius: 4px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.expense-form .notconfirming {
  background-color: var(--color-danger);
  color: white;
}

@media (max-width: 690px) {
  .input-group {
    flex-wrap: wrap;
  }
  .installment-input-group input {
    width: 50%;
  }
}
/*****************************
lista de expensas
*****************************/
.recurring-copy-badge {
  border: 1px solid var(--color-success);
  background-color: rgb(239, 255, 221);
  color: black;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85em;
  align-items: baseline;
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Ações de parcelas automáticas */
.recurring-copy-actions {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-top: 5px;
  display: flex;
}

.value-change-container {
  display: flex;
  gap: 6px;
}

.change-value-btn {
  background-color: #fff8e1;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.change-value-btn:hover {
  background-color: #ffc107;
  color: #000;
}

.change-value-btn i {
  font-size: 0.9em;
}

.value-change-badge {
  background-color: var(--color-info-light);
  border: 1px solid var(--color-info);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Valor original riscado */
.original-amount-strikethrough {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85em;
  margin-left: 8px;
  opacity: 0.7;
}

/* Modal para alterar valor de parcelas */
.change-value-modal {
  max-width: 350px;
  height: auto;
  margin: auto;
  padding: 15px;
}

.change-value-modal .modal-body {
  gap: 12px;
  overflow: visible;
}

.change-value-modal .expense-info-text {
  text-align: center;
  color: var(--text-secundary);
  font-size: 0.9em;
  margin: 0;
}

.change-value-modal #newValueInput {
  text-align: center;
  font-size: 1.2em;
  padding: 10px;
}

.update-mode-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: white;
  gap: 10px;
}

.radio-option:hover {
  background-color: #f8f9fa;
}

.radio-option:has(input:checked) {
  border-color: var(--color-primary);
  background-color: #e8f0fe;
}

.radio-option input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  margin: 0;
}

.radio-option span {
  font-size: 0.9em;
  color: var(--text-primary);
}

.change-value-modal .form-buttons {
  justify-content: center;
  margin-top: 5px;
}

.expenses-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 15px;
  gap: 15px;
}

.date-buttons {
  gap: 5px;
  display: flex;
  flex-wrap: wrap;
}

.date-separator {
  text-align: center;
  margin: 0 auto;
  background-color: #f1f8ff;
  font-size: 0.9em;
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  padding: 5px 15px;
  border-radius: 20px;
}

.expense-message:hover {
  border: 1px solid var(--color-primary);
}

.expense-message {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid white;
  transition: border 0.2s ease;
}
.expense-message .expense-actions {
  display: none;
  gap: 5px;
}
.expense-message .expense-date {
  font-size: small;
  color: #d0d1db;
}
.expense-message .installment-badge {
  font-size: 12px;
  padding: 2px 5px;
  background-color: #eef1f3;
  color: #495057;
  border-radius: 4px;
  margin-left: 5px;
}
.expense-message.income .amount i {
  color: var(--color-success);
  font-size: small;
}
.expense-message.expense .amount i {
  color: var(--color-danger);
  font-size: small;
}
.expense-message.investment .amount i {
  color: var(--color-primary);
  font-size: small;
}
.expense-message.being-edited {
  border: 1px dashed #4CAF50;
}
.expense-message.show-actions .expense-actions {
  display: flex;
  gap: 10px;
}
.expense-message .payment-method-badge,
.expense-message .financial-month {
  display: flex;
  padding: 1px 5px;
  font-size: 0.75em;
  background-color: #eef1f3;
  border-radius: 3px;
  margin-top: 5px;
  margin-bottom: 0px;
}
.expense-message .expense-edit-delete {
  display: flex;
  gap: 5px;
  width: 100%;
}
.expense-message .expense-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: -5px;
  align-items: center;
}
.expense-message .amount {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
}
.expense-message button.edit-tags {
  border: 1px solid var(--color-info);
  background-color: var(--color-info-light);
  color: black;
}
.expense-message button.delete-tags {
  border: 1px solid var(--color-danger);
  background-color: rgb(250, 216, 216);
  color: black;
}
.expense-message button {
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 4px;
  border: none;
  flex: 1;
  gap: 5px;
}
.expense-message .expense-tag {
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: bold;
}

/******************************
  LOADING ICON
*******************************/
.loading-indicator {
  position: sticky;
  top: 0;
  display: none;
  justify-content: center;
  padding: 10px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
}

.loading-indicator.visible {
  display: flex;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/******************************
  PROGRESS BAR - YOUTUBE STYLE
*******************************/
#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 2000;
  background-color: transparent;
  pointer-events: none;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--amarelo-bd) 100%);
  transition: width 0.3s ease;
}

/* Quando a barra está carregando, mostra a animação de pulse */
#progress-bar.loading {
  opacity: 1;
  animation: progress-pulse 1.5s ease-in-out infinite;
}

/* Quando a barra completa, faz uma transição suave para transparente */
#progress-bar.complete {
  transition: width 0.3s ease, opacity 0.5s ease 0.3s;
  opacity: 0;
}

@keyframes progress-pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
/*******************************
  DASHBOARD.php
*******************************/
.dashboard-header {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  /* Notificação de mês personalizado */
  /* Export Buttons */
}
.dashboard-header .dashboard-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}
.dashboard-header .custom-month-notification {
  background-color: var(--color-info-light);
  border-left: 4px solid var(--color-info);
  padding: 10px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
.dashboard-header .custom-month-notification i {
  color: var(--color-info);
  margin-right: 10px;
  font-size: 1rem;
}
.dashboard-header .dashboard-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.dashboard-header .export-tools {
  display: flex;
  gap: 0.75rem;
}
.dashboard-header .export-tools .btn-export {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: var(--border-base);
  border: 1px solid var(--border-light);
  color: #555;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.dashboard-header .export-tools .btn-export:hover {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.dashboard-header .premium-feature-group {
  display: flex;
  gap: 0.75rem;
}
.dashboard-header .btn-export.premium-upgrade {
  background: #ffd700;
  color: var(--color-secondary);
  border: none;
}
.dashboard-header .change-month-start {
  margin-left: 5px;
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.date-selector {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background-color: #f8f9fa;
  padding: 0.75rem;
  border-radius: 8px;
}
.date-selector button {
  padding: 0.5rem 1rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}
.date-selector button:hover {
  background-color: #f0f0f0;
}
.date-selector button.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.date-selector .custom-date-form {
  display: none;
  gap: 5px;
  border-radius: 8px;
}
.date-selector .custom-date-form input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0;
  height: 100%;
}
.date-selector .custom-date-form.active {
  display: flex;
  align-self: flex-end;
}
.date-selector .custom-date-form input[type=date] {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}
.date-selector .custom-date-form button {
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  /* Date Selector */
  .date-selector {
    flex-direction: column;
    justify-content: auto;
  }
  .custom-date-form.active {
    width: 100%;
  }
}
@media (max-width: 1100px) {
  .custom-date-form.active {
    flex-direction: column;
  }
}
.negativa {
  color: var(--color-danger);
}

.positive {
  color: var(--color-success);
}

.stats-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.stats-overview .card {
  flex: 1;
}
.stats-overview .card-content {
  display: flex;
  align-items: center;
}
.stats-overview .stat-card {
  padding: 1.5rem;
  min-width: 200px;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-light);
}
.stats-overview .card h3 {
  font-size: 1.2rem;
  margin-top: 0;
  color: #444;
}
.stats-overview .card-content {
  display: flex;
  align-items: center;
}
.stats-overview .stat-card h3 {
  border: none;
}
.stats-overview .stat-card p {
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.stats-overview .stat-card .icon {
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: 10px;
}

.charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}
.charts-container .card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  flex: 1;
}
.charts-container .card h3 {
  font-size: 1.2rem;
  margin-top: 0;
  color: #444;
}
.charts-container .card h3 {
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
}

/*******************************
  PREMIUM TEASER
*******************************/
/* Estilos para o Premium Teaser */
.premium-teaser-container {
  background: linear-gradient(to bottom right, #ffffff, var(--border-base));
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border: 1px solid #f0ad4e;
}

.premium-teaser-container::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  opacity: 0.1;
  border-radius: 0 0 0 100%;
  z-index: 0;
}

.premium-teaser-header {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.premium-teaser-header i {
  font-size: 32px;
  color: #ffb700;
  margin-bottom: 15px;
}

.premium-teaser-header h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 10px;
}

.premium-teaser-header p {
  color: #666;
  font-size: 16px;
}

.premium-teaser-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.teaser-feature {
  background: white;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #eaeaea;
  overflow: hidden;
  flex: 1;
  min-width: 400px;
  /* Ensures similar sizing behavior as the grid minmax */
}

.teaser-feature i {
  font-size: 24px;
  color: #ffb700;
  margin-right: 15px;
  margin-top: 3px;
}

.teaser-content {
  flex: 1;
}

.teaser-content h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 5px;
}

.teaser-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.feature-preview-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 100%);
  z-index: 2;
}

.premium-cta {
  text-align: center;
  padding-top: 10px;
  position: relative;
  z-index: 1;
}

.premium-price {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .teaser-feature {
    min-width: 100%;
    /* Take full width on small screens */
    padding: 15px;
  }
}
/* Estilos para a seção de transações premium bloqueada */
.premium-transactions-teaser {
  position: relative;
  overflow: hidden;
  border: 1px solid #f0ad4e;
}

.premium-lock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0ad4e;
  background-color: #fff9e6;
}

.premium-lock-header h3 {
  margin: 0;
  color: #333;
}

.premium-lock-icon {
  display: flex;
  align-items: center;
  color: #f0ad4e;
  font-weight: 500;
  font-size: 0.9rem;
}

.premium-lock-icon i {
  margin-right: 5px;
}

.premium-table-preview {
  position: relative;
  padding: 1rem;
}

.blurred-table {
  position: relative;
}

.blurred-table::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  z-index: 2;
}

.ghost-row td {
  text-align: center;
  padding: 10px;
  color: #999;
  font-style: italic;
}

.premium-table-upgrade {
  padding: 1.5rem;
  text-align: center;
  background-color: #f8f9fa;
  border-top: 1px dashed #f0ad4e;
}

.premium-table-upgrade p {
  margin-bottom: 15px;
  color: #555;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-sm i {
  margin-right: 5px;
}

/***************************************
  INSIGHTS
***************************************/
.insights-container {
  margin-bottom: 2rem;
  /* Estilos adicionais para cards atualizados */
}
.insights-container .insights-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.insights-container .insight-card {
  height: 100%;
  border: 1px solid var(--border-light);
  border-radius: 5px;
}
.insights-container .insight-card .card-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--border-base);
  border-radius: 5px 5px 0 0;
}
.insights-container .insight-card .card-header i {
  font-size: 1.5rem;
  margin-right: 0.75rem;
  color: var(--dourado);
}
.insights-container .insight-card .card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.insights-container .insight-card .card-body {
  padding: 10px 20px;
}
.insights-container .insight-card p {
  margin-bottom: 0.5rem;
}
.insights-container .insight-card ul {
  padding-left: 1.5rem;
  margin-bottom: 0;
}
.insights-container .insight-card li {
  margin-bottom: 0.5rem;
}
.insights-container .indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, auto));
  gap: 1rem;
}
.insights-container .indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.insights-container .indicator-title {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}
.insights-container .indicator-value {
  font-size: 1.2rem;
  font-weight: 700;
}
.insights-container .indicator-value.positive {
  color: var(--color-success);
}
.insights-container .indicator-value.neutral {
  color: var(--color-warning);
}
.insights-container .indicator-value.negative {
  color: var(--color-danger);
}
.insights-container .warnings-list li {
  margin-bottom: 10px;
  padding-left: 5px;
  border-left: 3px solid #F44336;
}
.insights-container .warnings-list {
  padding-left: 0;
  list-style-type: none;
  margin-left: -25px;
}
.insights-container .warnings-list li {
  margin-bottom: 10px;
  padding-left: 5px;
  border-left: 3px solid #F44336;
}
.insights-container .indicator-change {
  display: block;
  font-size: 0.8rem;
  margin-top: 2px;
}
.insights-container .premium-feature {
  padding: 10px;
  background-color: #f8f9fa;
  border-left: 3px solid var(--dourado);
  font-size: 0.9rem;
  border-radius: 5px;
}
.insights-container .analysis-container {
  margin-top: 20px;
  padding: 10px;
  background-color: #f8f9fa;
  font-size: 0.9rem;
  border-radius: 5px;
}
.insights-container .warning {
  color: #F44336;
  font-weight: 500;
}

/*************************
Metas financeiras
**************************/
.card-metas-section {
  margin-bottom: 2rem;
}
.card-metas-section .card {
  background-color: #fff;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
}
.card-metas-section .card #add-goal-btn {
  width: auto;
}

.card-metas-section .card .card-header,
.suggestions-section .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #444;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0px;
  width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.card-metas-section {
  margin-bottom: 2rem;
}

/******************************
  TUTORIAL | CADERNO.PHP
*******************************/
.empty-state-tutorial-container {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.empty-state-tutorial {
  padding: 4rem;
  border-radius: 8px;
  width: 100%;
  background-color: var(--border-base);
  border: 1px solid var(--border-light);
}

.no-data-message {
  background-color: var(--border-base);
  padding: 4rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
}

.empty-state h2 {
  color: #333;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #666;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.empty-state {
  text-align: center;
  padding: 5px;
  max-width: 1000px;
  margin: 0 auto;
}

.empty-state a {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tutorial-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  color: #2c7be5;
}

.tutorial-header i {
  font-size: 24px;
  margin-right: 15px;
}

.tutorial-header h3 {
  font-size: 20px;
  margin: 0;
  color: #2c3e50;
}

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
}

.step-number {
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-size: 16px;
}

.step-content p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
}

/***********************
Goals
*********************/
.accordion .goals-list {
  margin-top: 15px;
}

.goal-type-badge {
  background-color: var(--border-base);
  border: 1px solid var(--border-light);
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  color: var(--text-secundary);
}

.goals-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.completed-goals-header {
  margin-top: 1rem;
  background-color: var(--color-secondary);
  color: white;
}

.completed-goals-header .badge {
  background-color: white;
  color: var(--color-success);
  padding: 4px 8px;
}

.goal-card {
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border 0.2s ease;
  background-color: white;
  border: 1px solid var(--border-light);
}

.goal-card:hover {
  border: 1px solid var(--color-primary);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--border-base);
  border-bottom: 1px solid var(--border-light);
}

.goal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 600;
}

.goal-actions {
  display: flex;
  gap: 0.5rem;
}

.goal-actions button {
  background: transparent;
  border: 1px solid var(--border-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.goal-actions button:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.goal-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secundary);
}

.goal-target {
  font-weight: 500;
}

.goal-deadline {
  font-style: italic;
}

.goal-progress-container {
  position: relative;
  height: 12px;
  background-color: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.goal-progress-bar {
  height: 100%;
  background-image: var(--ouro);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.goal-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.goal-progress-percentage {
  font-weight: bold;
  color: var(--color-primary);
}

.goal-current-amount {
  font-weight: bold;
}

.goal-actions-buttons {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.add-funds-btn {
  background-color: var(--border-base);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.add-funds-btn i {
  color: var(--color-success);
}

.add-funds-btn:hover {
  background-color: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

.add-funds-btn:hover i {
  color: white;
}

/* Estilos responsivos para metas financeiras */
@media (max-width: 768px) {
  .goals-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .goal-info {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
@media (max-width: 576px) {
  .goals-list {
    grid-template-columns: 1fr;
  }
}
#add-budget-btn {
  width: auto;
}

.form-budget {
  padding: 5px;
  padding-top: 0px;
  margin-top: 20px;
}
.form-budget .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-budget .form-group select,
.form-budget .form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 15px;
}
.form-budget .form-buttons {
  display: flex;
  gap: 5px;
  width: 100%;
}

.goal-header-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.goal-deadline-header {
  font-size: 0.8rem;
  color: #666;
  margin-top: 3px;
  font-style: italic;
}

.goal-percentage {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  justify-content: center;
}

.goal-percentage.good {
  color: #F44336;
}

.goal-percentage.warning {
  color: #FFC107;
}

.goal-percentage.exceeded {
  color: #4CAF50;
}

.budget-content {
  padding: 0;
}

.budget-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.budget-item {
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: border 0.2s ease;
}

.budget-item:hover {
  border: 1px solid var(--color-primary);
}

.budget-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-name {
  font-weight: 600;
  font-size: 1.1rem;
}

.budget-actions {
  display: flex;
  gap: 0.5rem;
}

.budget-actions button {
  background: transparent;
  border: 1px solid var(--border-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--text-secundary);
}

.budget-actions button:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Specific styles for edit and delete buttons */
.budget-actions .edit-budget-btn:hover {
  background: var(--color-info);
  border-color: var(--color-info);
}

.budget-actions .delete-budget-btn:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.budget-body {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: column-reverse;
  background-color: white;
}

.progress-container {
  height: 12px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-bar.good {
  background-color: #4CAF50;
}

.progress-bar.warning {
  background-color: #FFC107;
}

.progress-bar.exceeded {
  background-color: #F44336;
}

.budget-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secundary);
}

.budget-amount,
.budget-spent,
.budget-percentage {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.budget-percentage {
  font-weight: 700;
  font-size: 1.2rem;
  justify-content: center;
}

.budget-percentage.good {
  color: #4CAF50;
}

.budget-percentage.warning {
  color: #FFC107;
}

.budget-percentage.exceeded {
  color: #F44336;
}

/* Estilos para o histórico de orçamentos */
.budget-history-section {
  margin-top: 2rem;
}

/* Ajustes responsivos para o conteúdo de orçamentos */
@media (max-width: 768px) {
  .budget-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .budget-details {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .budget-amount,
  .budget-spent,
  .budget-percentage {
    margin-bottom: 0.5rem;
  }
}
/* Estilos para edição inline */
.budget-item.editing .budget-amount,
.budget-item.editing .budget-spent,
.budget-item.editing .budget-percentage {
  display: none;
}

.budget-item .edit-form {
  display: none;
}

.budget-item.editing .edit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.budget-item.editing .edit-form input {
  padding: 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.budget-item.editing .edit-form .edit-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.budget-item.editing .edit-form .edit-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.budget-item.editing .edit-form .save-edit {
  background-color: #4CAF50;
  color: white;
}

.budget-item.editing .edit-form .cancel-edit {
  background-color: #f44336;
  color: white;
}

.goal-history-header p {
  margin: 0;
  color: var(--text-secundary);
  font-size: 0.9rem;
}

.remove-contribution-btn {
  background-color: transparent;
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-contribution-btn:hover {
  background-color: var(--color-danger);
  color: white;
}

/***********************
  ADMIN PANEL STYLES
***********************/
/* Admin Container */
.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: var(--card-radius);
  /* Admin Header */
  /* Stats Cards */
  /* Tabs System */
  /* Tables */
  /* Action Buttons */
  /* Status Badges */
  /* Charts Container */
  /* Loading States */
  /* Period Selector */
  /* Search and Filters */
  /* Filters Container */
  /* Details Button */
  /* Activity Details Modal Content */
  /* User Details Specific */
  /* ========================================
     SUBSCRIPTION ADMIN PANEL - Painel de assinatura melhorado
     ======================================== */
  /* Status Card Principal */
  /* Info Grid */
  /* Actions Panel */
  /* Responsive para Subscription Panel */
  /* ======================================== */
  /* Responsive Design */
}
.admin-container .admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-light);
}
.admin-container .admin-header h1 {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-container .admin-header h1 i {
  color: var(--primary-color);
  font-size: 1.6rem;
}
.admin-container .admin-header .admin-meta {
  color: var(--text-secundary);
  font-size: 0.9rem;
}
.admin-container .stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.admin-container .stat-card {
  background: linear-gradient(135deg, var(--primary-color), #6B8EFF);
  color: white;
  padding: 24px;
  border-radius: var(--card-radius);
  transition: transform var(--transition-speed);
  position: relative;
  overflow: hidden;
}
.admin-container .stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(20px, -20px);
}
.admin-container .stat-card:hover {
  transform: translateY(-2px);
}
.admin-container .stat-card.secondary {
  background: linear-gradient(135deg, var(--color-secondary), #FF7A6B);
}
.admin-container .stat-card.success {
  background: linear-gradient(135deg, var(--color-success), #7ED95F);
}
.admin-container .stat-card.info {
  background: linear-gradient(135deg, var(--color-info), #6BC2FF);
}
.admin-container .stat-card h3 {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 8px 0;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-container .stat-card .stat-value {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}
.admin-container .stat-card .stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  opacity: 0.7;
}
.admin-container .tab-container {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.admin-container .tab-buttons {
  display: flex;
}
.admin-container .tab-navigation {
  display: flex;
  background: var(--border-base);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}
.admin-container .tab-button {
  background: none;
  border: none;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secundary);
  cursor: pointer;
  transition: all var(--transition-speed);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 1;
}
.admin-container .tab-button:hover {
  background: rgba(80, 119, 238, 0.05);
  color: var(--primary-color);
}
.admin-container .tab-button.active {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
}
.admin-container .tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}
.admin-container .tab-button i {
  font-size: 1rem;
}
.admin-container .tab-content {
  display: none;
  padding: 24px;
  min-height: 400px;
}
.admin-container .tab-content.active {
  display: block;
}
.admin-container .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
}
.admin-container .admin-table thead {
  background: var(--border-base);
}
.admin-container .admin-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-container .admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}
.admin-container .admin-table tbody tr {
  transition: background-color var(--transition-speed);
}
.admin-container .admin-table tbody tr:hover {
  background: rgba(80, 119, 238, 0.02);
}
.admin-container .admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-container .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-container .btn-admin {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.admin-container .btn-admin:hover {
  transform: translateY(-1px);
}
.admin-container .btn-admin.btn-view {
  background: var(--color-info);
  color: white;
}
.admin-container .btn-admin.btn-view:hover {
  background: #3A95D9;
}
.admin-container .btn-admin.btn-edit {
  background: var(--color-warning);
  color: #333;
}
.admin-container .btn-admin.btn-edit:hover {
  background: #E8D054;
}
.admin-container .btn-admin.btn-danger {
  background: var(--color-danger);
  color: white;
}
.admin-container .btn-admin.btn-danger:hover {
  background: #E12850;
}
.admin-container .status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-container .status-badge.active {
  background: rgba(102, 205, 76, 0.15);
  color: var(--color-success);
}
.admin-container .status-badge.inactive {
  background: rgba(242, 59, 101, 0.15);
  color: var(--color-danger);
}
.admin-container .status-badge.pending {
  background: rgba(245, 227, 96, 0.15);
  color: #B8A500;
}
.admin-container .status-badge.refunded {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}
.admin-container .charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.admin-container .chart-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 24px;
  border: 1px solid var(--border-light);
}
.admin-container .chart-card h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-container .chart-card h3 i {
  color: var(--primary-color);
}
.admin-container .loading-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secundary);
  font-style: italic;
}
.admin-container .error-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-danger);
  font-style: italic;
}
.admin-container .period-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.admin-container .period-selector label {
  font-weight: 500;
  color: var(--text-primary);
}
.admin-container .period-selector select {
  padding: 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: white;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition-speed);
}
.admin-container .period-selector select:focus {
  outline: none;
  border-color: var(--primary-color);
}
.admin-container .admin-filters {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.admin-container .search-input {
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 250px;
  transition: border-color var(--transition-speed);
}
.admin-container .search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}
.admin-container .filters-container {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--border-base);
  border-radius: var(--card-radius);
  flex-wrap: wrap;
}
.admin-container .filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}
.admin-container .filter-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secundary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-container .filter-group select {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-speed);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.admin-container .filter-group select:hover {
  border-color: var(--primary-color);
}
.admin-container .filter-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(80, 119, 238, 0.1);
}
.admin-container .period-selector-global {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--border-base);
  border-radius: var(--card-radius);
}
.admin-container .period-selector-global label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}
.admin-container .period-selector-global select {
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  background: white;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.admin-container .period-selector-global select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(80, 119, 238, 0.1);
}
.admin-container .details-btn {
  padding: 6px 12px;
  background: var(--border-base);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-speed);
}
.admin-container .details-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.admin-container .activity-details-content {
  font-size: 0.9rem;
}
.admin-container .activity-details-content .detail-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.admin-container .activity-details-content .detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.admin-container .activity-details-content .detail-section strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.admin-container .activity-details-content .detail-section strong i {
  color: var(--primary-color);
}
.admin-container .activity-details-content .user-agent-text {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--border-base);
  padding: 10px 12px;
  border-radius: 6px;
  word-break: break-all;
  color: var(--text-secundary);
  margin: 0;
}
.admin-container .activity-details-content .details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--border-base);
  border-radius: 8px;
  overflow: hidden;
}
.admin-container .activity-details-content .details-list li {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-container .activity-details-content .details-list li:last-child {
  border-bottom: none;
}
.admin-container .activity-details-content .detail-key {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 100px;
}
.admin-container .activity-details-content .detail-value {
  color: var(--text-secundary);
  word-break: break-all;
}
.admin-container .user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.admin-container .info-card {
  background: white;
  padding: 20px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-light);
}
.admin-container .info-card h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-container .info-card h3 i {
  color: var(--primary-color);
}
.admin-container .info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.admin-container .info-item:last-child {
  border-bottom: none;
}
.admin-container .info-label {
  font-weight: 500;
  color: var(--text-secundary);
}
.admin-container .info-value {
  color: var(--text-primary);
  font-weight: 500;
}
.admin-container .subscription-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.admin-container .subscription-status-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--border-light);
  transition: all var(--transition-speed);
}
.admin-container .subscription-status-card.status-active {
  background: linear-gradient(135deg, rgba(102, 205, 76, 0.1) 0%, rgba(102, 205, 76, 0.05) 100%);
  border-color: var(--color-success);
}
.admin-container .subscription-status-card.status-active .status-icon {
  background: var(--color-success);
}
.admin-container .subscription-status-card.status-trialing {
  background: linear-gradient(135deg, rgba(80, 119, 238, 0.1) 0%, rgba(80, 119, 238, 0.05) 100%);
  border-color: var(--primary-color);
}
.admin-container .subscription-status-card.status-trialing .status-icon {
  background: var(--primary-color);
}
.admin-container .subscription-status-card.status-canceled {
  background: linear-gradient(135deg, rgba(242, 59, 101, 0.1) 0%, rgba(242, 59, 101, 0.05) 100%);
  border-color: var(--color-danger);
}
.admin-container .subscription-status-card.status-canceled .status-icon {
  background: var(--color-danger);
}
.admin-container .subscription-status-card.status-refunded {
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1) 0%, rgba(108, 117, 125, 0.05) 100%);
  border-color: #6c757d;
}
.admin-container .subscription-status-card.status-refunded .status-icon {
  background: #6c757d;
}
.admin-container .subscription-status-card.status-inactive {
  background: linear-gradient(135deg, rgba(245, 227, 96, 0.1) 0%, rgba(245, 227, 96, 0.05) 100%);
  border-color: var(--color-warning);
}
.admin-container .subscription-status-card.status-inactive .status-icon {
  background: var(--color-warning);
}
.admin-container .subscription-status-card .status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text-secundary);
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.admin-container .subscription-status-card .status-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-container .subscription-status-card .status-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-container .subscription-status-card .plan-name {
  font-size: 0.95rem;
  color: var(--text-secundary);
  font-weight: 500;
}
.admin-container .subscription-status-card .billing-period {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.admin-container .subscription-status-card .billing-period i {
  color: var(--primary-color);
}
.admin-container .subscription-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.admin-container .subscription-info-grid .info-block {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 16px 20px;
  transition: all var(--transition-speed);
}
.admin-container .subscription-info-grid .info-block:hover {
  border-color: var(--primary-color);
}
.admin-container .subscription-info-grid .info-block.warning {
  background: linear-gradient(135deg, rgba(245, 227, 96, 0.1) 0%, rgba(245, 227, 96, 0.05) 100%);
  border-color: var(--color-warning);
}
.admin-container .subscription-info-grid .info-block.danger {
  background: linear-gradient(135deg, rgba(242, 59, 101, 0.1) 0%, rgba(242, 59, 101, 0.05) 100%);
  border-color: var(--color-danger);
}
.admin-container .subscription-info-grid .info-block.info {
  background: linear-gradient(135deg, rgba(74, 168, 216, 0.1) 0%, rgba(74, 168, 216, 0.05) 100%);
  border-color: var(--color-info);
}
.admin-container .subscription-info-grid .info-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.admin-container .subscription-info-grid .info-block-header i {
  color: var(--primary-color);
  font-size: 0.9rem;
}
.admin-container .subscription-info-grid .info-block-header span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secundary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-container .subscription-info-grid .info-block-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-container .subscription-info-grid .info-block-value.stripe-id {
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
}
.admin-container .subscription-info-grid .info-block-value .time-remaining {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(74, 168, 216, 0.15);
  color: var(--color-info);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-container .subscription-info-grid .info-block-value .time-expired {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(242, 59, 101, 0.15);
  color: var(--color-danger);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-container .subscription-actions-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(80, 119, 238, 0.05) 0%, rgba(80, 119, 238, 0.02) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  gap: 16px;
  flex-wrap: wrap;
}
.admin-container .subscription-actions-panel .action-warning {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.admin-container .subscription-actions-panel .action-warning i {
  font-size: 1.2rem;
  color: var(--primary-color);
}
.admin-container .subscription-actions-panel form,
.admin-container .subscription-actions-panel .action-form {
  margin: 0;
}
.admin-container .subscription-actions-panel .admin-actions-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-container .subscription-actions-panel .btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
}
.admin-container .subscription-actions-panel .btn-admin.btn-view {
  background: var(--primary-color);
  color: white;
}
.admin-container .subscription-actions-panel .btn-admin.btn-view:hover {
  background: #3A5BC7;
}
@media (max-width: 768px) {
  .admin-container .subscription-status-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .admin-container .subscription-status-card .status-info {
    align-items: center;
  }
  .admin-container .subscription-info-grid {
    grid-template-columns: 1fr;
  }
  .admin-container .subscription-actions-panel {
    flex-direction: column;
    text-align: center;
  }
  .admin-container .subscription-actions-panel .admin-actions-buttons {
    justify-content: center;
  }
}
@media (max-width: 1000px) {
  .admin-container {
    /* Responsive Filters */
  }
  .admin-container .admin-container {
    padding: 16px;
    margin: 10px;
    border-radius: 8px;
  }
  .admin-container .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
  .admin-container .stat-card {
    padding: 20px;
  }
  .admin-container .stat-card .stat-value {
    font-size: 1.8rem;
  }
  .admin-container .tab-navigation {
    flex-wrap: wrap;
  }
  .admin-container .tab-button {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  .admin-container .tab-content {
    padding: 16px;
  }
  .admin-container .filters-container {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .admin-container .filter-group {
    min-width: 100%;
  }
  .admin-container .filter-group select {
    width: 100%;
  }
  .admin-container .period-selector-global {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
  }
  .admin-container .period-selector-global select {
    width: 100%;
  }
  .admin-container .charts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .admin-container .admin-table {
    font-size: 0.8rem;
  }
  .admin-container .admin-table th,
  .admin-container .admin-table td {
    padding: 10px 8px;
  }
  .admin-container .action-buttons {
    flex-direction: column;
    gap: 6px;
  }
  .admin-container .btn-admin {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .admin-container .admin-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-container .search-input {
    min-width: 100%;
  }
  .admin-container .user-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .admin-container .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .admin-container .admin-header h1 {
    font-size: 1.5rem;
  }
  .admin-container .stats-container {
    grid-template-columns: 1fr;
  }
  .admin-container .stat-card .stat-value {
    font-size: 1.6rem;
  }
}
.admin-container .badge-success {
  color: #fff;
  background-color: #28a745;
}
.admin-container .badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
  width: 100%;
}
.admin-container .plan-period {
  font-size: 0.8em;
  color: #666;
}
.admin-container .badge-warning {
  background-color: #ffc107;
  color: #212529;
}
.admin-container .badge-danger {
  background-color: #dc3545;
  color: white;
}
.admin-container .badge-success {
  color: #fff;
  background-color: #28a745;
}
.admin-container .access-note {
  font-size: 0.75em;
  color: #666;
  font-style: italic;
}
.admin-container .badge-light {
  background-color: #f8f9fa;
  color: #212529;
  border: 1px solid #ddd;
}

/*******************************
Profile Settings
********************************/
/*********************************************************************************************************************
  index.php 
***************************/
.btn.premium.canceled {
  background-color: var(--border-base);
  background-image: none;
  border: 1px solid var(--border-light);
}

.mini-btn {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-info);
  background-color: rgb(221, 238, 255);
  color: var(--text-primary);
  padding: 2px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  justify-content: center;
}

.mini-btn i {
  font-size: 0.7rem;
  margin-right: 5px;
}

/* Cabeçalho do perfil */
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 5px;
}

.profile-info h1 {
  margin-bottom: 10px;
}

.profile-avatar {
  position: relative;
  margin-right: 2rem;
  border: 1px solid var(--color-secondary);
  border-radius: 100px;
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 100px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 4px solid white;
  margin-bottom: -3px;
}

.btn.premium {
  background-image: var(--ouro);
  color: var(--text-primary);
}

.btn.free {
  background-image: linear-gradient(45deg, #ffffff 0%, #ebeff3 100%);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

/* Cards de perfil */
.profile-card {
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--color-primary);
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  background-color: var(--border-base);
}

.profile-card-title {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 1.25rem;
  color: #343a40;
  font-weight: 600;
}

.profile-card-title i {
  margin-right: 8px;
  font-size: medium;
  margin-top: 2px;
}

.profile-card-action {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.profile-card-action i {
  margin-right: 0.3rem;
}

/* Formulário de preferências de usuário */
.month-start-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-start-form select {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--background-light);
}

.month-start-form .btn-sm {
  padding: 5px 10px;
  font-size: 0.85rem;
}

.form-text.text-muted {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* Detalhes do perfil */
.profile-detail {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.profile-detail:last-child {
  border-bottom: none;
}

.profile-detail-label {
  width: 180px;
  color: var(--text-secundary);
  font-weight: 500;
  font-size: 0.95rem;
  width: 100%;
  max-width: 250px;
}

.profile-detail-value {
  flex: 1;
  color: #212529;
  font-weight: 500;
}

.text-muted {
  color: #adb5bd;
  font-style: italic;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.bg-success {
  border: 1px solid var(--color-success);
  color: var(--text-primary);
  background: #d1fadf;
}

.bg-warning {
  color: var(--text-primary);
  background: rgb(254, 255, 221);
  border: 1px solid var(--color-warning);
}

/* Botões de ação do perfil */
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 20px;
}

.btn {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: none;
  min-width: 180px;
  text-decoration: none;
  text-align: center;
  min-width: 150px;
  font-size: 1rem;
}

.btn i {
  margin-right: 0.3rem;
}

.btn-profile i {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-danger {
  border: 1px solid var(--color-danger);
  background-color: rgb(250, 216, 216);
  color: var(--text-primary);
}

.btn-edit {
  border: 1px solid var(--color-info);
  background-color: rgb(221, 238, 255);
  color: var(--text-primary);
}

.btn-back {
  margin-bottom: 10px;
  color: #2c3e50;
  text-align: left;
  border: 1px solid var(--border-light);
  width: -moz-fit-content;
  width: fit-content;
}

/****************************
  EDIT PROFILE
*******************************/
.edit-profile-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.security-section {
  border-top: 1px solid #eee;
  margin-top: 20px;
  padding-top: 20px;
}

.verification-card {
  text-align: center;
  padding: 30px 20px;
}

.verification-card h3 {
  margin-bottom: 20px;
}

.verification-card p {
  margin-bottom: 25px;
  color: #666;
}

.verification-form {
  max-width: 350px;
  margin: 0 auto;
}

.lock-icon {
  font-size: 48px;
  color: #2196F3;
  margin-bottom: 20px;
}

/******************************************************************************************************************************
  SUBSCRIPTION.PHP
*******************************/
/* Estilos para preços com desconto */
.original-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 5px;
}

.discount-price {
  color: #28a745;
  font-weight: bold;
}

.status-refunded {
  background-color: #dc3545;
  color: white;
}

.subscription-status.status-canceled {
  background-color: #dc3545;
  color: white;
  font-weight: bold;
}

.subscription-status.status-canceled-active {
  background-color: #fd7e14;
  color: white;
  font-weight: bold;
}

/* Cabeçalho do perfil */
.subscription-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 5px;
}

.subscription-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.status-active {
  background-color: #d4edda;
  color: #155724;
}

.status-canceled {
  background-color: #f8d7da;
  color: #721c24;
}

.status-past_due {
  background-color: #fff3cd;
  color: #856404;
}

.status-trialing {
  background-color: #cce5ff;
  color: #004085;
}

.subscription-details {
  margin-bottom: 20px;
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-table {
  width: 100%;
  border-collapse: collapse;
}

.payment-table th,
.payment-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.payment-table th {
  background-color: var(--border-base);
  font-weight: bold;
}

.flex-gap {
  display: flex;
  gap: 10px;
}

@media (max-width: 600px) {
  .flex-gap {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .tab-buttons {
    display: flex;
    flex-direction: column;
  }
  .mini-btn {
    margin-top: 20px;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 1.5rem;
  }
  .profile-detail {
    flex-direction: column;
  }
  .profile-detail-label {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .profile-actions {
    flex-direction: column;
  }
  .btn-profile {
    width: 100%;
  }
}
@media (max-width: 690px) {
  .input-group {
    flex-wrap: wrap;
  }
  .installment-input-group input {
    width: 50%;
  }
  /* Ajustar textarea para 3 linhas no mobile */
  .expense-form textarea#description {
    height: calc(1.44em + 1rem);
    /* 3 linhas + padding */
    transition: height 0.3s ease;
    /* Transição suave */
    overflow: hidden;
    /* Evita scroll indesejado */
  }
  /* Expandir textarea ao focar */
  .expense-form textarea#description:focus {
    height: calc(5.04em + 1rem);
    /* ou o número de linhas desejado */
  }
  .dataeenviar {
    flex-direction: row !important;
  }
  #sendExpense {
    flex: auto;
    max-width: 150px;
  }
  #createdAt {
    flex: 1;
  }
  .empty-state-tutorial-container {
    padding: 10px;
  }
  .empty-state-tutorial {
    padding: 20px;
  }
}
@media (max-width: 576px) {
  .coloreactions {
    flex-direction: column;
  }
  .profile-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-card-action {
    margin-top: 0.5rem;
  }
}
@media (max-width: 500px) {
  .expense-message .expense-header {
    display: flex;
    margin-top: 5px;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: flex-start;
    /* alinha à esquerda */
  }
}
/*********************************************************************************************************
  SETUP_2FA.PHP
*************************************/
.setup-2fa-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.setup-card {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 20px;
}

.setup-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.qr-code-container {
  text-align: center;
  margin: 20px 0;
}

.qr-code-container img {
  max-width: 200px;
  height: auto;
}

.secret-key {
  font-family: monospace;
  font-size: 1.2rem;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  letter-spacing: 1px;
  margin: 15px 0;
  text-align: center;
  cursor: pointer;
}

.step {
  margin-bottom: 15px;
}

.step-number {
  padding-bottom: 2px;
  width: 25px;
  height: 25px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  text-align: center;
  margin-right: 10px;
}

.step-text {
  display: inline;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.btn-2fa {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  cursor: pointer;
  border: none;
  margin-top: 10px;
}

.alert {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/*********************************************************************************************************
  DELETE_ACCOUNT_CONFIRM.PHP
*************************************/
.delete-account-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.delete-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
}

.delete-header {
  text-align: center;
  margin-bottom: 30px;
}

.delete-icon {
  font-size: 4rem;
  color: #dc3545;
  margin-bottom: 20px;
}

.delete-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #dc3545;
}

.delete-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 20px;
}

.warning-box {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.warning-title {
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.warning-title i {
  color: #ffc107;
  margin-right: 10px;
}

.warning-list {
  margin: 0;
  padding-left: 30px;
}

.warning-list li {
  margin-bottom: 8px;
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

/****************************************************************************************************
 DELETE_ACCOUNT_SUCCESS.PHP
*******************************************************/
.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
}

.success-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 20px;
}

.success-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 20px;
}

.success-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.success-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.feedback-link {
  display: block;
  margin-top: 20px;
  color: #666;
  text-decoration: underline;
}

.feedback-link:hover {
  color: #333;
}

/****************************************************************************************************
 RESUME_SUBSCRIPTION.PHP
*******************************************************/
.resume-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.resume-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.resume-icon {
  font-size: 3rem;
  color: #28a745;
  text-align: center;
  margin-bottom: 20px;
}

.resume-title {
  text-align: center;
  margin-bottom: 20px;
}

.resume-info {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.resume-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.btn-resume-subscription {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-resume-subscription:hover {
  background-color: #218838;
}

/*****************************************************************
resumo de metas
***********************************************************/
.financial-health-card {
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.financial-health-card h3 {
  display: flex;
  align-items: center;
  margin: 0 0 20px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
}

.financial-health-card h3 i {
  margin-right: 10px;
  color: var(--color-primary);
  font-size: 1.2rem;
}

.health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.health-metric {
  background-color: var(--border-base);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border-base);
  transition: transform 0.2s ease, border 0.2s ease;
}

.health-metric:hover {
  transform: translateY(-3px);
  border: 1px solid var(--color-primary);
}

.health-metric-label {
  font-size: 0.9rem;
  color: #576b7d;
  font-weight: 500;
  margin-bottom: 8px;
}

.health-metric-value {
  font-size: 1.3rem;
  font-weight: bold;
  color: #343a40;
}

.health-metric.positive .health-metric-value {
  color: var(--color-success);
}

.health-metric.negative .health-metric-value {
  color: var(--color-danger);
}

.health-metric.warning .health-metric-value {
  color: var(--color-warning);
}

@media (max-width: 768px) {
  .health-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .health-metrics {
    grid-template-columns: 1fr;
  }
}
/* =====================
   QUARTERLY PERFORMANCE (Desempenho Trimestral)
===================== */
.quarter-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin: 32px 0 40px 0;
}

.quarter-card {
  background: #fff;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.quarter-card h4 {
  font-size: 1.15rem;
  margin: 0 0 18px 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quarter-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.quarter-stat {
  flex: 1 1 120px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 10px 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.stat-label {
  font-size: 0.98rem;
  color: #576b7d;
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 2px;
}

.stat-progress {
  font-size: 0.92rem;
  color: #2196F3;
  margin-top: 2px;
  font-weight: 500;
}

.quarter-balance {
  text-align: end;
  margin-top: 10px;
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-block;
  width: 100%;
}

.quarter-balance.positive {
  color: #28a745;
}

.quarter-balance.negative {
  color: #dc3545;
}

@media (max-width: 900px) {
  .quarter-summary {
    grid-template-columns: 1fr;
  }
  .charts-container {
    flex-direction: column;
  }
}
/****************************
  METAS - ADDITIONAL STYLES
*******************************/
/* Category item styles */
.colunadaora {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.colunadaora1 h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
  transition: background-color 0.2s ease;
}
.category-item:hover {
  background: var(--card-bg);
}

.category-name {
  font-weight: 500;
  color: var(--text-primary);
}

.category-amount {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/****************************
  BUDGET CALENDAR STYLES
*******************************/
/* Budget Calendar Container */
.budget-calendar {
  margin: 1.5rem 0;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.calendar-month {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.calendar-month:hover {
  transform: translateY(-2px);
}

.month-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.budget-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Calendar intensity classes for heatmap effect */
.calendar-month.intensity-0 {
  background: #f8f9fa;
  border-color: #e9ecef;
}

.calendar-month.intensity-1 {
  background: rgba(54, 162, 235, 0.1);
  border-color: rgba(54, 162, 235, 0.3);
}

.calendar-month.intensity-1 .budget-count {
  color: #3498db;
}

.calendar-month.intensity-2 {
  background: rgba(54, 162, 235, 0.2);
  border-color: rgba(54, 162, 235, 0.4);
}

.calendar-month.intensity-2 .budget-count {
  color: #2980b9;
}

.calendar-month.intensity-3 {
  background: rgba(54, 162, 235, 0.4);
  border-color: rgba(54, 162, 235, 0.6);
}

.calendar-month.intensity-3 .budget-count {
  color: #1f4e79;
}

.calendar-month.intensity-4 {
  background: rgba(54, 162, 235, 0.6);
  border-color: rgba(54, 162, 235, 0.8);
  color: white;
}

.calendar-month.intensity-4 .month-label,
.calendar-month.intensity-4 .budget-count {
  color: white;
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--border-light);
}

.legend-color.intensity-0 {
  background: #f8f9fa;
}

.legend-color.intensity-1 {
  background: rgba(54, 162, 235, 0.1);
}

.legend-color.intensity-2 {
  background: rgba(54, 162, 235, 0.2);
}

.legend-color.intensity-3 {
  background: rgba(54, 162, 235, 0.4);
}

.legend-color.intensity-4 {
  background: rgba(54, 162, 235, 0.6);
}

/* Responsive calendar adjustments */
@media (max-width: 1200px) {
  .calendar-months {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .calendar-months {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .calendar-month {
    padding: 0.75rem;
    min-height: 70px;
  }
  .month-label {
    font-size: 0.8rem;
  }
  .budget-count {
    font-size: 1rem;
  }
  .calendar-legend {
    gap: 0.5rem;
  }
  .legend-item {
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .calendar-months {
    grid-template-columns: repeat(2, 1fr);
  }
}
/****************************
  STATUS BADGES AND ACTIONS
*******************************/
/* Status badges */
.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-badge.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.status-badge.warning {
  background: rgba(255, 193, 7, 0.1);
  color: #FF9800;
  border: 1px solid rgba(255, 193, 7, 0.3);
}
.status-badge.danger {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Tag badges */
.tag-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Category type badges */
.category-type {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.category-type.expense {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}
.category-type.income {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.category-type.investment {
  background: rgba(54, 162, 235, 0.1);
  color: #2196F3;
  border: 1px solid rgba(54, 162, 235, 0.3);
}

/* Budget actions */
.budget-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* Table responsive improvements */
.custom-table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
}
.custom-table th,
.custom-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.custom-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}
.custom-table tr:hover {
  background: var(--bg-secondary);
}
.custom-table .positive {
  color: #4CAF50;
  font-weight: 600;
}
.custom-table .negative {
  color: #F44336;
  font-weight: 600;
}
.custom-table .text-center {
  text-align: center;
}

.apexcharts-canvas {
  max-width: 100%;
  width: 100% !important;
  box-sizing: border-box;
}

/* ======================================================================
   ApexCharts responsive tweaks
   Purpose: Prevent charts from overflowing the viewport, make SVGs scale
   fluidly, and ensure toolbar/legend wrap on small screens.
   ====================================================================== */
/* Make chart container fluid and prevent horizontal overflow */
.apexcharts-graphical,
.apexcharts-svg {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* Ensure internal SVG scales responsively */
.apexcharts-svg svg {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  display: block;
}

/* Prevent tooltip or markers from causing overflow */
.apexcharts-tooltip,
.apexcharts-marker {
  max-width: 100% !important;
  word-wrap: break-word;
}

/* Ensure toolbar and legend wrap on small screens */
.apexcharts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.apexcharts-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

/* Media query: extra small screens - reduce paddings and force compact legend */
@media (max-width: 600px) {
  .apexcharts-canvas,
  .apexcharts-svg,
  .apexcharts-graphical {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .apexcharts-toolbar {
    justify-content: flex-start;
  }
  .apexcharts-legend {
    font-size: 12px;
    gap: 6px;
  }
}
/* Optional utility: if you have fixed-width chart columns, add responsive helper */
.chart-responsive {
  width: 100%;
  max-width: 100%;
}

/********************************
TAGS LIST
*********************************/
/* Estilos básicos para drag-and-drop de listas de tags */
.tag-list-group {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
}

.tag-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.tag-list-title {
  font-weight: bold;
  color: #333;
}

.tag-list-actions {
  display: flex;
}

.tag-list-actions button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 3px;
}

.tag-list-actions button:hover {
  background: #e0e0e0;
  color: #333;
}

.tag-list-items {
  min-height: 50px;
  border: 2px dashed transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tag-list-items:empty::after {
  content: "Arraste tags aqui...";
  color: #999;
  font-style: italic;
  text-align: center;
  display: block;
  padding: 15px;
  background: #f0f0f0;
  border-radius: 4px;
  border: 1px dashed #ccc;
}

/* Drop zones ativas durante drag */
.tag-list-items.drop-zone-active {
  border-color: #4CAF50;
  background: #e8f5e8;
  transform: scale(1.02);
}

.tag-list-items.drop-zone-active:empty::after {
  content: "Solte a tag aqui!";
  color: #4CAF50;
  background: #d4edda;
  border-color: #4CAF50;
}

/* Sortable states */
.sortable-chosen {
  opacity: 0.8;
  transform: scale(1.05);
  z-index: 1000;
}

.sortable-ghost {
  opacity: 0.3;
  background: #e3f2fd !important;
  border: 2px dashed #2196F3;
}

.sortable-drag {
  transform: rotate(2deg);
  z-index: 1001;
}

/* Make tag items draggable */
.tag-item {
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin: 3px 0;
  transition: transform 0.2s ease;
}

.tag-item:hover {
  transform: translateY(-1px);
}

.tag-item:active {
  cursor: grabbing;
}

/* Estilo do select de filtro */
.tag-list-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 4px;
}

.tag-list-filter .fas.fa-folder {
  color: #666;
  font-size: 16px;
}

#tagListFilterSelect {
  font-size: 14px;
  background-color: transparent;
  border: none;
}

#tagListFilterSelect option {
  padding: 5px;
}

/* PAGINA PRINCIPAL - DASHBOARD **********************************************************************/
.paginaprincial h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* Homepage header background (página inicial) */
.paginaprincial.hero-header {
  background-color: #f8f9fa;
  background-image: radial-gradient(#dae3ff 0.35px, #f8f9fa 0.35px);
  background-size: 7px 7px;
}

main.paginaprincial {
  background-color: white;
}

.main-paginainicial {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-header .hero-inner {
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  padding-bottom: 120px;
  text-align: center;
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  flex-direction: column;
}

.hero-header .hero-inner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-header .hero-inner {
    padding-bottom: 80px;
  }
}
/******************************
  TOPIC CARDS - INDEX PAGE (MINIMALIST)
******************************/
.intro-topics {
  padding: 2rem 0;
}
.intro-topics h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.topic-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
  position: relative;
}
.topic-card:hover {
  border-color: var(--primary-color);
}

.topic-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
}
.topic-content h3 i {
  font-size: 1.1rem;
  color: var(--color-secondary);
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.topic-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive adjustments for topic cards */
@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
}
/* Badges for topic cards */
.topic-badge {
  position: absolute;
  top: -15px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.topic-badge--free {
  background: #E6F9EE;
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.12);
}

.topic-badge--soon {
  background: #FFFAEB;
  color: #ffb300;
  border: 1px solid rgba(255, 179, 0, 0.08);
}

/******************************
  JOURNEY SECTION - INDEX PAGE
******************************/
.journey-section {
  padding: 3rem 0;
  margin-top: 30px;
}
.journey-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.journey-steps {
  display: flex;
  gap: 2rem;
  margin: 0 auto;
}

.journey-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: white;
  width: 100%;
  border-radius: 8px;
  transition: border-color 0.2s ease;
  text-align: center;
  align-items: center;
  /* center children horizontally */
}

.journey-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  /* ensure perfect vertical centering */
  flex-shrink: 0;
}

.journey-step:nth-child(odd) .journey-step-number {
  background: var(--color-primary) !important;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.step-content p {
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 0.95rem;
  margin: 0;
}

/* Responsive adjustments for topic cards */
@media (max-width: 768px) {
  .journey-steps {
    flex-direction: column;
  }
}
/******************************
  BETA CTA SECTION - INDEX PAGE
******************************/
.beta-cta-section {
  padding: 4rem 0;
  background: white;
  border-top: 1px solid #e9ecef;
  margin-top: 80px;
}

.beta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.beta-logo {
  margin-bottom: 2rem;
}
.beta-logo img {
  height: 60px;
  width: auto;
  opacity: 0.9;
}

.beta-cta-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.beta-cta-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.beta-cta-section .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--secondary-color);
  color: white !important;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
  margin: 0;
}
.beta-cta-section .login-btn i {
  color: white;
  font-size: 0.9rem;
}
.beta-cta-section .login-btn:hover {
  background-color: var(--primary-color);
  text-decoration: none;
}
.beta-cta-section .login-btn:hover i {
  color: var(--accent-color);
}

/******************************
  FOOTER - INDEX PAGE
******************************/
footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
  padding: 20px;
}

.footer-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.footer-section p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}
.footer-section ul li {
  margin-bottom: 0.5rem;
}
.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 0.25rem 0;
}
.footer-bottom .footer-credits {
  opacity: 0.7;
}

/* Mobile adjustments for footer */
@media (max-width: 768px) {
  footer {
    padding: 2rem 0 1rem;
  }
  .footer-logo {
    margin-bottom: 20px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-section h4 {
    font-size: 1rem;
  }
}
/* Smooth scroll target highlighting */
section:target {
  animation: highlight-section 2s ease-in-out;
}

@keyframes highlight-section {
  0% {
    background-color: rgba(var(--primary-color-rgb), 0.05);
  }
  100% {
    background-color: transparent;
  }
}
html {
  scroll-behavior: smooth;
}

/******************************
  Preços
******************************/
.pricing-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.pricing-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-header .lead {
  font-size: 1.125rem;
  color: var(--text-secundary);
}

/* Alertas */
/* Alertas melhorados */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--card-radius);
  margin-bottom: 2rem;
  border: 1px solid;
  background: white;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
}

.alert i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.alert-success {
  border-color: var(--color-success);
  color: #2e6930;
  background: linear-gradient(135deg, #f8fff8 0%, #ffffff 100%);
}

.alert-warning {
  border-color: var(--color-warning);
  color: #856404;
  background: linear-gradient(135deg, #fffdf0 0%, #ffffff 100%);
}

.alert-danger {
  border-color: var(--color-danger);
  color: #721c24;
  background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
}

.alert .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* Switch de Preços */
.pricing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-period {
  font-weight: 600;
  color: var(--text-secundary);
  transition: color 0.2s;
}

.pricing-period.active {
  color: var(--color-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.pricing-save {
  font-size: 0.75rem;
  color: var(--color-success);
  margin-left: 0.5rem;
}

/* Grid de Planos */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pricing-plan {
  position: relative;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 2rem;
  transition: all 0.3s ease;
}

.pricing-plan:hover {
  transform: translateY(-5px);
}

.pricing-plan.popular {
  border-color: var(--color-primary);
}

/* Badges */
.popular-badge,
.current-plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.popular-badge {
  background: var(--color-primary);
  color: white;
}

.current-plan-badge {
  background: var(--color-success);
  color: white;
}

/* Conteúdo dos Planos */
.plan-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.period {
  font-size: 1rem;
  color: var(--text-secundary);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secundary);
}

.plan-features li:last-child {
  border-bottom: none;
}

/* Botões */
.plan-cta {
  margin-top: 2rem;
}

.btn-subscribe {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  text-align: center;
  text-decoration: none;
  border-radius: var(--card-radius);
  font-weight: 600;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-subscribe.primary {
  background: var(--color-primary);
  color: white;
}

.btn-subscribe.primary:hover {
  background: #3a5fd8;
}

.btn-subscribe.outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: white;
}

.btn-subscribe.outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-subscribe.current {
  background: var(--color-success);
  color: white;
  cursor: default;
}

.btn-subscribe.disabled {
  background: var(--border-light);
  color: var(--text-secundary);
  cursor: not-allowed;
}

/* Confirmação de Mudança de Plano */
.plan-change-confirmation {
  text-align: center;
}

.confirm-change-btn {
  background: var(--color-success) !important;
  color: white !important;
  border: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }
  .pricing-switch {
    flex-direction: column;
    gap: 0.5rem;
  }
  .pricing-header h1 {
    font-size: 2rem;
  }
  .plan-price {
    font-size: 2.5rem;
  }
}
.switch.disabled .slider {
  cursor: not-allowed;
  background-color: #e9ecef;
}

/* Responsividade para alertas */
@media (max-width: 768px) {
  .alert {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .alert .btn {
    margin-left: 0;
    margin-top: 0.5rem;
    align-self: center;
  }
  .alert i {
    align-self: center;
  }
}
/* =========================
   Suporte (usuário) & Admin (tickets)
   Add to: code/css/style_new.css
   Uses existing CSS variables (--primary-color, --card-bg, etc.)
   ========================= */
/* ---------- Suporte (página pública) ---------- */
.support-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.support-header h1 {
  color: var(--primary-color);
  margin: 0 0 0.25rem 0;
  font-size: 1.75rem;
}

.support-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

/* Content sections */
.support-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card sections */
.support-form-section,
.support-history-section {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Section titles */
.support-form-section h2,
.support-history-section h2 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

/* Form elements */
.support-form .form-group {
  margin-bottom: 1rem;
}

.support-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.support-form input[readonly] {
  background: rgba(0, 0, 0, 0.05);
  cursor: default;
}

.support-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Hints & counters */
.form-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.char-count {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Submit */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.95rem;
  border-radius: 10px;
  border: none;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-3px);
  filter: brightness(0.98);
}

.btn-submit[disabled] {
  background: var(--button-disabled, #888);
  cursor: not-allowed;
  transform: none;
}

/* Tickets list (user) */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.ticket-card {
  background: var(--card-bg-secondary);
  border-radius: 8px;
  padding: 0.85rem;
  border-left: 4px solid var(--border-color);
  transition: transform 0.12s ease;
}

.ticket-card:hover {
  transform: translateX(4px);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.ticket-id {
  font-weight: 700;
  color: var(--primary-color);
}

.ticket-status {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* status colors */
.status-pendente {
  background: rgba(245, 227, 96, 0.12);
  color: #e6b800;
}

.status-em_andamento {
  background: rgba(79, 170, 239, 0.1);
  color: #4faaeF;
}

.status-respondido {
  background: rgba(102, 205, 76, 0.1);
  color: #66cd4c;
}

.status-fechado {
  background: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
}

.ticket-subject {
  color: var(--text-primary);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.ticket-date {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

/* Small screens */
@media (max-width: 768px) {
  .support-content {
    gap: 1rem;
  }
  .support-form-section,
  .support-history-section {
    padding: 0.85rem;
  }
  .ticket-subject {
    font-size: 0.95rem;
  }
}
/* ---------- Admin: support tab & modal ---------- */
/* Table container adjustments */
#support-table .custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

#support-table .custom-table th,
#support-table .custom-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* small cell truncation */
.ticket-subject-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* admin stat cards (ensure contrast) */
.tab-content#support .stat-card {
  min-width: 140px;
}

/* Modal overlay (admin) */
#ticketModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1200;
}

/* Modal box */
.ticket-modal-content {
  width: min(760px, 96%);
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: white;
}

/* modal header */
.ticket-modal-content .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
}

.ticket-modal-content .modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.ticket-modal-content .modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
}

/* modal body */
.ticket-modal-content .modal-body {
  padding: 1.25rem;
}

.ticket-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-info-item label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ticket-info-item span {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Boxes */
.ticket-subject-box p {
  margin: 0 0 10px 0;
  color: var(--text-primary);
  font-weight: 600;
}

.ticket-message-box > div {
  background: var(--card-bg-secondary);
  padding: 0.9rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  color: var(--text-primary);
  line-height: 1.5;
}

/* admin notes */
.ticket-admin-notes textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  resize: vertical;
}

/* action buttons */
.status-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-status {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  background: transparent;
}

.btn-pending {
  color: #e6b800;
  border-color: rgba(230, 184, 0, 0.15);
  background: rgba(230, 184, 0, 0.05);
}

.btn-in-progress {
  color: #2196f3;
  border-color: rgba(33, 150, 243, 0.12);
  background: rgba(33, 150, 243, 0.04);
}

.btn-responded {
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.12);
  background: rgba(76, 175, 80, 0.04);
}

.btn-closed {
  color: #9e9e9e;
  border-color: rgba(158, 158, 158, 0.1);
  background: rgba(158, 158, 158, 0.03);
}

.btn-save {
  padding: 0.6rem 1.05rem;
  border-radius: 9px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  font-weight: 800;
  cursor: pointer;
}

.btn-save:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

/* priority badges */
.priority-high {
  background: rgba(244, 67, 54, 0.12);
  color: #f44336;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.priority-medium {
  background: rgba(255, 193, 7, 0.12);
  color: #e6b800;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.priority-low {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ticket table small helpers */
.custom-table .loading-data,
.custom-table .empty-data,
.custom-table .error-data {
  text-align: center;
  color: var(--text-secondary);
  padding: 1rem;
}

/* responsive modal */
@media (max-width: 600px) {
  .ticket-info-grid {
    grid-template-columns: 1fr;
  }
  .status-buttons {
    flex-direction: column;
  }
  .btn-status {
    width: 100%;
    text-align: center;
  }
  .ticket-modal-content {
    width: 96%;
    max-height: 94vh;
  }
}
/* ============================================
   NOTIFICATION BELL - Sistema de Notificações
   ============================================ */
/* Container do sininho */
.notification-bell-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Wrapper para sidebar */
.sidebar-notification-wrapper {
  padding: 10px;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  padding-bottom: 0;
  background-color: var(--navbar-bg);
}
.sidebar-notification-wrapper .notification-bell-container {
  width: 100%;
}
.sidebar-notification-wrapper .notification-bell {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 20px;
  border-radius: 5px;
  gap: 15px;
}
.sidebar-notification-wrapper .notification-bell:hover {
  background-color: var(--color-secondary);
  color: white;
}
.sidebar-notification-wrapper .notification-bell:hover i {
  color: var(--amarelo-bd);
}
.sidebar-notification-wrapper .notification-bell i {
  font-size: 18px;
  width: 20px;
  text-align: center;
  color: var(--color-secondary);
}
.sidebar-notification-wrapper .notification-bell::after {
  content: "Notificações";
  font-size: 16px;
}
.sidebar-notification-wrapper .notification-badge {
  position: static;
}
.sidebar-notification-wrapper .notification-dropdown {
  left: calc(100% + 10px);
  top: -200px;
  bottom: auto;
  margin-left: 10px;
}

/* Wrapper para top navbar */
.top-notification-wrapper {
  margin-right: 15px;
}
.top-notification-wrapper .notification-dropdown {
  right: 0;
  left: auto;
}

/* Wrapper para mobile header */
.mobile-notification-wrapper .notification-bell {
  padding: 8px;
}
.mobile-notification-wrapper .notification-bell i {
  font-size: 20px;
}
.mobile-notification-wrapper .notification-dropdown {
  position: fixed;
  top: var(--header-height);
  left: 10px;
  right: 10px;
  width: auto;
}

/* Botão do sininho */
.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.2s ease;
  color: var(--text-color);
  /* Animação de shake */
}
.notification-bell i {
  font-size: 18px;
  color: var(--color-secondary);
  transition: all 0.2s ease;
}
.notification-bell:hover {
  background-color: rgba(var(--color-secondary), 0.1);
}
.notification-bell:hover i {
  color: var(--color-primary);
}
.notification-bell.has-notifications i {
  color: var(--color-secondary);
}
.notification-bell.shake {
  animation: bellShake 0.5s ease-in-out;
}

@keyframes bellShake {
  0%, 100% {
    transform: rotate(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(-10deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(10deg);
  }
}
/* Badge de contagem */
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
/* Dropdown de notificações */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 500px;
  max-width: calc(100vw - 20px);
  background: white;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  z-index: 1100;
  margin-top: 8px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.notification-dropdown.show {
  opacity: 1;
  transform: translateY(0);
}

/* Header do dropdown */
.notification-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--navbar-bg);
}
.notification-dropdown-header h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}
.notification-dropdown-header .mark-all-read-btn {
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.notification-dropdown-header .mark-all-read-btn:hover {
  background: rgba(80, 119, 238, 0.1);
}
.notification-dropdown-header .mark-all-read-btn i {
  font-size: 14px;
}

/* Body do dropdown */
.notification-dropdown-body {
  max-height: 238px;
  overflow-y: auto;
  /* Scrollbar customizada */
}
.notification-dropdown-body::-webkit-scrollbar {
  width: 6px;
}
.notification-dropdown-body::-webkit-scrollbar-track {
  background: transparent;
}
.notification-dropdown-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

/* Footer do dropdown */
.notification-dropdown-footer {
  padding: 10px 12px;
  border-top: 1px solid var(--border-color);
  background: var(--navbar-bg);
}
.notification-dropdown-footer .notification-settings-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secundary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.notification-dropdown-footer .notification-settings-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Item de notificação */
.notification-item {
  display: flex;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}
.notification-item:hover {
  background: rgba(80, 119, 238, 0.04);
}
.notification-item.unread {
  background: rgba(80, 119, 238, 0.06);
}
.notification-item.unread:hover {
  background: rgba(80, 119, 238, 0.1);
}
.notification-item:last-child {
  border-bottom: none;
}

/* Ícone da notificação */
.notification-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notification-icon i {
  font-size: 16px;
}

/* Conteúdo da notificação */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notification-message {
  font-size: 0.85rem;
  color: var(--text-secundary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-time {
  font-size: 0.75rem;
  color: var(--text-secundary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.notification-time i {
  font-size: 0.7rem;
}

/* Indicador de não lida */
.notification-unread-dot {
  position: absolute;
  top: 15px;
  right: 19px;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.delete-all-btn {
  background: transparent;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.delete-all-btn:hover {
  background: rgba(242, 59, 101, 0.1);
}
.delete-all-btn i {
  font-size: 14px;
}

/* Botão de deletar notificação */
.notification-delete-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secundary);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.2s ease;
}

.notification-item:hover .notification-delete-btn {
  opacity: 1;
}

.notification-delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.notification-delete-btn i {
  font-size: 12px;
}

/* Estados vazios e de carregamento */
.notification-loading,
.notification-empty,
.notification-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secundary);
}
.notification-loading i,
.notification-empty i,
.notification-error i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}
.notification-loading p,
.notification-empty p,
.notification-error p {
  margin: 0;
  font-size: 0.9rem;
}
.notification-loading button,
.notification-empty button,
.notification-error button {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}
.notification-loading button:hover,
.notification-empty button:hover,
.notification-error button:hover {
  filter: brightness(0.95);
}

.notification-loading i {
  color: var(--color-primary);
  opacity: 1;
}
.notification-loading span {
  margin-top: 8px;
}

/* Modal de configurações */
.notification-settings-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1200;
  padding: 20px;
}

.notification-settings-content {
  background: white;
  border-radius: var(--card-radius);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.notification-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}
.notification-settings-header h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notification-settings-header h3 i {
  color: var(--color-primary);
}
.notification-settings-header .close-settings {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secundary);
  line-height: 1;
}
.notification-settings-header .close-settings:hover {
  color: var(--color-danger);
}

.notification-settings-body {
  padding: 16px;
}

.notification-setting-item {
  padding: 12px 0;
}
.notification-setting-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}
.notification-setting-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}
.notification-setting-item label input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}
.notification-setting-item small {
  display: block;
  margin-top: 6px;
  margin-left: 28px;
  color: var(--text-secundary);
  font-size: 0.8rem;
}

/* Responsivo */
@media (max-width: 1000px) {
  .sidebar-notification-wrapper .notification-dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    bottom: 80px;
    width: auto;
    margin-left: 0;
  }
}
@media (max-width: 480px) {
  .notification-dropdown {
    width: calc(100vw - 20px);
  }
  .notification-dropdown-body {
    max-height: 300px;
  }
  .notification-item {
    padding: 10px 12px;
  }
  .notification-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  .notification-icon i {
    font-size: 14px;
  }
}
/******************************
  CSV Import Section - Minimalist
******************************/
.import-form-container {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.import-info {
  margin-bottom: 1rem;
}
.import-info p {
  margin: 0 0 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-secundary);
}

.btn-download-template {
  display: inline-block;
  padding: 8px 12px;
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}
.btn-download-template:hover {
  background: var(--color-primary);
  color: white;
}

.import-upload {
  margin-top: 1rem;
}

.btn-select-file {
  padding: 8px 12px;
  background: transparent;
  color: var(--text-primary);
  border: 1px dashed var(--border-light);
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-select-file:hover {
  border-color: var(--color-primary);
}

.selected-file-name {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--text-secundary);
}

.import-submit-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 10px;
  background: var(--color-success);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}
.import-submit-btn:hover {
  opacity: 0.9;
}

.import-progress {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--color-info-light);
  border-radius: 4px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-info);
}

.import-results {
  margin-top: 1rem;
}

.import-success,
.import-error {
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.import-success {
  background: rgba(102, 205, 76, 0.1);
  color: var(--color-success);
}

.import-error {
  background: rgba(242, 59, 101, 0.1);
  color: var(--color-danger);
}

.import-errors-list {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--navbar-bg);
  border-radius: 4px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.8rem;
}

.import-error-item {
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
}
.import-error-item:last-child {
  border-bottom: none;
}

.premium-feature-locked .premium-feature-group {
  position: relative;
  display: block;
}
.premium-feature-locked .import-btn.disabled {
  width: 100%;
  opacity: 0.4;
  cursor: not-allowed;
}
.premium-feature-locked .btn-premium-upgrade {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  background: #ffd700;
  color: var(--color-secondary);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
}
.premium-feature-locked .btn-premium-upgrade:hover {
  opacity: 0.9;
}

.tag-counter {
  font-size: 0.8rem;
  color: var(--text-secundary);
}
.tag-counter i {
  margin-right: 4px;
}
.tag-counter.near-limit {
  color: var(--color-warning);
}
.tag-counter.at-limit {
  color: var(--color-danger);
  font-weight: 500;
}/*# sourceMappingURL=style_new.css.map */