/* HEADER / FOOTER (mantidos) */
.header {
  background-color: #1a1a1a;
  padding: 15px 0;
}
.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.logo-img {
  height: 120px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  object-fit: contain;
}
.logo-img:hover {
  transform: scale(1.05);
}
.nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  position: relative;
}
.nav-link:hover {
  color: #d32f2f;
}
.nav-link.active {
  color: #d32f2f;
  font-weight: bold;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #d32f2f;
}
.signup-btn {
  background-color: transparent;
  border: 2px solid #666;
  color: #ffffff;
  padding: 10px 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.signup-btn:hover {
  border-color: #d32f2f;
  color: #d32f2f;
  background-color: rgba(211, 47, 47, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}
.signup-btn.user-logged-in {
  border-color: #d32f2f;
  color: #d32f2f;
  cursor: pointer;
  text-transform: none;
}
.signup-btn.user-logged-in:hover {
  border-color: #d32f2f;
  color: #ffffff;
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}
/* Menu Dropdown do Usuário */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.user-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  color: #2b2d31;
  transition: background-color 0.15s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-dropdown-item.logout-item {
  color: #d32f2f;
}
.user-dropdown-item.logout-item:hover {
  background-color: #fff5f5;
  color: #b71c1c;
}

/* FOOTER */
.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 25px 20px 20px;
  margin-top: auto;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}
.footer-logo-img {
  height: 160px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
  object-fit: contain;
}
.footer-logo-img:hover {
  transform: scale(1.05);
}
.footer-logo-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}
.footer-description {
  max-width: 700px;
  margin: 0 auto 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #cccccc;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 10px;
  border-top: 1px solid #333;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icon {
  font-size: 22px;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}
.social-icon:hover {
  color: #d32f2f;
}

/* KANBAN */
body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f7f8fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.kanban-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  padding: 40px 20px 60px;
  flex: 1;
}

.kanban-column {
  flex: 1;
  background: #ffffff;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  min-height: 60vh;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border-top: 4px solid;
}

.kanban-column.waiting {
  border-top-color: #ffa726;
  background: linear-gradient(to bottom, rgba(255, 167, 38, 0.05) 0%, #ffffff 10%);
}
.kanban-column.progress {
  border-top-color: #42a5f5;
  background: linear-gradient(to bottom, rgba(66, 165, 245, 0.05) 0%, #ffffff 10%);
}
.kanban-column.ready {
  border-top-color: #ab47bc;
  background: linear-gradient(to bottom, rgba(171, 71, 188, 0.05) 0%, #ffffff 10%);
}
.kanban-column.done {
  border-top-color: #66bb6a;
  background: linear-gradient(to bottom, rgba(102, 187, 106, 0.05) 0%, #ffffff 10%);
}

.kanban-column:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.kanban-column h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.kanban-column.waiting h2 { 
  color: #ffa726; 
}
.kanban-column.progress h2 { 
  color: #42a5f5; 
}
.kanban-column.ready h2 { 
  color: #ab47bc; 
}
.kanban-column.done h2 { 
  color: #66bb6a; 
}

.kanban-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.kanban-item {
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  cursor: grab;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 0.95rem;
  line-height: 1.6;
}

.kanban-item:hover {
  transform: translateY(-2px);
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d62828;
}

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

.kanban-item strong {
  color: #1b1b1b;
  font-weight: 600;
}

.card-btn {
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.card-btn-primary {
  background-color: #42a5f5;
  color: white;
}

.card-btn-primary:hover {
  background-color: #1e88e5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
}

.card-btn-success {
  background-color: #66bb6a;
  color: white;
}

.card-btn-success:hover {
  background-color: #4caf50;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.card-btn-warning {
  background-color: #ab47bc;
  color: white;
}

.card-btn-warning:hover {
  background-color: #8e24aa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(171, 71, 188, 0.3);
}

/* DETALHES DA ORDEM */
.order-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.order-detail-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.order-detail-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  padding: 24px 24px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.2s ease;
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-detail-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.order-detail-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.order-detail-body p {
  margin: 4px 0;
}

.order-detail-body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.order-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.order-detail-delete {
  background: #d32f2f;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.order-detail-delete:hover {
  background: #b71c1c;
}

.order-detail-cancel {
  background: #e0e0e0;
  color: #333;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.order-detail-cancel:hover {
  background: #d0d0d0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FINALIZAÇÃO DE SERVIÇO */
.finalizacao-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.2s ease;
  overflow-y: auto;
}

.finalizacao-body {
  margin: 20px 0;
}

.finalizacao-info {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.finalizacao-info h4 {
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.finalizacao-info p {
  margin: 6px 0;
  font-size: 0.95rem;
}

.finalizacao-pecas h4 {
  margin: 0 0 16px 0;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.pecas-lista {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
  margin-bottom: 16px;
}

.peca-item {
  background: #ffffff;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.peca-item:last-child {
  margin-bottom: 0;
}

.peca-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.peca-info strong {
  color: #1a1a1a;
  font-size: 1rem;
}

.peca-codigo, .peca-estoque {
  font-size: 0.85rem;
  color: #6c757d;
}

.peca-estoque.estoque-baixo {
  color: #dc3545;
  font-weight: 700;
}

.peca-quantidade {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 100px;
  max-width: 120px;
  flex-shrink: 0;
}

.peca-quantidade label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
}

.peca-qtd-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.peca-qtd-input:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.pecas-search {
  margin-bottom: 16px;
}

.pecas-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.pecas-search-input:focus {
  outline: none;
  border-color: #d32f2f;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.finalizacao-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.finalizacao-finalizar-btn {
  background: #66bb6a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.finalizacao-finalizar-btn:hover {
  background: #4caf50;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.finalizacao-cancelar-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.finalizacao-cancelar-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* SISTEMA DE NOTIFICAÇÕES */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s ease;
  pointer-events: auto;
  border-left: 4px solid #42a5f5;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-success {
  border-left-color: #66bb6a;
  background: #f1f8f4;
}

.notification-error {
  border-left-color: #dc3545;
  background: #fff5f5;
}

.notification-warning {
  border-left-color: #ffa726;
  background: #fff8f0;
}

.notification-info {
  border-left-color: #42a5f5;
  background: #f0f7ff;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 1.3rem;
  font-weight: bold;
  flex-shrink: 0;
}

.notification-success .notification-icon {
  color: #66bb6a;
}

.notification-error .notification-icon {
  color: #dc3545;
}

.notification-warning .notification-icon {
  color: #ffa726;
}

.notification-info .notification-icon {
  color: #42a5f5;
}

.notification-message {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: #333;
}

/* Notificação de Confirmação */
.notification-confirm {
  border-left-color: #ffa726;
  background: #fff8f0;
}

.notification-confirm .notification-content {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.notification-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: flex-end;
}

.notification-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-btn-confirm {
  background: #66bb6a;
  color: white;
}

.notification-btn-confirm:hover {
  background: #4caf50;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
}

.notification-btn-cancel {
  background: #e0e0e0;
  color: #333;
}

.notification-btn-cancel:hover {
  background: #d0d0d0;
  transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 1000px) {
  .kanban-container {
    flex-direction: column;
    gap: 20px;
  }
  .kanban-column {
    width: 100%;
    min-height: 50vh;
  }

  #notification-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .notification {
    min-width: auto;
    max-width: none;
  }
}

