* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #0f0f0f;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Login y Registro */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
}

.login-box h1 {
  color: #4a9eff;
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

.login-box h2 {
  color: #e0e0e0;
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #b0b0b0;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #4a9eff;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #4a9eff;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background-color: #3a8eef;
}

.btn-secondary {
  background-color: #3a3a3a;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background-color: #4a4a4a;
}

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

.register-link a {
  color: #4a9eff;
  text-decoration: none;
}

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

.alert {
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background-color: #ff4444;
  color: white;
}

.alert-success {
  background-color: #44ff44;
  color: #0f0f0f;
}

/* Dashboard */
.dashboard-container {
  min-height: 100vh;
}

.dashboard-header {
  background-color: #1a1a1a;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2a2a2a;
}

.dashboard-header h1 {
  color: #4a9eff;
  font-size: 24px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info span {
  color: #b0b0b0;
}

.dashboard-content {
  padding: 40px;
}

.filters-section {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.filters-section h2 {
  color: #e0e0e0;
  font-size: 18px;
  margin-bottom: 20px;
}

.filters-form {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  color: #b0b0b0;
  font-size: 14px;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 14px;
}

.table-section {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-header h2 {
  color: #e0e0e0;
  font-size: 18px;
}

.table-responsive {
  overflow-x: auto;
}

.logistics-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #0f0f0f;
}

.logistics-table thead {
  background-color: #2a2a2a;
}

.logistics-table th {
  padding: 15px;
  text-align: left;
  color: #e0e0e0;
  font-weight: 600;
  border: 1px solid #3a3a3a;
}

.logistics-table td {
  padding: 12px 15px;
  border: 1px solid #3a3a3a;
  color: #b0b0b0;
}

.logistics-table tbody tr:hover {
  background-color: #1a1a1a;
}

.logistics-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #4a9eff;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  margin: 0 5px;
  transition: transform 0.2s;
}

.btn-icon:hover {
  transform: scale(1.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close {
  color: #b0b0b0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 20px;
}

.close:hover {
  color: #e0e0e0;
}

.modal-content h2 {
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .filters-form {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .table-header {
    flex-direction: column;
    gap: 15px;
  }
}
