:root {
  --bs-primary: #343a40;
  --bs-secondary: #f8c471;
}

body {
  background-color: #f5f5f5;
}

.card-book {
  transition: transform 0.2s;
}

.card-book:hover {
  transform: scale(1.03);
}
/* Cada .book-card ocupa 12.5% de ancho para 8 columnas */
.col-sm-6.col-md-4.col-lg-3:hover {
    transform: scale(1.03);
}
#books-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  transform: scale(0.7);
  transform-origin: top left;
}

.book-card {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}
/* ==== Estilo tipo WhatsApp ==== */

#chat-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 500px;           /* ajusta según necesites */
  overflow-y: auto;
  padding: 1rem;
  background: #e5ddd5;
  border-radius: 8px;
  margin-top: 0 !important;
  padding-top: 0 !important;

}

.message {
  display: flex;
}

.message.user {
  justify-content: flex-end;
}

.message.bot {
  justify-content: flex-start;
}

.message-content {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 18px;
  line-height: 1.4;
  word-wrap: break-word;
  /* white-space: pre-wrap;   respeta saltos de línea */
}

.message.user .message-content {
  background: #dcf8c6;
}

.message.bot .message-content {
  background: #fff;
}

/* Sticky notes estilo Windows 11 */
#notes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.note-card {
  position: relative;
  width: 200px;
  min-height: 150px;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  /* white-space: pre-wrap; */
}
.note-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 0.25rem;
}
/* Dashboard layout */
.dashboard-container {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  /* width: 220px;
  background: #f8f9fa;
  padding: 1rem;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #ddd; */
  width: 220px;
  background: #f8f9fa;
  padding: 1rem;
  border-right: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;

}

/* .sidebar .nav-link {
  color: #575b5e;
  padding: 0.5rem 1rem;
  transition: background 0.2s;
}

.sidebar .nav-link:hover {
  background: #eaeaea;
  border-radius: 6px;
} */
/* Agrega este CSS a tu style.css */

/* Estilos para enlaces de navegación */
.sidebar .nav-link {
    color: #6c757d;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateX(3px);
}

.sidebar .nav-link.active {
    color: #ffffff;
    background-color: #0d6efd;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.sidebar .nav-link.active i {
    color: #ffffff;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

/* Animación suave para el cambio de secciones */
.section-dashboard {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejorar el aspecto del modal de nueva publicación */
#createPostModal .modal-body textarea {
    min-height: 100px;
    resize: vertical;
}

#createPostModal .modal-body input[type="file"] {
    border: 2px dashed #dee2e6;
    padding: 20px;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

#createPostModal .modal-body input[type="file"]:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Mejorar el aspecto de las publicaciones */
.post-card {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.post-card img, .post-card video {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}
.user-email {
  font-size: 0.85rem;
}

/* Top bar */
.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.user-icon {
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

/* Responsive adjustments */
/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 1rem;
  }

  .sidebar .nav-link {
    display: inline-block;
    margin-right: 1rem;
    padding: 0.5rem 0.75rem;
  }

  .content-area {
    width: 100%;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .topbar input {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .user-icon {
    align-self: flex-end;
    margin-top: 0.5rem;
  }

  /* .section-dashboard {
    padding: 1rem;
  } */

  .note-card {
    width: 100%;
  }

  .table-responsive {
    overflow-x: auto;
  }
}
@media (max-width: 576px) {
  .table td,
  .table th {
    font-size: 0.85rem;
    padding: 0.4rem;
  }

  .btn-sm {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}
.config 
  {
    text-align: left;
    /* padding-left: 0; */
    font-size: 0.9em;
}
div#post-feed {
    width: 50%;
}
@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #ddd;
    flex-direction: row;
    justify-content: space-around;
  }

  .content-area {
    margin-left: 0;
  }
}
input.form-control {
    border: 2px dashed #dee2e6;
    padding: 20px;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}