body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.ball {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  z-index: -1;
}


.main-container {
  min-height: 100vh;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
  transition: transform 0.2s;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  transform: translateY(-5px);
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

.status-pendiente {
  background-color: #ffd700;
  color: #000;
}

.status-en-progreso {
  background-color: #00bcd4;
  color: #fff;
}

.status-completada {
  background-color: #4caf50;
  color: #fff;
}

.hidden {
  display: none !important;
}

.task-date {
  font-size: 0.85rem;
  color: #666;
}

.auth-link {
  cursor: pointer;
  color: #0d6efd;
  text-decoration: underline;
}

.form-error {
  font-size: 0.875em;
  margin-top: 0.25em;
}

.skeleton-card {
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  padding: 20px;
  width: 100%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    background-color: #e0e0e0;
  }

  50% {
    background-color: #f5f5f5;
  }

  100% {
    background-color: #e0e0e0;
  }
}

.skeleton-title,
.skeleton-text,
.skeleton-badge,
.skeleton-button {
  background-color: #d0d0d0;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-title {
  height: 20px;
  width: 70%;
}

.skeleton-text {
  height: 15px;
  width: 90%;
}

.skeleton-badge {
  height: 25px;
  width: 50px;
}

.skeleton-button {
  height: 30px;
  width: 100px;
}

/* Estilos para el botón de carga */
.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.loading::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  margin-left: -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

/* Animación del spinner */
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

/* Estilos para el botón durante la carga */
button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

/* Estilo para el nombre de usuario */
.username {
  font-weight: 500;
  color: #333;
}

/* Ajustes responsive para el nombre de usuario */
@media (max-width: 575.98px) {
  .username {
    font-size: 12px;
  }
}

/* Animación para el botón de guardar */
@keyframes button-loading {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

button:disabled {
  animation: button-loading 1s infinite;
}

/* Mejora visual para el formulario modal */
.modal-content {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Mejora visual para las cards */
.card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Estilo para los errores de validación */
.form-error {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.status-badge {
  transition: all 0.3s ease;
}

.status-badge:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

#statusModal .modal-content {
  border-radius: 8px;
}

#statusModal .form-control {
  border-radius: 6px;
}

#status-select {
  font-size: 1rem;
  padding: 8px 12px;
}

/* Estilos para el filtro de estado */
#status-filter {
  min-width: 150px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#status-filter:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.d-flex.gap-2 {
  align-items: center;
}

.search-filter-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

/* Contenedor del formulario de búsqueda */
.search-container {
  flex: 1;
  min-width: 0;
  /* Importante para evitar desbordamiento */
}

/* Formulario de búsqueda */
#search-form {
  width: 100%;
}

/* Input de búsqueda */
#search-input {
  min-width: 0;
  /* Importante para evitar desbordamiento */
  flex: 1;
}

/* Contenedor del filtro */
.filter-container {
  width: 100%;
}

/* Select de filtro */
#status-filter {
  width: 100%;
  min-width: 150px;
}

/* Media queries para diferentes tamaños de pantalla */
@media (min-width: 576px) {
  .search-filter-container {
    flex-direction: row;
    align-items: center;
  }

  .search-container {
    margin-right: 1rem;
  }

  .filter-container {
    width: auto;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 425px) {
  #search-form .btn {
    padding: 0.375rem 0.75rem;
  }

  #search-form .btn i {
    font-size: 0.875rem;
  }

  #search-input {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  #status-filter {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }
}


@media (min-width: 992px) {
  .btn-primary.tarea {
    margin-top: 1rem;
    /* Eliminar margen superior en pantallas grandes */
  }
}

/* Estilos adicionales para mejorar la visualización */
.btn {
  white-space: nowrap;
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  border-color: #86b7fe;
}

/* Mejorar la visualización en dispositivos móviles */
@media (max-width: 768px) {
  .search-filter-container {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.375rem 0.75rem;
  }

  .card {
    margin-bottom: 1rem;
  }
}

/* Ajustes para dispositivos muy pequeños */
@media (max-width: 320px) {
  #search-form .btn {
    padding: 0.25rem 0.5rem;
  }

  #search-input,
  #status-filter {
    font-size: 0.8125rem;
  }

  .btn {
    font-size: 0.8125rem;
  }
}


.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  z-index: 1000;
}

.footer .credits {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.footer a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer a:hover {
  color: #0056b3;
  text-decoration: underline;
}

body {
  margin-bottom: 60px;
}

#mainContent {
  padding-bottom: 70px;
}

/* Contenedor de botones dentro de la card */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bg-info {
  --bs-bg-opacity: 1;
  background-color: #065279 !important;
  color: #ffffff !important;
}

.tarea-cerca {
  color: orange !important;
  /* Fecha cercana */
}

.tarea-muy-cerca {
  color: red !important;
  /* Fecha muy cercana */
}

.tarea-pasada {
  color: gray !important;
  /* Fecha pasada */
}

.tarea-futura {
  color: green !important;
  /* Fecha futura */
}