/* Common Styles for Static Pages - 10 Minutes of Nothing */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  line-height: 1.6;
}

.container {
  max-width: 600px;
  width: 100%;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.8;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.content {
  text-align: left;
  margin-bottom: 3rem;
}

.content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.7;
}

.philosophy {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ffffff;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  animation: borderGlow 2s ease infinite;
}

@keyframes borderGlow {
  0%, 100% {
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
  }
  25% {
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
  }
  50% {
    border-color: #7b68ee;
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.6);
  }
  75% {
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
  }
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  font-size: 1.1rem;
  padding: 1.2rem 2rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.btn-primary:hover {
  background: #f0f0f0;
  color: #000000;
  transform: translateY(-2px);
  animation: borderGlow 2s ease infinite;
}

.footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #333;
  width: 100%;
  max-width: 500px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

/* Legal pages specific styles */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.back-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 2px solid #ffffff;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.back-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.back-btn:hover::before {
  left: 100%;
}

.back-btn:hover {
  background: transparent;
  color: #ffffff;
  animation: borderGlow 2s ease infinite;
}

.accent-text {
  color: #2563eb;
  font-weight: 500;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 2rem 0 1rem 0;
  color: #ffffff;
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 1.5rem 0 0.8rem 0;
  color: #ffffff;
}

p {
  margin-bottom: 1rem;
  opacity: 0.9;
}

ul {
  margin: 1rem 0 1rem 2rem;
  opacity: 0.9;
}

li {
  margin-bottom: 0.5rem;
}

.highlight {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.highlight p {
  margin-bottom: 0.5rem;
}

.highlight p:last-child {
  margin-bottom: 0;
}

.contact-info {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.contact-info a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Breathing Pacer specific styles */
.breathing-container {
  width: 400px;
  height: 400px;
  margin: 2rem auto;
  position: relative;
  background: transparent !important;
  border: none !important;
  overflow: visible;
}

.breathing-barrel {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 35% 35%, #a78bfa, #7c3aed);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
  transition: all 0.3s ease;
  z-index: 1;
  opacity: 0.7;
  visibility: visible;
  border: none;
  animation: none !important;
}

@keyframes breathePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
    box-shadow: 0 0 40px rgba(74, 144, 226, 1);
  }
}


.breathing-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.breathing-path::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #4a90e2, transparent);
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.breathing-path::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, #4a90e2, transparent);
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

/* Triangle pattern animation (4-2-6) */
@keyframes barrelMoveTriangle {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  33% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
    box-shadow: 0 0 50px rgba(74, 144, 226, 1);
  }
  66% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
}

/* Square pattern animation (4-4-4-4) */
@keyframes barrelMoveSquare {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  25% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
    box-shadow: 0 0 50px rgba(74, 144, 226, 1);
  }
  75% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
}

/* Line pattern animation (6-0-6) */
@keyframes barrelMoveLine {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
    box-shadow: 0 0 50px rgba(74, 144, 226, 1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
}

/* Custom pattern animation */
@keyframes barrelMove {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 1;
    box-shadow: 0 0 50px rgba(74, 144, 226, 1);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.8);
  }
}

.breathing-text {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
  pointer-events: none;
}

.timer-display {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  visibility: hidden;
}

.timer-display.visible {
  visibility: visible;
}

.back-link {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-right: auto;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 1;
}

.controls {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.control-group label {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.control-group input[type="range"] {
  width: 200px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
  background: #4a90e2;
  transform: scale(1.1);
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.control-group input[type="range"]::-moz-range-thumb:hover {
  background: #4a90e2;
  transform: scale(1.1);
}

.value-display {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4a90e2;
  margin-top: 0.5rem;
}

.pattern-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.pattern-btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  border-radius: 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pattern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.pattern-btn:hover::before {
  left: 100%;
}

.pattern-btn:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
  animation: borderGlow 2s ease infinite;
}

.pattern-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Breathing Pacer specific button sizes - applied via higher specificity */
/* Note: These override default .pattern-btn, .btn, and .btn-primary styles */
/* Only applies when used with breathing-container context */
body:has(.breathing-container) .pattern-selector .pattern-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

body:has(.breathing-container) .cta-buttons .btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
}

body:has(.breathing-container) .cta-buttons .btn-primary {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.custom-controls {
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid #333;
}

.custom-summary {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(74, 144, 226, 0.3);
}

.summary-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #4a90e2;
  margin-bottom: 0.5rem;
}

.summary-bpm {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.summary-total {
  font-size: 0.9rem;
  color: #999;
  opacity: 0.8;
}

.custom-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.custom-row:last-child {
  margin-bottom: 0;
}

.custom-row label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.custom-row input[type="range"] {
  width: 250px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.custom-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-row input[type="range"]::-webkit-slider-thumb:hover {
  background: #4a90e2;
  transform: scale(1.1);
}

.custom-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.custom-row input[type="range"]::-moz-range-thumb:hover {
  background: #4a90e2;
  transform: scale(1.1);
}

/* Tools (Resources) page specific styles */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.tool-card {
  border: 2px solid #333;
  border-radius: 30px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.tool-card:hover::before {
  left: 100%;
}

.tool-card:hover {
  border-color: #ffffff;
  transform: translateY(-4px);
  animation: borderGlow 2s ease infinite;
  background: rgba(255, 255, 255, 0.08);
}

.tool-card-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.tool-card-description {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.6;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 1rem;
  }
  
  .cta-buttons {
    margin-bottom: 2rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .content {
    text-align: center;
  }
  
  .pattern-selector {
    flex-direction: column;
    align-items: center;
  }
  
  .breathing-container {
    width: min(90vw, 320px);
    height: min(90vw, 320px);
    margin: 1.5rem auto;
  }
  
  .breathing-barrel {
    width: 80px;
    height: 80px;
  }
  
  .breathing-text {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .timer-display {
    font-size: 1.2rem;
    height: 2.5rem;
    margin-bottom: 1.5rem;
  }
  
  .pattern-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .custom-controls {
    padding: 1rem;
  }
  
  .custom-row input[type="range"] {
    width: 200px;
  }
  
  .highlight,
  .contact-info {
    padding: 1rem;
  }
  
  .tools-grid {
    gap: 1rem;
  }
  
  .tool-card {
    padding: 1.5rem;
  }
  
  .tool-card-title {
    font-size: 1.3rem;
  }
}

/* End-Prompt Generator specific styles */
/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  min-width: 150px;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: block;
  padding: 0.8rem 1.5rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding-right: 3rem;
  position: relative;
  user-select: none;
}

.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-trigger:hover {
  border-color: #ffffff;
}

.custom-select.open .custom-select-trigger {
  border-color: #ffffff;
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  color: #ffffff;
}

.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.custom-select-option.selected {
  background: rgba(255, 255, 255, 0.15);
  font-weight: 500;
}

/* Legacy select styles for backward compatibility */
.select {
  padding: 0.8rem 1.5rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.select:hover {
  border-color: #ffffff;
}

.select:focus {
  border-color: #4a90e2;
}

.select-small {
  padding: 0.5rem 1rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  border-radius: 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}

.result-block {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 30px;
}

.result-block:not([style*="display: none"]) {
  animation: fadeIn 0.5s ease;
}

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

.result-item {
  margin-bottom: 1.5rem;
}

.result-item:last-of-type {
  margin-bottom: 0;
}

.result-label {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-text {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  justify-content: center;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-small::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-small:hover::before {
  left: 100%;
}

.btn-small:hover {
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-favorite.active {
  border-color: #ffd700;
  color: #ffd700;
}

.btn-toggle {
  padding: 0.8rem 1.5rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.btn-toggle:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.secondary-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-section, .add-custom-section, .share-section {
  width: 100%;
}

.dropdown {
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 0.5rem;
}

.dropdown-item {
  padding: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.custom-form {
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #333;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-form input {
  padding: 0.8rem;
  border: 2px solid #333;
  background: transparent;
  color: #ffffff;
  border-radius: 16px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.custom-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.custom-form input:focus {
  border-color: #4a90e2;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* End-prompt specific layout adjustments */
.end-prompt-controls {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.end-prompt-controls .control-group {
  flex: 0 1 auto;
}

/* Style select options */
.select option {
  background: #000000;
  color: #ffffff;
}

/* Mobile responsive for end-prompt */
@media (max-width: 480px) {
  .end-prompt-controls {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: flex-end;
    margin: 1.5rem 0;
  }
  
  .end-prompt-controls .control-group {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }
  
  .end-prompt-controls .control-group label {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
    opacity: 0.8;
  }
  
  .end-prompt-controls .btn-primary {
    flex: 1 1 100%;
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
  
  .custom-select-wrapper {
    min-width: unset;
    width: 100%;
  }
  
  .custom-select-trigger {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    padding-right: 2rem;
  }
  
  .result-block {
    padding: 1.5rem;
    margin: 1.5rem 0;
  }
  
  .result-item {
    margin-bottom: 1.2rem;
  }
  
  .result-label {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
  }
  
  .result-text {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .result-actions {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
  }
  
  .btn-toggle {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .custom-form {
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .custom-form input {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
  
  .select,
  .select-small {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }
  
  .secondary-section {
    margin-top: 1.5rem;
    gap: 0.8rem;
  }
  
  .dropdown {
    max-height: 250px;
    padding: 0.4rem;
  }
  
  .dropdown-item {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

/* Checklist styles */
.checklist-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #333;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
}

.duration-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #4a90e2;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a90e2;
  margin-bottom: 2rem;
}

.checklist-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
}

.checklist-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 1rem;
  width: 100%;
}

.checklist-label input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #666;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 0.1rem;
  transition: all 0.2s ease;
}

.checklist-label input[type="checkbox"]:hover {
  border-color: #ffffff;
}

.checklist-label input[type="checkbox"]:checked {
  background: #4a90e2;
  border-color: #4a90e2;
}

.checklist-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
}

.checklist-text {
  flex: 1;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.checklist-label input[type="checkbox"]:checked + .checklist-text {
  opacity: 0.7;
  text-decoration: line-through;
}

.checklist-text.required {
  font-weight: 500;
}

.checklist-text.optional {
  opacity: 0.9;
}

.checklist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.checklist-progress {
  margin-top: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #7b68ee);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.related-tools-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #333;
}

.related-tools-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 300;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tool-card {
  display: block;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #333;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tool-card:hover {
  border-color: #4a90e2;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.tool-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.tool-card-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Mobile responsive for checklist */
@media (max-width: 480px) {
  .checklist-wrapper {
    padding: 1.5rem;
  }
  
  .checklist-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-card {
    padding: 1.5rem;
  }
}