/* Modern Header Styles */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #2c7744 0%, #4CAF50 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  transition: all 0.3s ease;
}

.navbar-brand i {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.navbar-brand .brand-text {
  background: linear-gradient(135deg, #ffffff 0%, #e0f2e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.5px;
}

.navbar-nav {
  margin-left: auto;
}

.nav-item {
  position: relative;
  margin: 0 0.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.nav-link:hover {
  color: white !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.nav-link:hover i {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 119, 68, 0.95);
    margin: 1rem -1rem -1rem;
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
  }

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

  .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.navbar-dark .nav-link:hover {
  color: #e0f2e1 !important;
}

#hero {
  background: linear-gradient(135deg, #2c7744 0%, #4CAF50 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 2rem;
  padding: 3rem 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.card {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: none;
  border-radius: 10px;
  transition: transform 0.2s;
  margin-bottom: 1rem;
}


.btn {
  border-radius: 5px;
  padding: 0.5rem 1rem;
}

.form-control, .form-select {
  border-radius: 5px;
}

.modal-content {
  border-radius: 10px;
}

.table-responsive {
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }
}

.table-sm {
  font-size: 0.875rem;
}

.table tfoot {
  font-weight: bold;
}

.card-title {
  color: #0d6efd;
  margin-bottom: 1.5rem;
}

input[type="month"] {
  max-width: 200px;
}

#custos .card {
  height: 100%;
}

@media (max-width: 768px) {
  #custos .table {
    font-size: 0.75rem;
  }
}

/* Adicionar estilos para o controle de estoque */
.status-baixo {
  color: #dc3545;
  font-weight: bold;
}

.status-medio {
  color: #ffc107;
  font-weight: bold;
}

.status-normal {
  color: #198754;
  font-weight: bold;
}

#estoque .card {
  height: 100%;
  margin-bottom: 1rem;
}

#historicoMovimentos tr:first-child {
  background-color: #f8f9fa;
}

#corpoEstoque .text-danger {
  font-weight: bold;
}

#corpoEstoque .text-warning {
  font-weight: bold;
}

#corpoEstoque .text-success {
  font-weight: bold;
}

/* Modern Footer Styles */
.modern-footer {
  background: linear-gradient(135deg, #2c7744 0%, #4CAF50 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  position: relative;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section {
  padding: 1rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.footer-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: white;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-subtitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.company-description {
  line-height: 1.6;
  opacity: 0.9;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.developer-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.developer-info h5 {
  font-size: 1.2rem;
  margin: 0;
  color: white;
}

.company-name {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0.5rem 0;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.contact-item:hover {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
  color: white;
}

.social-link i {
  font-size: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.9;
}

.company-signature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.company-signature i {
  color: #4CAF50;
  background: white;
  border-radius: 50%;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    padding: 0.5rem;
  }
}

/* Update floating WhatsApp button to match new design */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Add these new styles */
html {
  scroll-behavior: smooth;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body .form-group {
  margin-bottom: 0.75rem;
}

.modal-body .form-label {
  margin-bottom: 0.25rem;
}

.modal-body .form-control,
.modal-body .form-select {
  padding: 0.375rem 0.5rem;
  font-size: 0.9rem;
}

/* Make the modal inputs more compact */
#modalNovoProduto .mb-3 {
  margin-bottom: 0.75rem !important;
}

#modalNovoProduto .form-control,
#modalNovoProduto .form-select {
  line-height: 1.2;
}

/* Updated button styles */
.btn-success {
  background: linear-gradient(135deg, #2c7744 0%, #4CAF50 100%);
  border: none;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: linear-gradient(135deg, #236035 0%, #3d8b40 100%);
  transform: translateY(-1px);
}

.btn-success:active {
  transform: translateY(1px);
}

/* Form validation styles */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
  display: block;
}

.validation-error-tooltip {
  position: absolute;
  background: #dc3545;
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 1000;
  max-width: 200px;
}

.validation-error-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 10px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #dc3545;
}



#btn-danger-fixo:hover {
    background-color: #c82333 !important; /* Cor de fundo vermelho escuro ao passar o mouse */
    border-color: #bd2130 !important; /* Borda ao passar o mouse */
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}