/* Button components */

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1.5px solid;
  text-align: center;
}

.btn.small {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn.large {
  padding: 0.875rem 2rem;
  font-size: 0.95rem;
}

.btn.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.btn.primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.secondary {
  background: transparent;
  border-color: #2563eb;
  color: #2563eb;
}

.btn.secondary:hover {
  background: #2563eb;
  color: white;
}

.btn.secondary.delete {
  border-color: #dc3545;
  color: #dc3545;
}

.btn.secondary.delete:hover {
  background: #dc3545;
  color: white;
}

/* Action button (icon buttons) */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  color: #666;
}

.action-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.action-btn:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

/* Arrow button with gradient animation */
.arrow-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ff9999;
  background-size: 200% 200%;
  animation: magicalColorChange 5s ease infinite;
  color: white;
  width: 40px;
  height: 40px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(255, 153, 153, 0.4);
  z-index: 10;
}

.arrow-btn:hover {
  background-color: #ff8080;
  color: white;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 153, 153, 0.5);
}

@keyframes magicalColorChange {
  0% {
    background-position: 0% 50%;
    background-color: #ff9999;
  }

  50% {
    background-position: 100% 50%;
    background-color: #ffb366;
  }

  100% {
    background-position: 0% 50%;
    background-color: #ff99cc;
  }
}

/* Login/auth buttons */
.login-btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.3);
}

#login-btn {
  background: var(--text-color);
  color: white;
  border-color: var(--text-color);
}

#login-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

/* Edit buttons */
.edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.02em;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.edit-btn::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.edit-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #222;
  transform: translateY(-1px);
}

.edit-btn:hover::before {
  transform: scale(1.1);
}

.edit-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Time selector buttons */
.time-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.time-selector-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-color);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-selector-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-color);
}

.time-selector-btn.active {
  background: var(--text-color);
  color: #fff;
  border-color: var(--text-color);
  font-weight: 600;
}

/* Upload reference button */
.upload-ref-btn {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  border: 2px dashed rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
  text-align: center;
  display: block;
}

.upload-ref-btn:hover {
  background: rgba(240, 247, 255, 0.9);
  border-color: #4a9eff;
  color: #4a9eff;
  transform: translateY(-1px);
}

.upload-ref-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

