* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f4f6f7;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  padding: 15px;
}

.login-box {
  background: white;
  border-radius: 10px;
  padding: 40px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 30px;
}

input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #333;
  border: none;
  border-bottom: 1px solid #ddd;
  outline: none;
  background: transparent;
}

label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 10px 0;
  font-size: 16px;
  color: #666;
  pointer-events: none;
  transition: .5s;
}

input:focus ~ label,
input:valid ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group input:-webkit-autofill ~ label {
  top: -20px;
  left: 0;
  color: #667eea;
  font-size: 12px;
}

input:focus {
  border-bottom: 2px solid #667eea;
}

.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

.password-toggle:hover {
  color: #667eea;
}

.remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.checkbox-label {
  position: static;
  pointer-events: auto;
  font-size: 14px;
  color: #666;
}

button {
  width: 100%;
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #764ba2;
}

#message {
  margin-top: 20px;
  text-align: center;
  color: #666;
}

.error {
  color: #ff3333;
}

.success {
  color: #4CAF50;
}

.register-link {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.register-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Estilo para notificações */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.notification {
  background: white;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  min-width: 300px;
  transform: translateX(120%);
  transition: transform 0.4s ease-in-out;
}

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

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.error {
  border-left: 4px solid #ff3333;
}

.notification.info {
  border-left: 4px solid #2196F3;
}

.notification-icon {
  margin-right: 12px;
  font-size: 20px;
}

.notification-content {
  flex-grow: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.notification-message {
  color: #666;
  font-size: 14px;
}

.notification-close {
  color: #999;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
}

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

/* Estilos para o cabeçalho e página de pedidos */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #667eea;
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  backdrop-filter: blur(5px);
}

.header-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 10px;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  backdrop-filter: blur(5px);
}

.header-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  color: white;
}

.header-button:active {
  transform: scale(0.95);
}

.header-title {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex-grow: 1;
}

.material-icons {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.header-button:hover .material-icons {
  transform: translateX(-2px);
}

.order-container {
  margin-top: 80px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.order-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
  position: static;
  font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none; 
  background-color: #fff;
}

.form-group input[type="file"] {
  padding: 10px; 
  border: 1px solid #ddd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #cbd5e0;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  -webkit-text-fill-color: #333;
  transition: background-color 5000s ease-in-out 0s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

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

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 200px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5a6fd6;
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

/* Estilos para a tabela responsiva */
.table-responsive {
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.ticket-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
}

.ticket-table th,
.ticket-table td {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  vertical-align: middle; 
}

.ticket-table th {
  background-color: #667eea;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

.ticket-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.ticket-table tr:hover {
  background-color: #f1f1f1;
}

.table-image {
  max-width: 60px; 
  max-height: 60px; 
  height: auto; 
  border-radius: 4px; 
  object-fit: cover; 
  cursor: pointer; 
}

.edit-button {
  color: #667eea;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.edit-button:hover {
  color: #5a6fd6;
  transform: scale(1.1);
}

.edit-button .material-icons {
  font-size: 1.5em;
}

/* Estilos para imagem no formulário de edição */
.current-image {
  max-width: 200px;
  max-height: 200px;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.image-preview {
  max-width: 200px;
  max-height: 200px;
  height: auto;
  display: none; 
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.image-preview-container {
  margin-top: 10px;
}

.remove-image-btn {
  padding: 8px 15px;
  font-size: 14px;
  background-color: #ffc107; 
  color: #212529;
  border: none;
}
.remove-image-btn:hover {
  background-color: #e0a800;
}

@media (max-width: 600px) {
  .ticket-table,
  .ticket-table thead,
  .ticket-table tbody,
  .ticket-table th,
  .ticket-table td,
  .ticket-table tr {
    display: block;
  }

  .ticket-table thead tr {
    display: none;
  }

  .ticket-table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .ticket-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    text-align: right;
    border: none;
  }

  .ticket-table td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #333;
    margin-right: 10px;
    text-align: left;
    flex: 1;
  }

  .ticket-table td span {
    flex: 1;
    text-align: right;
  }
  
  .ticket-table td .table-image { 
    max-width: 50px;
    max-height: 50px;
    margin-left: auto; 
  }

  .ticket-table td[data-label="Ações"] {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .order-container {
    padding: 10px;
    width: 95%;
  }

  .order-form {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  * {
    padding: 2px;
  }

  .order-container {
    padding: 20px;
    width: 100%;
    margin-top: 70px;
  }
  
  .order-form {
    padding: 20px;
    border-radius: 8px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
    font-size: 14px;
  }

  .form-actions {
    margin-top: 30px;
  }

  .btn {
    padding: 12px 25px;
  }

  .dashboard-container {
    padding: 20px;
    width: 100%;
    margin-top: 70px;
  }
  
  .dashboard-btn {
    padding: 20px;
  }
  
  .dashboard-btn .material-icons {
    font-size: 36px;
    margin-bottom: 10px;
  }
}

/* Estilos para o Dashboard */
.dashboard-container {
  margin-top: 80px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

.dashboard-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.dashboard-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
}

.dashboard-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.dashboard-btn .material-icons {
  font-size: 48px;
  margin-bottom: 15px;
  color: #667eea;
}

.dashboard-btn:hover .material-icons {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 10px;
    width: 95%;
  }
  
  .dashboard-buttons {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 20px;
    width: 100%;
    margin-top: 70px;
  }
  
  .dashboard-btn {
    padding: 20px;
  }
  
  .dashboard-btn .material-icons {
    font-size: 36px;
    margin-bottom: 10px;
  }
}

/* Estilos para busca e paginação */
.search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.search-box {
  display: flex;
  background: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.search-box input {
  padding: 12px 15px;
  border: none;
  flex-grow: 1;
  outline: none;
  font-size: 14px;
  width: 100%;
}

.search-button {
  display: none;
}

.pagination-container {
  display: flex;
  gap: 5px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
  padding: 5px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.page-btn:hover {
  background: #f1f1f1;
}

.page-btn.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Estilos para ações na tabela */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.edit-button, .delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.edit-button:hover {
  color: #5a6fd6;
  background: rgba(90, 111, 214, 0.1);
  transform: scale(1.1);
}

.delete-button {
  color: #e53935;
}

.delete-button:hover {
  color: #c62828;
  background: rgba(198, 40, 40, 0.1);
  transform: scale(1.1);
}

/* Estilos para modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  animation: modalAnimation 0.3s ease;
}

@keyframes modalAnimation {
  from {opacity: 0; transform: scale(0.8);}
  to {opacity: 1; transform: scale(1);}
}

.modal-header {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.close-modal {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
  color: #555;
}

.modal-body {
  padding: 20px;
}

.modal-item {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
  border-left: 4px solid #667eea;
}

.modal-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-danger {
  background-color: #e53935;
  color: white;
}

.btn-danger:hover {
  background-color: #c62828;
}

/* Responsividade para o modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
  }
}