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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header h1 i {
    margin-right: 15px;
    animation: spin 3s linear infinite;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

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

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.wheel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wheel {
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.spin-button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.spin-button:active {
    transform: translateY(0);
}

.spin-button i {
    margin-right: 10px;
}

.controls-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.add-prompt h3, .prompts-list h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#prompt-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#prompt-input:focus {
    outline: none;
    border-color: #667eea;
}

.add-button {
    padding: 15px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-button:hover {
    background: #5a6fd8;
    transform: scale(1.05);
}

.prompts-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.prompt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.prompt-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.prompt-text {
    flex: 1;
    font-weight: 500;
}

.delete-prompt {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-prompt:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.actions {
    display: flex;
    gap: 15px;
}

.clear-button, .randomize-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-button {
    background: #ff4757;
    color: white;
}

.clear-button:hover {
    background: #ff3742;
}

.randomize-button {
    background: #2ed573;
    color: white;
}

.randomize-button:hover {
    background: #26d0ce;
}

.result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    padding: 30px;
    min-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.selected-prompt {
    font-size: 1.5rem;
    font-weight: 600;
    color: #667eea;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #667eea;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.remove-button, .keep-button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-button {
    background: #ff4757;
    color: white;
}

.remove-button:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.keep-button {
    background: #2ed573;
    color: white;
}

.keep-button:hover {
    background: #26d0ce;
    transform: translateY(-2px);
}

.spin-again-button {
    background: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spin-again-button:hover {
    background: #217dbb;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(100%);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from { 
        opacity: 1;
        transform: translateX(0);
    }
    to { 
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .wheel-container {
        transform: scale(0.8);
    }
    
    .modal-content {
        min-width: 90%;
        margin: 20px;
    }
    
    .actions {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
.prompts-container::-webkit-scrollbar {
    width: 6px;
}

.prompts-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.prompts-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.prompts-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.paste-multiple-button {
    background: #f1c40f;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 5px;
}
.paste-multiple-button:hover {
    background: #f39c12;
    transform: scale(1.05);
}

.paste-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}
.paste-modal .modal-content {
    min-width: 400px;
    max-width: 90vw;
}
#paste-input {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #e1e8ed;
    padding: 15px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 10px;
}
@media (max-width: 600px) {
    .paste-modal .modal-content {
        min-width: 90vw;
    }
}

.prompt-edit-input {
    flex: 1;
    font-size: 1rem;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    outline: none;
    margin-right: 10px;
}
.prompt-edit-input:focus {
    border-color: #667eea;
}

.card.about-section, .about-section.card {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  margin: 2rem 0 0 0;
  width: 100%;
  color: #222;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.about-section h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
}

.about-section p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #444;
}

.about-section ol {
  padding-left: 1.2em;
  margin: 0 0 0.5em 0;
}

.about-section li {
  margin-bottom: 0.5em;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .card.about-section, .about-section.card {
    padding: 1rem 0.5rem;
    width: 98vw;
    margin-left: -10px;
    margin-right: -10px;
  }
  .about-section h2 {
    font-size: 1.1rem;
  }
  .about-section p, .about-section li {
    font-size: 0.98rem;
  }
}

.faq-section.card {
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  margin: 2rem 0 0 0;
  width: 100%;
  color: #222;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.faq-section h2 {
  margin-top: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
}

.faq-item {
  margin-bottom: 1.2rem;
}

.faq-item strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  color: #444;
}

.faq-item p {
  margin: 0 0 0.5rem 0;
  color: #555;
  font-size: 1rem;
}

.faq-item ul {
  margin: 0.5rem 0 0 1.2em;
  padding: 0;
  color: #444;
  font-size: 1rem;
}

.faq-item li {
  margin-bottom: 0.3em;
}

/* Two-column layout for about and FAQ sections */
@media (min-width: 900px) {
  .about-section.card, .faq-section.card {
    width: 500px;
    min-width: 0;
    max-width: 100%;
    margin: 2rem auto 0 auto;
    display: block;
  }
  .faq-section.card {
    margin-top: 2rem;
  }
}

@media (max-width: 900px) {
  .about-section.card, .faq-section.card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    display: block;
  }
}

.bookmark-button {
  margin-top: 10px;
  padding: 12px 20px;
  background: #ffd700;
  color: #333;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.bookmark-button:hover {
  background: #ffe066;
  transform: translateY(-2px) scale(1.03);
}

.bookmark-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  animation: fadeIn 0.3s ease;
}
.bookmark-modal .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 20px;
  padding: 30px;
  min-width: 350px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideIn 0.3s ease;
}
.bookmark-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.bookmark-modal .modal-header h2 {
  color: #333;
  font-weight: 600;
  font-size: 1.3rem;
}
.bookmark-modal .close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}
.bookmark-modal .close-btn:hover {
  color: #333;
}
.bookmark-modal .modal-body {
  font-size: 1.08rem;
  color: #444;
  padding: 10px 0 0 0;
}
@media (max-width: 600px) {
  .bookmark-modal .modal-content {
    min-width: 90vw;
    padding: 18px;
  }
  .bookmark-modal .modal-header h2 {
    font-size: 1.05rem;
  }
  .bookmark-modal .modal-body {
    font-size: 0.98rem;
  }
}

.info-note {
  background: #f1f5fb;
  color: #2d3748;
  border-left: 4px solid #667eea;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  font-size: 1rem;
  gap: 10px;
}
.info-note i {
  color: #667eea;
  font-size: 1.2em;
  margin-top: 2px;
}
.info-note strong {
  color: #222;
}

@media (max-width: 500px) {
  #wheel {
    width: 90vw !important;
    height: 90vw !important;
    max-width: 100vw;
    max-height: 100vw;
    display: block;
    margin: 0 auto;
  }
} 