* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body.bg-gray {
  background-color: #f1f3f6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Card de Login */
.login-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.login-card h2 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.subtitle {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 30px;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.form-group input, .input-edit {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
}

.form-group input:focus, .input-edit:focus {
  border-color: #2563eb;
}

.btn-primary {
  width: 100%;
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

/* Dashboard / Cards CSS */
.dashboard-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.message-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}

.card-header-tags {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.badge-agente {
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-status {
  background-color: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.info-row {
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
}

.fields-inline {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.field-box {
  flex: 1;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
}

.field-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-weight: 600;
  font-size: 13px;
  color: #0f172a;
}

.message-area {
  margin-bottom: 15px;
}

.message-area label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.message-area textarea {
  width: 100%;
  height: 120px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  color: #1e293b;
  resize: vertical;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-group-left {
  display: flex;
  gap: 8px;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #2563eb;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-danger {
  background-color: #fef2f2;
  color: #dc2626;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-success {
  background-color: #16a34a;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}