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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #e2e8f0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== PANTALLA DE LOGIN ===== */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.login-container {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  box-shadow: 
      0 25px 50px -12px rgba(0, 0, 0, 0.8),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 20px;
}

.login-header {
  background: linear-gradient(135deg, #5865f2 0%, #7c3aed 100%);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.login-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
  position: relative;
  z-index: 1;
}

.login-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.login-form {
  padding: 40px 30px;
}

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

.login-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 1rem;
}

.login-form input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(51, 65, 85, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.login-form input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(51, 65, 85, 0.95);
  box-shadow: 
      0 0 0 4px rgba(139, 92, 246, 0.1),
      0 0 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.login-form input::placeholder {
  color: #94a3b8;
}

.login-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.login-icon {
  width: 20px;
  height: 20px;
}

.login-error {
  margin-top: 15px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.login-error.show {
  display: block;
}

/* ===== APLICACIÓN PRINCIPAL ===== */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  box-shadow: 
      0 25px 50px -12px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
}

.header {
  background: linear-gradient(135deg, #5865f2 0%, #7c3aed 100%);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: -20px -20px 40px -20px;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.logout-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 2;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.content {
  padding: 0 20px 20px;
}

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

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
}

/* ===== SELECTOR DE MODO ===== */
.mode-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  background: rgba(51, 65, 85, 0.6);
  padding: 8px;
  border-radius: 16px;
}

.mode-btn {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  color: #94a3b8;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.mode-btn:not(.active):hover {
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
}

/* ===== CAMPOS DE EDICIÓN ===== */
.edit-fields {
  display: none;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  position: relative;
}

.edit-fields::before {
  content: "✏️ MODO EDICIÓN - Selecciona webhooks e ingresa el ID del mensaje";
  position: absolute;
  top: -12px;
  left: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.edit-fields.show {
  display: grid;
}

.edit-fields input {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.edit-fields input:focus {
  border-color: #f59e0b;
  box-shadow: 
      0 0 0 4px rgba(245, 158, 11, 0.1),
      0 0 20px rgba(245, 158, 11, 0.2);
}

/* ===== DROPDOWN DE WEBHOOKS ===== */
.webhook-selector {
  position: relative;
}

.webhook-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-button {
  width: 100%;
  padding: 18px 24px;
  background: rgba(51, 65, 85, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  color: #f1f5f9;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.dropdown-button:hover, .dropdown-button.open {
  border-color: #8b5cf6;
  background: rgba(51, 65, 85, 0.95);
  box-shadow: 
      0 0 0 4px rgba(139, 92, 246, 0.1),
      0 0 20px rgba(139, 92, 246, 0.2);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.dropdown-button.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-content.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.webhook-option {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.webhook-option:last-child {
  border-bottom: none;
}

.webhook-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.webhook-option:hover {
  background: rgba(139, 92, 246, 0.1);
}

.webhook-option:hover::before {
  left: 100%;
}

.webhook-option.selected {
  background: rgba(139, 92, 246, 0.15);
  border-left: 3px solid #8b5cf6;
}

.webhook-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 15px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.webhook-title {
  font-weight: 500;
  color: #f1f5f9;
  font-size: 1rem;
  flex-grow: 1;
}

.selected-count {
  margin-top: 15px;
  padding: 10px 15px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  font-size: 14px;
  color: #c4b5fd;
  text-align: center;
}

/* ===== INPUTS Y TEXTAREA ===== */
input, textarea {
  width: 100%;
  padding: 18px 24px;
  background: rgba(51, 65, 85, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  color: #f1f5f9;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(51, 65, 85, 0.95);
  box-shadow: 
      0 0 0 4px rgba(139, 92, 246, 0.1),
      0 0 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

/* ===== ARCHIVOS ===== */
.file-input-wrapper {
  position: relative;
  cursor: pointer;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(51, 65, 85, 0.6);
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: center;
}

.file-input-display:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.file-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  opacity: 0.7;
}

.selected-files {
  margin-top: 15px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(71, 85, 105, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: rgba(71, 85, 105, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

.file-name {
  flex-grow: 1;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
}

.remove-file {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remove-file:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ===== BOTONES ===== */
.buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  padding: 18px 28px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.5);
}

/* ===== STATUS ===== */
.status {
  padding: 20px 25px;
  border-radius: 16px;
  margin-top: 25px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border: 1px solid;
}

.status.show {
  opacity: 1;
  transform: translateY(0);
}

.status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #e2e8f0;
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
  box-shadow: 
      0 25px 50px -12px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
}

.header {
  background: linear-gradient(135deg, #5865f2 0%, #7c3aed 100%);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.content {
  padding: 50px;
}

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

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #f1f5f9;
  font-size: 1.1rem;
  letter-spacing: 0.025em;
}

.webhook-selector {
  position: relative;
}

.webhook-dropdown {
  position: relative;
  width: 100%;
}

.dropdown-button {
  width: 100%;
  padding: 18px 24px;
  background: rgba(51, 65, 85, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  color: #f1f5f9;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.dropdown-button:hover, .dropdown-button.open {
  border-color: #8b5cf6;
  background: rgba(51, 65, 85, 0.95);
  box-shadow: 
      0 0 0 4px rgba(139, 92, 246, 0.1),
      0 0 20px rgba(139, 92, 246, 0.2);
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.dropdown-button.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  box-shadow: 
      0 10px 25px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 1000;
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}

.dropdown-content.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.webhook-option {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.webhook-option:last-child {
  border-bottom: none;
}

.webhook-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.webhook-option:hover {
  background: rgba(139, 92, 246, 0.1);
}

.webhook-option:hover::before {
  left: 100%;
}

.webhook-option.selected {
  background: rgba(139, 92, 246, 0.15);
  border-left: 3px solid #8b5cf6;
}

.webhook-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 15px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.webhook-title {
  font-weight: 500;
  color: #f1f5f9;
  font-size: 1rem;
  flex-grow: 1;
}

.selected-count {
  margin-top: 15px;
  padding: 10px 15px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  font-size: 14px;
  color: #c4b5fd;
  text-align: center;
}

input, textarea {
  width: 100%;
  padding: 18px 24px;
  background: rgba(51, 65, 85, 0.8);
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  color: #f1f5f9;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(51, 65, 85, 0.95);
  box-shadow: 
      0 0 0 4px rgba(139, 92, 246, 0.1),
      0 0 20px rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
  color: #94a3b8;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.file-input-wrapper {
  position: relative;
  cursor: pointer;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(51, 65, 85, 0.6);
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  transition: all 0.3s ease;
  text-align: center;
}

.file-input-display:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.file-icon {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  opacity: 0.7;
}

.selected-files {
  margin-top: 15px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(71, 85, 105, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: rgba(71, 85, 105, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
}

.file-name {
  flex-grow: 1;
  font-size: 14px;
  color: #e2e8f0;
  font-weight: 500;
}

.remove-file {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remove-file:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.buttons {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.btn {
  padding: 18px 28px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.btn-secondary {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(100, 116, 139, 0.5);
}

.btn-edit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-edit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.status {
  padding: 20px 25px;
  border-radius: 16px;
  margin-top: 25px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  border: 1px solid;
}

.status.show {
  opacity: 1;
  transform: translateY(0);
}

.status.success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.status.error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  margin-right: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.edit-mode {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 25px;
  position: relative;
}

.edit-mode::before {
  content: "🔄 MODO EDICIÓN ACTIVO";
  display: block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.webhook-count {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 10px;
  text-align: center;
}

.edit-fields {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.edit-fields.show {
  display: grid;
}

.edit-fields input {
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.3);
}

.edit-fields input:focus {
  border-color: #f59e0b;
  box-shadow: 
      0 0 0 4px rgba(245, 158, 11, 0.1),
      0 0 20px rgba(245, 158, 11, 0.2);
}

/* Scrollbar personalizado para dropdown */
.dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: rgba(51, 65, 85, 0.5);
  border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

@media (max-width: 768px) {
  .container {
      margin: 10px;
      border-radius: 20px;
  }
  
  .content {
      padding: 30px 25px;
  }
  
  .buttons {
      grid-template-columns: 1fr;
      gap: 15px;
  }
  
  .header h1 {
      font-size: 2.2rem;
  }

  .edit-fields {
      grid-template-columns: 1fr;
      gap: 15px;
  }
}
