/* Estilos generales */
body {
  font-family: 'Arial', sans-serif;  
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.logo-container {
  flex: 0 0 220px;
}

.logo {
  max-width: 100%;
  height: auto;
}

.user-info {
  text-align: right;
}

.welcome-message {
  color: #345ed3;
  font-size: 18px;
  margin: 0;
}

.dashboard-title {
  margin-bottom: 30px;
  text-align: left;
}

.dashboard-title h1 {
  color: #333;
  font-size: 28px;
  font-weight: 500;
  margin: 0;
}

.dashboard-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dashboard-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.dashboard-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.nit { background-color: #e74c3c; }
.facturas { background-color: #3498db; }
.recoleccion { background-color: #2ecc71; }
.empaquetado { background-color: #9b59b6; }
.prerecoleccion { background-color: #f39c12; }

.item-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.item-title {
  font-size: 18px;
  font-weight: bold;
}

.logout-section {
  text-align: center;
  margin-top: 30px;
}

/* Botones generales */
.btn-logout, .a-logout, .btn-login, .a-login {
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
}

.btn-logout, .a-logout {
  background-color: #f8f9fa;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn-logout:hover, .a-logout:hover {
  background-color: #dc3545;
  color: white;
}

.btn-login, .a-login {
  background-color: #f8f9fa;
  color: #28a745;
  border: 2px solid #28a745;
}

.btn-login:hover, .a-login:hover {
  background-color: #28a745;
  color: white;
}

/* Login Form */
.login-form {
  width: 350px;
  margin: 50px auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 40px;
  text-align: center;
}

.login-form .logo {
  max-width: 220px;
  margin-bottom: 30px;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form .btn-login,
.login-form .btn-register {
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  border: 1px solid #ced4da;
  font-size: 16px;
  transition: border-color 0.3s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.login-form .btn-login {
  background-color: #58ce48;
  color: white;
  border: none;
}

.login-form .btn-login:hover {
  background-color: #58d149;
}

.login-form .btn-register {
  background-color: #345ed3;
  color: white;
  border: none;
}

.login-form .btn-register:hover {
  background-color: #3d64cf;
}

/* Register/Edit Form */
.register-form {
  width: 450px;
  margin: 50px auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 40px;
}

.register-form h1 {
  text-align: center;
  color: #345ed3;
  font-size: 28px;
  margin-bottom: 30px;
}

.register-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.register-form input[type="text"],
.register-form input[type="password"],
.register-form .select-css {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.register-form input:focus,
.register-form .select-css:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.select-css {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4"%3E%3Cpath fill="%23333" d="M287 69.4a17.6 17.6 0 0 0-13-5.4H18.4c-5 0-9.3 1.8-12.9 5.4A17.6 17.6 0 0 0 0 82.2c0 5 1.8 9.3 5.4 12.9l128 127.9c3.6 3.6 7.8 5.4 12.8 5.4s9.2-1.8 12.8-5.4L287 95c3.5-3.5 5.4-7.8 5.4-12.8 0-5-1.9-9.2-5.5-12.8z"/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 12px auto;
}

.btn-cancel, .btn-save {
  width: 48%;
  padding: 15px 0;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
  margin-right: 2%;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

.btn-save {
  background-color: #007bff;
  color: white;
}

.btn-save:hover {
  background-color: #1d8aff;
  border-color: #0068d8;
}

.btn-save:focus {
  box-shadow: 0 0 0 3px rgba(52, 94, 211, 0.25);
}

/* Tabla de usuarios */
.styled-table {
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 16px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.styled-table thead tr {
  background-color: #007bff;
  color: #ffffff;
  text-align: center;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
  text-align: center;
}

.styled-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.styled-table tbody tr:hover {
  background-color: #e8f0ff;
}

form button.btn-logout {
  padding: 8px 12px;
  font-size: 14px;
  margin-left: 5px;
  background-color: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
  border-radius: 5px;
  transition: all 0.3s ease;
}

form button.btn-logout:hover {
  background-color: #dc3545;
  color: white;
}

.styled-table td .btn-login {
  margin-right: 5px;
}

/* Arreglo visual específico para el formulario de crear usuario */
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"],
.register-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.register-form form {
  display: flex;
  flex-direction: column;
}

.register-form label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.register-form h1 {
  color: #345ed3;
  font-size: 26px;
  margin-bottom: 30px;
  text-align: center;
}

.register-form .form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.register-form .btn-cancel,
.register-form .btn-save {
  width: 48%;
  font-size: 16px;
  padding: 12px 0;
  box-sizing: border-box;
}

.register-form .btn-cancel {
  background-color: #6c757d;
  color: white;
  border: none;
}

.register-form .btn-cancel:hover {
  background-color: #5a6268;
}

/* Estilos para los distintivos de envío */
.envio-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.envio-local {
    background-color: #25D366;
    color: white;
}

.recoger-tienda {
    background-color: #FF9800;
    color: white;
}

.envio-forza {
    background-color: #4A90E2;
    color: white;
}

.envio-cargo {
    background-color: #9C27B0;
    color: white;
}

.card .orden-id {
    margin-left: 80px; 
}

.card {
    position: relative;
    padding-left: 15px; 
}

.card:hover {
    transform: translateY(-3px);
}

.card[data-envio="local"] {
    border-left: 4px solid #25D366;
}

.card[data-envio="tienda"] {
    border-left: 4px solid #FF9800;
}

/* Hacer el badge más llamativo */
.envio-badge {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 500;
}

.envio-badge i {
    font-size: 0.9em;
}
