* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.5s ease, background-image 0.5s ease, color 0.3s ease;
}

.page-login {
  background: #0a0e1a;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 60%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.page-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.page-dashboard[data-theme="light"] {
  background: #bdc4da;
  background-image: 
    radial-gradient(ellipse at 10% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(34, 211, 238, 0.12) 0%, transparent 40%);
  color: #e5e7eb; 
  min-height: 100vh;
  transition: background 0.5s ease, background-image 0.5s ease, color 0.3s ease;
}

.page-dashboard[data-theme="dark"] {
  background: #0a0e1a;
  background-image: 
    radial-gradient(ellipse at 10% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(ellipse at 90% 90%, rgba(34, 211, 238, 0.12) 0%, transparent 40%);
  color: #e5e7eb;
  min-height: 100vh;
  transition: background 0.5s ease, background-image 0.5s ease, color 0.3s ease;
}

/* Tema claro */
body[data-theme="light"] .page-dashboard {
  background: #f1f5f9;
  background-image: 
    radial-gradient(ellipse at 10% 10%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(241, 245, 249, 0.8) 100%);
  color: #1e293b;
}

body[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease, border-color 0.3s ease;
}

body[data-theme="light"] .navbar h2,
body[data-theme="light"] .logo {
  color: #1e293b;
  transition: color 0.3s ease;
}

body[data-theme="light"] .content {
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s ease, border-color 0.3s ease;
}

body[data-theme="light"] .content h2,
body[data-theme="light"] .category-title {
  color: #1e293b;
  -webkit-text-fill-color: #1e293b;
  transition: color 0.3s ease;
}

body[data-theme="light"] .subtitle {
  color: #64748b;
  transition: color 0.3s ease;
}

body[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1e293b;
  transition: background 0.4s ease, border-color 0.3s ease, color 0.3s ease;
}

body[data-theme="light"] .service-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(99, 102, 241, 0.3);
}

body[data-theme="light"] .service-name {
  color: #1e293b;
  transition: color 0.3s ease;
}

body[data-theme="light"] .service-url {
  color: #64748b;
  transition: color 0.3s ease;
}

body[data-theme="light"] .service-logo-wrap {
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease, border-color 0.3s ease;
}

body[data-theme="light"] .admin-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.4s ease, border-color 0.3s ease;
}

body[data-theme="light"] .admin-card:hover {
  background: rgba(255, 255, 255, 0.98);
}

body[data-theme="light"] .admin-title {
  color: #1e293b;
  transition: color 0.3s ease;
}

body[data-theme="light"] .category-count {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
  transition: background 0.4s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.dashboard-container {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

.dashboard-box {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  width: 100%;
  min-height: calc(100vh - 58px);
}

.dashboard-box::before {
  display: none;
}

.dashboard-box h1 {
  padding: 32px 40px 0;
  margin-bottom: 24px;
}

.login-box, .dashboard-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
}

.login-box::before, .dashboard-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(34, 211, 238, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.login-box:hover::before, .dashboard-box:hover::before {
  opacity: 1;
}

.login-box h1, .dashboard-box h1 {
  text-align: center;
  color: #f8fafc;
  margin-bottom: 8px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff;
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 20px;
  box-shadow: 
    0 12px 24px rgba(99, 102, 241, 0.3),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 16px;
}

.muted {
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  display: block;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  color: #f8fafc;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #64748b;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 
    0 0 0 4px rgba(99, 102, 241, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 24px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  width: auto;
  padding: 10px 20px;
  box-shadow: 
    0 4px 12px rgba(239, 68, 68, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn.danger:hover {
  box-shadow: 
    0 8px 20px rgba(239, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  display: none;
  backdrop-filter: blur(12px);
}

.message:not(:empty) {
  display: block;
}

.message.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.message.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.message.loading {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  color: #64748b;
  font-size: 13px;
}

.login-footer .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}

.navbar {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-container {
  max-width: 100%;
  margin: 0;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h2 {
  color: #f8fafc;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.05);
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-check label {
  color: #cbd5e1;
  font-weight: 400;
  font-size: 14px;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  margin: 0;
}

.user-info {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.user-info p {
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.user-info p strong {
  color: #22d3ee;
  font-weight: 600;
}

.content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 48px 40px;
  border-radius: 0;
  color: #cbd5e1;
  margin: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.services-section {
  text-align: center;
  padding: 48px 40px;
}

.services-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 32px;
}

.service-category {
  text-align: left;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-title {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-count {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.content h2 {
  color: #f8fafc;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 0;
}

.service-card {
  display: block;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #f8fafc;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(34, 211, 238, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.service-card-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.service-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.service-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover .service-logo-wrap {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.service-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-name {
  font-weight: 700;
  font-size: 16px;
  color: #f8fafc;
  letter-spacing: -0.01em;
}

.service-url {
  font-size: 12px;
  color: #64748b;
  word-break: break-all;
  font-family: 'Consolas', 'Monaco', monospace;
}

.admin-panel {
  text-align: left;
  padding: 40px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.admin-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.admin-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.admin-card:hover::before {
  opacity: 1;
}

.admin-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 
    0 12px 28px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(99, 102, 241, 0.2);
}

.admin-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.admin-title {
  font-weight: 700;
  color: #f8fafc;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.admin-desc {
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .login-box {
    padding: 32px 24px;
  }

  .login-box h1 {
    font-size: 26px;
  }

  .dashboard-box h1 {
    font-size: 26px;
    padding: 24px 20px 0;
  }

  .navbar-container {
    padding: 0 20px;
  }

  .services-section,
  .admin-panel {
    padding: 32px 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 32px 20px;
  }

  .category-header {
    flex-wrap: wrap;
  }

  .service-card {
    padding: 20px;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
  padding: 0;
  width: 32px;
  height: 32px;
}

.modal-close:hover {
  color: #f8fafc;
}

.modal-body {
  padding: 28px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form label {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 13px;
}

.admin-form input {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 14px;
}

.admin-form input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-small.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-small.danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

.audit-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.log-entry {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border-left: 3px solid #22d3ee;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-time {
  color: #64748b;
  font-size: 12px;
}

.log-action {
  color: #cbd5e1;
  font-size: 14px;
}

/* Nuevos estilos para gestión de usuarios */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-name {
  font-size: 15px;
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.btn-small.primary {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-small.primary:hover {
  background: rgba(99, 102, 241, 0.3);
}

.loading {
  color: #94a3b8;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.error {
  color: #fca5a5;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* Logs mejorados */
.audit-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.audit-count {
  color: #a5b4fc;
  font-size: 14px;
  font-weight: 600;
}

.log-entry {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  transition: all 0.3s;
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.log-time {
  color: #64748b;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

.log-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.log-badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.log-badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.log-badge-warning {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.log-badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.log-badge-default {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.log-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.log-user {
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 500;
}

.log-text {
  color: #cbd5e1;
  font-size: 14px;
}

.log-meta {
  display: flex;
  gap: 12px;
  color: #64748b;
  font-size: 11px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.log-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
