/* Painel Admin Horizontal */
.admin-sidebar .nav {
  flex-direction: row !important;
  justify-content: center;
}
/* Paleta de Cores */
:root {
  --primary-color: #003580; /* Azul principal */
  --secondary-color: #4a47cc; /* Azul secundário */
  --accent-color: #ff6b6b; /* Vermelho coral para destaques */
  --light-color: #f8f9fa;
  --dark-color: #2c3e50;
  --success-color: #27ae60; /* Verde para sucesso */
  --warning-color: #f39c12; /* Laranja para alertas */
}

/* Estilos Gerais */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: white;
  margin: 0;
  padding: 0;
}

main.container, main.container-fluid {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

/* Cabeçalho */

header {
  background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 2px 12px rgba(9,8,206,0.15);
}

header img[alt*="Logo"] {
  background: white;
  padding: 4px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

header .navbar-brand {
  font-weight: bold;
}

header .nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

header .nav-link:hover,
header .nav-link.active {
  color: white;
}

/* Botões */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0706b0;
  border-color: #06059d;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: #3a38b8;
  border-color: #3432a6;
}

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

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

/* Carrossel */
.carousel-item {
  height: 360px;
  background-color: #eee;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  border-radius: 5px;
}

/* Seções */
section {
  padding: 40px 0;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin-bottom: 32px;
}

section h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-title {
  font-weight: 600;
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(90deg, #e8eaff 0%, #ffffff 100%);
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(9,8,206,0.1);
  padding: 60px 30px;
  margin-bottom: 40px;
}
.hero-section h2 {
  color: var(--primary-color);
}
.hero-section img {
  box-shadow: 0 2px 12px rgba(9,8,206,0.15);
}

/* Rodapé */
footer {
  background: linear-gradient(90deg, var(--dark-color) 60%, var(--primary-color) 100%);
  color: white;
  padding: 28px 0 12px 0;
  text-align: center;
  box-shadow: 0 -2px 12px rgba(9,8,206,0.15);
}

/* Responsividade */
@media (max-width: 768px) {
  .carousel-item {
    height: 180px;
  }
  .hero-section {
    padding: 30px 10px;
  }
  header img[alt*="Logo"] {
    height: 40px !important;
  }
}

/* Cards de Serviços */
.card {
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(9,8,206,0.08);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Cards de Produtos no Painel Admin */
#produtos-lista .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  }

  #produtos-lista {
  max-height: 70vh;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding-bottom: 1rem;
}

#produtos-lista .col {
  display: inline-flex;
  align-items: stretch;
  width: 20%;
  min-width: 220px;
  box-sizing: border-box;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 1200px) {
  #produtos-lista {
    gap: 1rem;
  }
  #produtos-lista .col {
    min-width: 180px;
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 992px) {
  #produtos-lista {
    gap: 0.5rem;
  }
  #produtos-lista .col {
    min-width: 140px;
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

@media (max-width: 768px) {
  #produtos-lista {
    gap: 0.25rem;
  }
  #produtos-lista .col {
    min-width: 120px;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(9,8,206,0.15);
}

.card-title {
  font-weight: 600;
  color: var(--primary-color);
}
.card-text {
  color: #555;
}

/* Botões de ação */
.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-danger {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Submenu Dropdown Styles */
.navbar-nav .dropdown-menu {
  background: #003580 !important; /* Fundo escuro sólido */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-top: 8px;
  display: none; /* Inicialmente escondido */
  position: absolute;
}

.navbar-nav .dropdown-item {
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-nav .dropdown-item:last-child {
  border-bottom: none;
}

.navbar-nav .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffd43b;
  text-decoration: none;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 5px;
  vertical-align: middle;
}

/* Hover effect for dropdown */
.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block;
}

/* Mobile responsiveness for dropdown */
@media (max-width: 991px) {
  .navbar-nav .dropdown-menu {
    background: transparent !important;
    box-shadow: none;
    margin-top: 0;
    border-radius: 0;
    position: static;
    display: block !important;
  }
  
  .navbar-nav .dropdown-item {
    padding: 8px 15px 8px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}
