:root {
  --primary-color: #001990;
  --secondary-color: #2d3142;
  --tertiary-color: #2563eb;
  --accent-color: #ff6b6b;
  --accent-secondary: #2ec4b6;
  --accent-tertiary: #ffd93d;
  --dark-magenta: #dc3545;
  --blue-light: #4f69ff;
  --text-dark: #2d3142;
  --text-light: #6b7280;
  --bg-light: #f7f9fc;
  --bg-secondary: #e5e9f2;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #001990 0%, #4f69ff 100%);
  --gradient-vibrant: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
  --gradient-verso: linear-gradient(135deg, #2d3142 0%, #6b7280 100%);
}

body {
  background: var(--bg-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

.sidebar {
  background: var(--gradient);
  min-height: 100vh;
  max-height: 100vh;
  width: 220px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  padding: 1.2rem 0.75rem;
  color: white;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overflow-x: hidden;
}

.main-content {
  margin-left: 220px;
  padding: 2rem;
  min-height: 100vh;
}

.logo {
  /* font-size: 60px;
  font-weight: bold;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem; */
  background: url('../img/cpanel_logo.png') center/cover no-repeat;
  width: 100%;
  height: 60px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.nav-item {
  margin: 0.2rem 0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.nav-item a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  border-radius: 10px;
  font-size: 0.9rem;
}

.nav-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.edit {
  color: var(--blue-light);
  margin-right: 10px;
}
.trash {
  color: var(--dark-magenta);
}

.h3,
h3 {
  font-size: calc(1.3rem + 0.6vw);
  color: var(--primary-color);
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.fw-normal {
  font-weight: 400 !important;
}

.stats-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: none;
  transition: all 0.3s ease;
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.icon-services {
  background: var(--gradient);
}
.icon-about {
  background: var(--gradient-vibrant);
}
.icon-portfolio {
  background: var(--accent-secondary);
}
.icon-blog {
  background: var(--accent-color);
}
.icon-categories {
  background: var(--tertiary-color);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-dark);
  margin: 0.5rem 0;
}

.stats-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.badge-custom {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
}
.badge-secondary {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}
.badge-active {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.badge-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.badge-archived {
  background: rgba(202, 138, 4, 0.1);
  color: #ca8a04;
}

.chart-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-top: 2rem;
}

.welcome-header {
  background: var(--gradient);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.activity-item {
  padding: 1rem;
  border-left: 4px solid var(--tertiary-color);
  background: white;
  margin: 1rem 0;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.fab-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  border: none;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.fab-button a {
  color: white;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.reg-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.reg-button:hover {
  background-color: var(--tertiary-color);
  color: white;
  transform: scale(1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.btn-login:hover {
  background-color: var(--tertiary-color);
  color: var(--white);
}

#editor .ck-editor__editable {
  min-height: 300px;
  max-height: 600px;
  overflow-y: auto;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 1.2rem 0.75rem;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .nav-item {
    margin: 0.35rem 0;
  }

  .nav-item a {
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__background {
  fill: transparent;
  stroke: #f1f5f9;
  stroke-width: 8;
}

.progress-ring__progress {
  fill: transparent;
  stroke: var(--tertiary-color);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s ease;
}

/* .capa {
    max-width: 80px
} */

/* Estilos básicos da galeria */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery img {
  width: 100px; /* Tamanho das miniaturas - ajuste conforme necessário */
  cursor: pointer; /* Indica que é clicável */
}

/* Estilos do Lightbox */
.lightbox {
  position: fixed; /* Fixo na tela */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fundo escuro semi-transparente */
  display: none; /* Oculto inicialmente */
  justify-content: center; /* Centraliza horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  z-index: 1000; /* Acima de outros elementos */
  transition: opacity 0.3s ease; /* Transição suave */
}

.lightbox.active {
  display: flex; /* Mostra quando ativo */
  opacity: 1;
}

.lightbox-content {
  max-width: 90%; /* Limita a largura máxima */
  max-height: 90%; /* Limita a altura máxima */
  object-fit: contain; /* Mantém proporções sem distorção */
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb; /* Efeito hover para melhor interação */
}

/* Mostra apenas Anterior («) e Próximo (») */
/* .dataTables_wrapper .dataTables_paginate .paginate_button.first,
.dataTables_wrapper .dataTables_paginate .paginate_button.last {
    display: none !important;
} */

/* Ajuste visual dos símbolos */
/* .dataTables_wrapper .dataTables_paginate .paginate_button.previous .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.next .page-link {
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.5rem 0.85rem;
} */

/* Media query para responsividade */
@media (max-width: 600px) {
  .close {
    font-size: 30px;
    top: 10px;
    right: 20px;
  }
}
