:root {
  --bg-main: #484450;
  --bg-surface: #466067;
  --accent: #459a96;
  --accent-glow: #34baab;
  --text-primary: #ffffff;
  --text-details: #c4c8c5;
  --glass-background: rgba(89, 38, 0, 0.81);
  --glass-border: rgba(196, 200, 197, 0.2);
  --glass-blur: blur(12px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, rgb(33, 8, 0) 0%, rgb(18, 6, 0) 33%, rgb(48, 15, 0) 65%, rgb(18, 6, 0) 100%);
}

.admin-header {
  background: var(--glass-background);
  backdrop-filter: var(--glass-blur);
  border-bottom: 2px solid var(--accent);
  color: var(--text-primary);
  padding: 1rem 2rem 1rem 5.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hamburger {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hamburger input {
  display: none;
}

.menu-options {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 270px;
  background: var(--glass-background);
  backdrop-filter: var(--glass-blur);
  box-shadow: 2px 0 24px rgba(0, 0, 0, 0.5);
  border-right: 1px solid var(--glass-border);
  padding: 80px 0 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(-110%);
  transition: var(--transition-smooth);
  z-index: 3050;
}

#menu-toggle-checkbox:checked~.menu-options {
  transform: translateX(0);
}

.menu-options a {
  font-family: "Tektur", sans-serif;
  color: var(--text-details);
  text-decoration: none;
  font-size: 1.15em;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
  white-space: nowrap;
  margin: -4px 5px;
}

.menu-options a:hover,
.menu-options a.active {
  background: rgba(69, 154, 150, 0.2);
  color: var(--text-primary);
  border-left: 3px solid var(--accent-glow);
  box-shadow: 0 0 15px rgba(52, 186, 171, 0.1);
  margin: -4px 5px;
}

.menu-options i {
  width: 28px;
  text-align: center;
  font-size: 1.2em;
}

.hamburger input:checked~.menu-options::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3040;
  pointer-events: auto;
}

@media (min-width: 993px) {

  .hamburger,
  .menu-options {
    display: none !important;
  }
}

@media (orientation: landscape) {

  .hamburger,
  .menu-options {
    display: flex !important;
  }
}


.hamburger input {
  display: none;
}

.hamburger svg {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  height: 3em;
  z-index: 3100;
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger {
  position: fixed;
  top: 5px;
  left: 5px;
  z-index: 3100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 48px;
  height: 48px;
}

.menu-options {
  padding-top: 72px;
}

.line {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  /* Define the transition for transforming the Stroke */
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
  stroke-dasharray: 12 63;
}

#menu-toggle-checkbox:checked+label.hamburger svg {
  transform: rotate(-45deg);
}

#menu-toggle-checkbox:checked+label.hamburger svg .line-top-bottom {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}

.menu-toggle {
  display: none;
  position: absolute;
  left: 1.5rem;
  top: 1.1rem;
  width: 54px;
  height: 54px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 2000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.menu-hamburger {
  cursor: pointer;
  transition: filter 0.2s;
}

.menu-hamburger .line {
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.10));
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1),
    opacity 0.3s cubic-bezier(.4, 0, .2, 1);
}

.menu-toggle.active .menu-hamburger .top {
  transform: translateY(20px) rotate(45deg);
}

.menu-toggle.active .menu-hamburger .middle {
  opacity: 0;
}

.menu-toggle.active .menu-hamburger .bottom {
  transform: translateY(-20px) rotate(-45deg);
}

.menu-toggle:hover .menu-hamburger .line {
  filter: drop-shadow(0 0 12px #fff8);
}

.menu-toggle .bar {
  display: block;
  width: 36px;
  height: 5px;
  margin: 5px 0;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.12);
}

.menu-hamburger {
  cursor: pointer;
  transition: filter 0.2s;
}

.menu-hamburger .line {
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.10));
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1),
    opacity 0.3s cubic-bezier(.4, 0, .2, 1);
}

.menu-toggle.active .menu-hamburger .top {
  transform: translateY(20px) rotate(45deg);
}

.menu-toggle.active .menu-hamburger .middle {
  opacity: 0;
}

.menu-toggle.active .menu-hamburger .bottom {
  transform: translateY(-20px) rotate(-45deg);
}

.menu-toggle:hover .menu-hamburger .line {
  filter: drop-shadow(0 0 12px #fff8);
}

.menu-toggle .bar {
  display: block;
  width: 36px;
  height: 5px;
  margin: 7px auto;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.10);
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.menu-hamburger {
  cursor: pointer;
  transition: filter 0.2s;
}

.menu-hamburger .line {
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.10));
  transition: transform 0.4s cubic-bezier(.4, 0, .2, 1),
    opacity 0.3s cubic-bezier(.4, 0, .2, 1);
}

.menu-toggle.active .menu-hamburger .top {
  transform: translateY(20px) rotate(45deg);
}

.menu-toggle.active .menu-hamburger .middle {
  opacity: 0;
}

.menu-toggle.active .menu-hamburger .bottom {
  transform: translateY(-20px) rotate(-45deg);
}

.menu-toggle:hover .menu-hamburger .line {
  filter: drop-shadow(0 0 12px #fff8);
}

.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 4px;
  margin: 5px auto;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}

@media (max-width: 992px) {
  .menu-toggle {
    display: none;
  }

  .menu-toggle.menu-toggle-open {
    display: flex;
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    z-index: 3000;
  }

  .sidebar.active .menu-toggle.menu-toggle-open {
    display: none !important;
  }

  .sidebar .menu-toggle.menu-toggle-close {
    display: none;
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    z-index: 3000;
  }

  .sidebar.active .menu-toggle.menu-toggle-close {
    display: flex !important;
  }

  .sidebar {
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    border-radius: 0 18px 18px 0;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s;
    z-index: 2000;
  }

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

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    animation: fadeIn 0.3s;
  }
}



.admin-header h1 {
  color: #fff !important;
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-header i {
  color: #fff !important;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: bold;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(69, 154, 150, 0.3);
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  background-color: var(--accent-glow);
  transform: translateY(-2px);
  /*box-shadow: 0 6px 15px rgba(52, 186, 171, 0.3);*/
}

/* Sidebar */
.admin-container {
  display: flex;
  min-height: calc(100vh - 70px);
}

.sidebar {
  width: 260px;
  background: var(--bg-surface);
  color: var(--text-primary);
  height: 100vh;
  position: sticky;
  top: 70px;
  left: 0;
  transition: var(--transition-smooth);
  z-index: 1200;
  overflow-y: auto;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
  padding-top: 1rem;
  border-right: 1px solid var(--glass-border);
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    border-radius: 0 18px 18px 0;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s;
  }

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

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    animation: fadeIn 0.3s;
  }
}

@media (min-width: 993px) {
  .sidebar {
    position: sticky;
    top: 70px;
    left: 0;
    transform: none !important;
    box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.18);
    border-radius: 0 18px 18px 0;
    transition: none;
  }

  .overlay {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .sidebar {
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.25);
    border-radius: 0 18px 18px 0;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1), box-shadow 0.3s;
  }

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

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    animation: fadeIn 0.3s;
  }
}

.sidebar .sidebar-header {
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.sidebar-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
}

.sidebar-menu .menu-item {
  border-radius: 10px;
  margin: 0 1rem 0.5rem 1rem;
  padding: 14px 18px;
  font-size: 1.08em;
  font-weight: 500;
  background: transparent;
  color: #fff;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-menu .menu-item:hover,
.sidebar-menu .menu-item.active {
  background: rgba(69, 154, 150, 0.25);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  border-left: 4px solid var(--accent-glow);
}

.sidebar-menu .menu-item i {
  width: 26px;
  text-align: center;
  font-size: 1.1em;
}


.sidebar-header {
  padding: 2rem 2rem 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
}

.sidebar-menu {
  list-style: none;
  padding: 0 1rem;
  margin: 0;
}

.sidebar-menu li {
  margin: 0 0 18px 0;
  padding: 0;
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 16px 20px;
  font-size: 1.18em;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
  font-weight: 500;
  box-shadow: none;
  position: relative;
  background: transparent;
}

.menu-item i {
  width: 28px;
  text-align: center;
  font-size: 1.18em;
  transition: color 0.2s;
}

.menu-item:hover,
.menu-item.active {
  background: rgba(69, 154, 150, 0.25);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  border-left: 4px solid var(--accent-glow);
}

.menu-item.active {
  font-weight: 700;
  background: rgba(69, 154, 150, 0.35);
  color: #fff;
  border-right: none;
}

.menu-item:hover i,
.menu-item.active i {
  color: var(--accent);
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 0 4px 24px 0 rgba(44, 62, 80, 0.18);
  }

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

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.35);
  z-index: 1199;
  transition: opacity 0.3s;
  opacity: 0;
}

.overlay.active {
  display: block;
  opacity: 1;
}


/* Sidebar oculta em mobile */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 2px 0 18px 0 rgba(44, 62, 80, 0.18);
  }
}

/* Overlay para menu mobile */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 62, 80, 0.35);
  z-index: 1199;
  transition: opacity 0.3s;
  opacity: 0;
}

.overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 900px) {
  .overlay {
    display: block;
  }

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

.sidebar-header {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0;
  padding: 0;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}

.sidebar-menu li.divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

/* Estilos do submenu */
.submenu {
  display: none;
  background: #181818;
  padding: 0;
  margin: 0 0 0 8px;
  border-radius: 0 0 10px 10px;
  list-style: none;
  position: relative;
  z-index: 1210;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1), opacity 0.25s;
  box-shadow: 0 8px 32px 0 rgba(44, 62, 80, 0.12);
  opacity: 0;
}

.submenu.active {
  display: block;
  max-height: 600px;
  opacity: 1;
  animation: fadeIn 0.3s cubic-bezier(.4, 0, .2, 1);
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 12px 32px;
  color: #fff;
  text-decoration: none;
  border-radius: 7px;
  font-size: 1em;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  background: transparent;
}

.submenu-item:hover,
.submenu-item.active {
  background: #222;
  color: #fff;
  padding-left: 44px;
}

.submenu-item i {
  color: var(--accent);
  width: 22px;
  text-align: center;
  font-size: 1.08em;
}


.submenu.active {
  display: block;
  max-height: 500px;
  /* Altura máxima para a animação */
}

.submenu-item {
  display: block;
  padding: 10px 45px;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9em;
}

.submenu-item:hover {
  background-color: rgba(52, 152, 219, 0.2);
  color: var(--secondary);
  padding-left: 50px;
}

.submenu-item i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.menu-item .fa-chevron-down {
  transition: transform 0.3s ease;
  font-size: 0.8em;
  margin-left: auto;
}

.menu-item .fa-chevron-down.rotate {
  transform: rotate(180deg);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1051;
}

.menu-item i {

  width: 24px;
  text-align: center;
}

.menu-item:hover,
.menu-item.active {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary);
  border-right: 3px solid var(--secondary);
}

.menu-item.active {
  font-weight: 500;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 8px;
  padding: 2rem;
  margin-top: 5px;
  background-color: #484450;
  min-height: calc(100vh - 70px);
}

.card {
  background: #46606742;
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 2.5rem;
  margin-bottom: 2rem;






}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.card-title {
  color: #c4c8c5 !important;
  font-family: gruppo;
  text-align: center;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.stat-icon i {
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.stat-info h3 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
  font-weight: 700;
}

.stat-info p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Estilos para os submenus */
.submenu {
  display: none;
  padding: 0;
  margin: 0 0 0 15px;
  background-color: #2c3e50;
  border-radius: 4px;
  list-style: none;
  position: relative;
  z-index: 1052;
  overflow: hidden;
  max-height: 0;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.submenu.active {
  display: block;
  padding: 10px 0;
  max-height: 500px;
  /* Altura máxima para a animação */
  opacity: 1;
  pointer-events: auto;
  animation: fadeIn 0.3s ease-in-out;
}

.submenu li {
  padding: 0;
  margin: 5px 0;
  list-style: none;
}

.submenu a {
  color: #ecf0f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 10px 25px;
  transition: all 0.2s ease;
  border-radius: 4px;
  margin: 2px 10px;
  white-space: nowrap;
}

.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding-left: 30px;
}

.submenu a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.submenu li {
  padding: 5px 15px;
}

.submenu a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

.submenu a:hover {
  color: #3498db;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fa-chevron-down {
  transition: transform 0.3s ease-in-out;
  margin-left: auto;
  font-size: 0.8em;
}

.fa-chevron-down.rotate {
  transform: rotate(180deg);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submenu-item {
  padding: 8px 15px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 4px;
  margin: 2px 0;
  transition: background-color 0.2s;
}

.submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.submenu-item i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

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

.menu-item .fa-chevron-down {
  margin-left: auto;
  font-size: 0.8em;
  transition: transform 0.3s;
}

.menu-item.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* Estilos para os formulários */
.form-liberar-cert {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 0;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px #2222;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.form-liberar-cert label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #222;
  font-size: 1.04rem;
}

.form-liberar-cert input,
.form-liberar-cert select {
  width: 100%;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  border-radius: 1.1rem;
  border: 1px solid #bbb;
  font-size: 1.08rem;
  background: #f8f8fc;
  color: #222;
  transition: border 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px #2221;
}

.form-liberar-cert input:focus,
.form-liberar-cert select:focus {
  border: 1.5px solid #4dd0e1;
  box-shadow: 0 2px 8px #4dd0e133;
  outline: none;
}

.form-liberar-cert .btn-salvar {
  background: linear-gradient(90deg, #4dd0e1 0%, #232526 100%);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 2.3rem;
  font-size: 1.13rem;
  box-shadow: 0 2px 8px #2221;
  cursor: pointer;
  transition: background 0.19s, transform 0.13s;
  margin-bottom: 0.7rem;
}

.form-liberar-cert .btn-salvar:active {
  transform: scale(0.97);
}

.form-liberar-cert .btn-salvar:hover,
.form-liberar-cert .btn-salvar:focus {
  background: linear-gradient(90deg, #232526 0%, #4dd0e1 100%);
}

.form-liberar-cert .success-msg {
  color: #388e3c;
  background: #e6fbe6;
  border-radius: 1.2rem;
  padding: 0.8rem 1.2rem;
  margin: 1.2rem 0 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.06rem;
  box-shadow: 0 2px 8px #2221;
  display: none;
}

@media (max-width: 600px) {
  .form-liberar-cert {
    padding: 0.7rem 0.3rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px #2222;
  }

  .form-liberar-cert label {
    font-size: 0.99rem;
  }

  .form-liberar-cert input,
  .form-liberar-cert select {
    font-size: 0.98rem;
    padding: 0.6rem 0.8rem;
  }

  .form-liberar-cert .btn-salvar {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
}

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

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

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

.btn-primary {
  background-color: transparent !important;
  border: 1px solid var(--accent) !important;
  color: #79fff0 !important;
  padding: 0.6rem 1.2rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  border-radius: 50px;
  font-family: 'tomorrow';
}

.btn-primary:hover {
  background-color: #484450 !important;
  color: white !important;
  /*box-shadow: 0 0 15px rgba(69, 154, 150, 0.3) !important;*/

}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.sugestoes {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  margin-top: 5px;
}

.sugestao-item {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.sugestao-item:hover {
  background-color: #f8f9fa;
}

.sugestao-item strong {
  display: block;
  margin-bottom: 3px;
  color: #2c3e50;
}

.sugestao-item small {
  color: #6c757d;
  font-size: 0.85em;
}

.sem-resultados,
.erro-busca {
  padding: 10px 15px;
  color: #6c757d;
  font-style: italic;
}

.erro-busca {
  color: #dc3545;
}

.sugestoes div {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.sugestoes div:hover {
  background-color: #f5f5f5;
}

.content-section {
  margin-top: 2rem;
}

/* Responsivo */
@media (max-width: 992px) {

  html,
  body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }

  .admin-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    text-align: left;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background-color: #2c3e50;
  }

  .menu-toggle {
    display: none;
    /* Esconde por padrão */
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    right: 15px;
    top: 15px;
    z-index: 1100;
  }

  /* Garante que o botão de menu não apareça em telas grandes */
  @media (min-width: 993px) {
    .menu-toggle {
      display: none !important;
    }
  }

  .sidebar {
    transform: translateX(-100%);
    z-index: 1100;
    width: 280px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

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

  .main-content {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s ease;
  }

  .main-content.shifted {
    margin-left: 280px;
  }

  .menu-toggle {
    display: flex;
    z-index: 1101;
  }

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
  }

  .overlay.active {
    display: block;
  }

  .user-info {
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .user-info .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .user-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  .user-info span {
    display: none;
    /* Esconde o texto em telas pequenas */
  }
}

.central-menu-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  min-height: 60vh;
  width: 100%;
  margin: 0 auto 2rem auto;
}

.central-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  font-size: 1.4rem;
  font-weight: 500;
  border: none;
  border-radius: 2rem;
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  min-width: 220px;
  min-height: 170px;
  outline: none;
  position: relative;
}

.central-menu-btn i {
  font-size: 2.8rem;
  margin-bottom: 0.7rem;
  color: #4dd0e1;
  filter: drop-shadow(0 2px 8px #2222);
}

.central-menu-btn span {
  font-size: 1.18em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.central-menu-btn:hover,
.central-menu-btn:focus {
  background: linear-gradient(90deg, #4dd0e1 0%, #232526 100%);
  color: #fff;
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 16px 40px 0 rgba(31, 38, 135, 0.25);
}

@media (max-width: 900px) {
  .central-menu-container {
    flex-direction: column;
    gap: 2rem;
    min-height: 40vh;
  }

  .central-menu-btn {
    width: 90vw;
    min-width: unset;
    min-height: 120px;
    max-width: 400px;
    font-size: 1.1rem;
    padding: 1.5rem 1rem 1.2rem 1rem;
  }

  .central-menu-btn i {
    font-size: 2rem;
  }
}

.modal-evento-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 34, 40, 0.85);
  justify-content: center;
  align-items: center;
  transition: background 0.22s;
}

.modal-evento-overlay.ativo {
  display: flex;
  animation: fadeInModalBg 0.2s;
}

@keyframes fadeInModalBg {
  from {
    background: rgba(30, 34, 40, 0.01);
  }

  to {
    background: rgba(30, 34, 40, 0.85);
  }
}

/* Fullscreen support for modals */
.modal-evento-overlay.fullscreen {
  background: rgba(0, 0, 0, 1) !important;
  backdrop-filter: none !important;
}

.modal-evento.fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.modal-evento.fullscreen .modal-evento-iframe {
  height: 100vh !important;
  margin-top: 0 !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
}

.modal-evento.fullscreen .modal-evento-close {
  display: none !important;
}

.modal-evento {
  background: #484450;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.22);
  max-width: 90%;
  width: 80vw;
  height: 80vh;
  min-width: 0;
  min-height: 0;
  padding: 2.5rem 1.2rem 1.2rem 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: scaleInModal 0.21s cubic-bezier(.42, 0, .58, 1.0);
}

@media (max-width: 1000px) {
  .modal-evento {
    max-width: 99vw;
    width: 96vw;
    height: 88vh;
    border-radius: 0.8rem;
    padding: 1.1rem 0.2rem 0.7rem 0.2rem;
  }
}

@media (max-width: 600px) {
  .modal-evento {
    max-width: 99vw;
    width: 99vw;
    height: 98vh;
    border-radius: 0.3rem;
    padding: 0.7rem 0.1rem 0.5rem 0.1rem;
    min-height: 90vh;
  }
}

.evento-toast-sucesso {
  display: none;
  position: fixed;
  top: 2.3rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
  color: #124d2d;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 1.1rem 2.2rem 1.1rem 2.1rem;
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  z-index: 10000;
  opacity: 0.98;
  animation: fadeInToast 0.25s;
  transition: opacity 0.23s;
}

.evento-toast-sucesso i {
  color: #1b7f3a;
  font-size: 1.5em;
  margin-right: 0.7em;
  vertical-align: middle;
}

@keyframes fadeInToast {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }

  to {
    opacity: 0.98;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes scaleInModal {
  from {
    transform: scale(0.85);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-evento-close {
  position: absolute;
  top: 0.7rem;
  right: 1.2rem;
  font-size: 2.2rem;
  background: transparent;
  border: none;
  color: #232526;
  cursor: pointer;
  z-index: 1;
  padding: 0 0.7rem;
  line-height: 1;
  transition: color 0.15s;
}

.modal-evento-close:hover,
.modal-evento-close:focus {
  color: #4dd0e1;
}

.modal-evento-iframe {
  width: 100%;
  flex: 1;
  min-height: 370px;
  border: none;
  border-radius: 0.9rem;
  margin-top: 0.4rem;
  background: #fafbfc;
  box-shadow: 0 2px 8px #2221;
}

@media (max-width: 600px) {
  .modal-evento {
    max-width: 99vw;
    width: 99vw;
    border-radius: 0.3rem;
    padding: 1.1rem 0.2rem 0.7rem 0.2rem;
    min-height: 90vh;
    height: auto;
  }

  .modal-evento-iframe {
    min-height: 60vh;
    border-radius: 0.3rem;
  }
}

@media (max-width: 576px) {
  .admin-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  .user-info {
    width: 100%;
    justify-content: center;
  }
}

.evento-tabs-container {
  width: 95%;
  margin: 0 auto;
  padding: 0;
}

.evento-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.evento-tab-btn {
  background: #f5f7fa;
  border: none;
  border-radius: 1.2rem 1.2rem 0 0;
  padding: 0.85rem 2.2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.19s, color 0.19s;
  outline: none;
  box-shadow: 0 2px 8px #2221;
}

.evento-tab-btn.ativo,
.evento-tab-btn:focus {
  background: linear-gradient(90deg, #4dd0e1 0%, #232526 100%);
  color: #fff;
}

.evento-tab-content {
  width: 100%;
  min-height: 220px;
  margin: 0 auto;
}

.excluir-barra-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.excluir-barra {
  width: 100%;
  max-width: 350px;
  padding: 0.8rem 1.2rem;
  border-radius: 1.2rem;
  border: 1px solid #bbb;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px #2221;
  outline: none;
}

.lista-excluir {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.2rem auto;
  max-width: 420px;
}

.item-excluir {
  background: #f8f8fc;
  padding: 0.85rem 1.2rem;
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  font-size: 1.03rem;
  font-weight: 500;
  border: 1px solid #e0e0e0;
}

.item-excluir.selecionado,
.item-excluir:hover {
  background: linear-gradient(90deg, #4dd0e1 0%, #232526 100%);
  color: #fff;
  border: 1px solid #4dd0e1;
}

.btn-excluir-evento {
  display: block;
  margin: 1.2rem auto 0 auto;
  background: linear-gradient(90deg, #ff5858 0%, #f09819 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 0.8rem 2.3rem;
  border: none;
  border-radius: 2rem;
  box-shadow: 0 2px 8px #2221;
  cursor: pointer;
  transition: background 0.19s, transform 0.13s;
}

.btn-excluir-evento:disabled {
  background: #ddd;
  color: #aaa;
  cursor: not-allowed;
}

.btn-excluir-evento:hover:not(:disabled),
.btn-excluir-evento:focus:not(:disabled) {
  background: linear-gradient(90deg, #f09819 0%, #ff5858 100%);
  transform: translateY(-2px) scale(1.03);
}

.excluir-success-msg {
  color: #388e3c;
  font-weight: 600;
  background: #e6fbe6;
  border-radius: 1.2rem;
  padding: 0.8rem 1.2rem;
  margin: 1.2rem auto 0 auto;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 2px 8px #2221;
}

.excluir-error-msg {
  color: #d32f2f;
  font-weight: 600;
  background: #fdeaea;
  border-radius: 1.2rem;
  padding: 0.8rem 1.2rem;
  margin: 1.2rem auto 0 auto;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 2px 8px #2221;
}