/* habit styles */
.habit-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.habit-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Day circles styling - better responsive styles */
.circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.85rem;
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.habit-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-align: center;
  position: relative;
}

.day {
  font-size: 0.7rem;
  color: var(--font-color-dark-gray, #6c757d);
  margin-bottom: 5px;
  font-weight: 500;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Interactive circle - for today's circle that can be toggled */
.circle.interactive {
  cursor: pointer;
  transform-origin: center;
}

.circle.interactive:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.circle.interactive:active {
  transform: scale(0.95);
}

/* Loading circle state */
.circle.loading {
  cursor: wait;
  opacity: 0.7;
}

/* Animation for check icon */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Ripple effect for interactive circles */
.ripple-effect {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: ripple 1.5s linear infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Quest styling */
.quest-card {
  border-left: 4px solid #28a745 !important;
  border-top: 1px solid rgba(40, 167, 69, 0.2) !important;
  border-right: 1px solid rgba(40, 167, 69, 0.2) !important;
  border-bottom: 1px solid rgba(40, 167, 69, 0.2) !important;
}

.quest-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(40, 167, 69, 0.1);
  border-radius: 50%;
  color: #28a745;
}

/* Toast customizations */
.toast {
  border-radius: 12px;
  opacity: 0.95;
}

/* Active Quest styles for home page */
#active-quests-section .quest-section-title {
    font-size: 1.1rem;
    color: #6c757d;
    position: relative;
}

#active-quests-section .quest-section-title i {
    color: #ffc107;
}

.quest-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quest-marker {
    color: #ffc107;
    font-size: 1.1em;
}

/* Highlight active quests */
.active-quest {
    border-left: 4px solid #28a745 !important;
    background-color: rgba(40, 167, 69, 0.03);
}

.active-quest:hover {
    background-color: rgba(40, 167, 69, 0.06);
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .circle {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
  
  .day {
    font-size: 0.6rem;
    margin-bottom: 3px;
  }
}

@media (min-width: 361px) and (max-width: 575px) {
  .circle {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }
  
  .day {
    font-size: 0.65rem;
  }
}

@media (min-width: 576px) {
  .circle {
    width: 38px;
    height: 38px;
    line-height: 38px;
  }
  
  .day {
    font-size: 0.75rem;
  }
}

/* Medium screens */
@media (min-width: 768px) {
  .circle {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  
  .day {
    font-size: 0.75rem;
  }
  
  .habit-day {
    min-width: 42px;
  }
}
