/* Estilos Customizados para a Modal */
#studyCardsModal .modal-xl {
  max-width: 90%;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  #studyCardsModal .modal-xl {
    max-width: 90%;
    margin: 0 auto;
  }
}
#studyCardsModalLabel{
  color: #333;
}

.study-modal-body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.80) 100%), 
              linear-gradient(356deg, #FFF 45.19%, rgba(255, 255, 255, 0.00) 98.91%), 
              linear-gradient(90deg, #FFD600 -9.28%, #FF0E0E 30.8%, #BD00FF 63.88%, #30F 99.4%);
  padding: 1.5rem;
}

/* Grid de Cards */
.study-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Card Individual */
.study-card {
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.study-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Cabeçalho do Card */
.study-card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.study-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2575fc;
  margin: 0;
}

/* Corpo do Card */
.study-card-body {
  padding: 0.6em;
}

.study-card-section {
    padding: 1em;
}

.study-card-label {
  font-size: 0.9rem;
  font-weight: bold;
  color: #6c757d;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap:10px;
}

.study-card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Tags (Sinônimos e Antônimos) */
.study-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.study-tag {
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.study-tag-synonym {
  background-color: rgba(37, 117, 252, 0.1);
  color: #2575fc;
}

.study-tag-antonym {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Botões Personalizados */
.btn-custom-print {
  background-color: #28a745;
  color: white;
  border: none;
}

.btn-custom-print:hover {
  background-color: #218838;
}

.btn-custom-close {
  background-color: #dc3545;
  color: white;
  border: none;
}

.btn-custom-close:hover {
  background-color: #c82333;
}

/* Responsividade */
@media (max-width: 768px) {
  .study-card-title {
    font-size: 1.3rem;
  }

  .study-card-text {
    font-size: 0.9rem;
  }

  .study-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}


#loading-wrapper {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
