/* Reset y base - Estilo KICK */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0A0A0A;
  color: #FFFFFF;
}

/* Layout del panel */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header estilo KICK */
.header {
  background: #000000;
  color: #FFFFFF;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222222;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00FF87, #00CC6A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-user span {
  background: #141414;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #FFFFFF;
}

/* Main con sidebar y contenido */
.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar (menú lateral) estilo KICK */
.sidebar {
  width: 260px;
  background: #0A0A0A;
  border-right: 1px solid #222222;
  overflow-y: auto;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #E0E0E0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar nav ul li a:hover {
  background: #141414;
  color: #00FF87;
  border-left-color: #00FF87;
  padding-left: 20px;
}

.sidebar nav ul li a.active {
  background: #141414;
  color: #00FF87;
  border-left-color: #00FF87;
}

/* Contenido dinámico */
.content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #0A0A0A;
}

/* Footer */
.footer {
  background: #000000;
  color: #666666;
  text-align: center;
  padding: 12px;
  font-size: 0.75rem;
  border-top: 1px solid #222222;
}

/* Tarjetas y componentes estilo KICK */
.card {
  background: #141414;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid #222222;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: #00FF87;
}

.card h2 {
  margin-bottom: 16px;
  color: #FFFFFF;
  font-size: 1.3rem;
  border-left: 3px solid #00FF87;
  padding-left: 12px;
  display: block;
  border-bottom: none;
}

.card h3 {
  margin: 15px 0 10px 0;
  color: #E0E0E0;
}

/* Botones estilo KICK */
.btn {
  background: #00FF87;
  color: #000000;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #00CC6A;
  transform: scale(1.02);
}

.btn-secondary {
  background: #2A2A2A;
  color: #FFFFFF;
  border: 1px solid #444444;
}

.btn-secondary:hover {
  background: #3A3A3A;
  transform: scale(1.02);
}

.btn-danger {
  background: #FF4444;
  color: #FFFFFF;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn-danger:hover {
  background: #CC0000;
}

/* Formularios estilo KICK */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #E0E0E0;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  background: #141414;
  border: 1px solid #222222;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #00FF87;
}

/* Tablas estilo KICK */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #222222;
}

.table th {
  background: #141414;
  font-weight: 600;
  color: #00FF87;
}

.table td {
  color: #E0E0E0;
}

.table tr:hover {
  background: #141414;
}

/* Alertas estilo KICK */
.alert {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert-success {
  background: #1A3A2A;
  color: #00FF87;
  border: 1px solid #00FF87;
}

.alert-error {
  background: #3A1A1A;
  color: #FF4444;
  border: 1px solid #FF4444;
}

/* Loading */
.loading {
  text-align: center;
  padding: 50px;
  color: #888888;
}

/* Login y registro estilo KICK */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A0A0A;
}

.auth-card {
  background: #141414;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #222222;
  width: 100%;
  max-width: 400px;
}

.auth-card h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #FFFFFF;
  border-left: none;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
}

.auth-link a {
  color: #00FF87;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Chat en vivo estilo KICK */
.chat-sidebar {
  width: 320px;
  background: #0A0A0A;
  border-left: 1px solid #222222;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  background: #000000;
  color: #00FF87;
  padding: 14px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #222222;
  font-size: 1rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #0A0A0A;
}

.chat-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #141414;
  border-radius: 10px;
  border: 1px solid #222222;
}

.chat-message strong {
  color: #00FF87;
  font-size: 0.85rem;
}

.chat-message span {
  color: #666666;
  font-size: 0.7rem;
  margin-left: 8px;
}

.chat-message p {
  margin: 6px 0 0 0;
  font-size: 0.9rem;
  color: #E0E0E0;
}

.chat-message.mi-mensaje {
  background: #1A2A1A;
  border-left: 3px solid #00FF87;
}

.chat-input {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid #222222;
  background: #000000;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  background: #141414;
  border: 1px solid #222222;
  border-radius: 8px;
  color: #FFFFFF;
  outline: none;
}

.chat-input input:focus {
  border-color: #00FF87;
}

.chat-input button {
  background: #00FF87;
  color: #000000;
  font-weight: bold;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.chat-input button:hover {
  background: #00CC6A;
}

.chat-login {
  padding: 20px;
  text-align: center;
  color: #888888;
  background: #0A0A0A;
}

.chat-loading {
  text-align: center;
  color: #666666;
  padding: 20px;
}