@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f2f2f2;
    color: #111;
}

.header {
    background-color: #0a0a0a;
    color: white;
    padding: 32px 48px; /* Aumentamos padding horizontal */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre logo y título */
}

.title h1 {
    font-size: 32px;
    margin: 0;
    font-weight: 700;
     display: flex;
    flex-direction: column;
    margin-left: 20px; /* más separación entre logo y texto */
}

.title .year {
    color: #26D07C;
}

.subtitle {
    color: #8ce1a8;
    font-size: 14px;
    margin-top: 4px;
}

.legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-right: 20px; /* separarlo del borde derecho */
}

.legend-item {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eee;
}

.legend-item span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-item.backtest span {
    background: #d1b3ff;
}
.legend-item.crypto span {
    background: #ffe0b2;
}
.legend-item.educational span {
    background: #c8e6c9;
}
.legend-item.futures span {
    background: #b2dfdb;
}



input, select, button {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

button {
    background-color: #111;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

button:hover {
    background-color: #333;
}

.calendar {
    display: flex;
    flex-direction: column;
    border: none;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: white;
    color: #bbb;
    font-weight: 600;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    text-transform: uppercase;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: white;
    min-height: 600px;
    border-top: 1px solid #eee;
}

.day-column {
    padding: 12px;
    border-right: 1px solid #f0f0f0;
    min-height: 100px;
}

.event {
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    background-color: #eee;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.event:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.event.non-clickable {
    cursor: default;
}

.event.non-clickable:hover {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.event-platform {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 1em;
}

.event-platform i.fa-discord {
    color: #5865F2;
}
.event-platform i.fa-youtube {
    color: #FF0000;
}
.event-platform i.fa-twitch {
    color: #9146FF;
}

/* COLORES por categoría */
.event.crypto {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}
.event.backtest {
    background-color: #f3e5f5;
    border-left: 4px solid #9c27b0;
}
.event.educational {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
}
.event.futures {
    background-color: #e0f2f1;
    border-left: 4px solid #009688;
}

.event small {
    color: #666;
    font-size: 0.75em;
}

/* MODAL DE EDICIÓN */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 80px auto;
    padding: 20px 24px;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
    position: relative;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 16px;
    color: #111;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-content input,
.modal-content select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #111;
}

.modal-content button {
    background-color: black;
    color: white;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.modal-content button:hover {
    background-color: #333;
}

.close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.edit-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
    align-self: flex-end;
    color: #444;
    transition: color 0.2s;
}

.edit-btn:hover {
    color: #000;
}

.delete-btn {
    background-color: #e11d48; /* rojo vibrante */
    color: white;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s ease;
}

.delete-btn:hover {
    background-color: #be123c; /* rojo más oscuro al pasar el ratón */
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast.success {
  background-color: #16a34a;
}

.toast.error {
  background-color: #dc2626;
}

.modal-content button {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.modal-content button:not(.delete-btn) {
    background-color: #f3f4f6;
    color: #111;
}

.modal-content button:not(.delete-btn):hover {
    background-color: #e5e7eb;
}

.week-navigation-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 32px 0 20px 0;
    flex-wrap: wrap;
}

.week-button {
    background-color: black;
    color: white;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.week-button:hover {
    background-color: #222;
}

.week-label {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: #f3f3f3;
    padding: 8px 14px;
    border-radius: 8px;
}

.week-navigation-centered {
    text-align: center;
    padding: 10px 0;
    font-weight: 500;
    background-color: #fff;
}

.week-button {
    background-color: black;
    color: white;
    padding: 10px 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.week-button:hover {
    background-color: #222;
}

.day {
  text-align: left;
  padding-left: 12px;
}

.day-name {
  font-size: 12px;
  font-weight: 700;
  color: black;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.day-number {
  font-size: 28px;
  font-weight: 500;
  color: black;
}

/* NAV SUPERIOR */
.nav-superior {
  background-color: #f5f5f5;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
}

.nav-contenido {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-auth a {
  text-decoration: none;
  color: #6b21a8;
  font-weight: 500;
  font-size: 14px;
}

.nav-auth a:hover {
  text-decoration: underline;
}

/* CONTENEDOR PRINCIPAL */
.contenido {
  max-width: 1920px;
  margin: 40px auto 0 auto;  /* 🔼 añade espacio arriba */
  padding: 0 20px;

}

.legend-with-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  margin-left: auto;
}

.lab-logo {
  height: 75px;
  margin-left: 20px;
}

.title-with-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lab-logo-title {
  height: 65px;
  margin-left: 0;
  margin-right: 16px;
  object-fit: contain;
}
h1.titlemy {
  margin-top: 0;
}

.login-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.google-login-btn {
  display: inline-block;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: background-color 0.2s;
}

.google-login-btn:hover {
  background-color: #f7f7f7;
}

.username {
  margin-right: 16px;
  font-weight: 500;
  color: #444;
}

.login-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  font-size: 14px;
}

.login-container button {
  padding: 10px 20px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.admin-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.admin-container h2 {
  text-align: center;
  margin-bottom: 30px;
}

.presenter-list li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-presenter {
  font-size: 1em;
  font-weight: 500;
  color: #444;
}

.add-event-container {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.add-event-btn {
  background-color: #D9D9D9;
  color: white;
  font-size: 20px;
  width: 100%;
  height: 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-btn {
  margin-left: 10px;
  background-color: transparent;
  color: #16a34a;
  border: 1px solid #16a34a;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.screenshot-btn:hover {
  background-color: #16a34a;
  color: white;
}

.platform-icon-img {
  width: 25x;
  height: 25px;
  vertical-align: middle;
  object-fit: contain;
}

.title-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.title-heading .month {
  font-size: 36px;
  font-weight: 700;
  color: white;
}

.title-heading .year {
  font-size: 36px;
  font-weight: 700;
  color: #8ce1a8;
}

.navbar {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-family: 'Inter', sans-serif;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-left .app-label {
  font-weight: 700;
  font-size: 18px;
  color: #111;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.navbar-left .admin-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid #e5e7eb;
}

.screenshot-btn {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #dcfce7;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.screenshot-btn:hover {
  background-color: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.screenshot-btn i {
  font-size: 14px;
}

.admin-link, .back-button {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: #f5f3ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-link:hover, .back-button:hover {
  background-color: #ede9fe;
  text-decoration: none;
}

.admin-link i, .back-button i {
  font-size: 14px;
}

.user-info {
  font-size: 14px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: #f8fafc;
  border-radius: 8px;
}

.user-info i {
  color: #7c3aed;
}

.logout-link {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: #f5f3ff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-link:hover {
  background-color: #ede9fe;
  text-decoration: none;
}

.logout-link i {
  font-size: 14px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 10px;
  margin-right: 24px;
}

.legend-item {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #eee;
}

.legend-item span {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.grid-admin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.admin-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-form input[type="text"],
.admin-form input[type="color"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.admin-form button {
  background-color: #000;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.color-preview {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin: 0 6px;
}

/* Contenedor general */
.admin-wrapper {
  max-width: none;
  margin: 2rem auto;
  padding: 0 2vw;
}

/* Título del panel */
.admin-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: left;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  padding-left: 0.5rem;
}

/* Distribución en dos columnas (responsive) */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Tarjetas individuales */
.admin-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.2s;
  animation: fadeIn 0.3s ease-out;
  min-width: 0;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.admin-form {
  background: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-form input[type="text"] {
  flex: 1 1 120px;
  min-width: 120px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  transition: all 0.2s;
}

.admin-form input[type="color"] {
  width: 2rem;
  height: 2rem;
  padding: 0.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  cursor: pointer;
}

.admin-form label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.admin-btn {
  background: rgb(22, 163, 74);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.2rem;
}

.admin-btn:hover {
  background: #4f46e5;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  transition: all 0.2s;
  min-width: 0;
}

.admin-list-item:hover {
  background: #f1f5f9;
}

.admin-item-name {
  font-weight: 500;
  color: #1f2937;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legend-square {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.25rem;
  display: inline-block;
  margin: 0 0.3rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.admin-inline-form {
  margin: 0;
}

.delete-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.2rem;
}

.delete-btn:hover {
  background: #fecaca;
  color: #b91c1c;
}

/* Full width card for platforms */
.admin-card.full-width {
  grid-column: 1 / -1;
}

/* Platform icon styling */
.admin-list-item i {
  font-size: 1rem;
  margin-right: 0.4rem;
  width: 1.1rem;
  text-align: center;
  color: #6366f1;
}

/* Navbar superior (ya lo deberías tener, pero asegúrate) */
.navbar {
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-family: 'Inter', sans-serif;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  text-decoration: none;
}

.admin-label {
  font-size: 14px;
  color: #666;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.username {
  font-size: 14px;
  color: #444;
}

.logout-link,
.back-button {
  color: #07c349;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  border: none;
  background: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.logout-link:hover,
.back-button:hover {
  background-color: #f3f3f3;
}

/* ==========================================================================
   Admin Panel Table Styles (Compact)
   ========================================================================== */

.admin-table-wrapper {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-table-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
  padding-left: 0.1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  background: transparent;
}

.admin-table th, .admin-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}

.admin-table th {
  color: #6366f1;
  font-weight: 700;
  background: #f8fafc;
  border-top: 1px solid #f1f1f1;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr {
  transition: background 0.15s;
}

.admin-table tr:hover td {
  background: #f3f4f6;
}

.admin-table .legend-square {
  margin: 0 0.2rem;
  vertical-align: middle;
}

.admin-table .admin-inline-form {
  display: inline;
}

.admin-table .delete-btn {
  background: #fee2e2;
  color: #dc2626;
  border: none;
  padding: 0.25rem 0.7rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 0.2rem;
}

.admin-table .delete-btn:hover {
  background: #fecaca;
  color: #b91c1c;
}

.admin-table input[type="text"] {
  padding: 0.35rem 0.6rem;
  font-size: 0.97rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #fff;
  margin-right: 0.3rem;
}

.admin-table input[type="color"] {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #fff;
  margin-right: 0.3rem;
}

.admin-table .admin-btn {
  background: #6366f1;
  color: #fff;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-table .admin-btn:hover {
  background: #4f46e5;
}

@media (max-width: 700px) {
  .admin-table th, .admin-table td {
    padding: 0.4rem 0.3rem;
    font-size: 0.93rem;
  }
  .admin-table-wrapper {
    padding: 1rem 0.3rem 0.5rem 0.3rem;
  }
}

/* Admin Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-card {
  animation: fadeIn 0.3s ease-out;
}











