/* QR Generator Styles - Consistent with tools.css */

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: default;
}

/* Ensure proper cursor behavior */
* {
  cursor: inherit;
}

input, textarea, button, select {
  cursor: pointer;
}

input:focus, textarea:focus {
  cursor: text;
}

/* QR Generator Specific Styles */
.qr-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.input-section {
  background: rgba(255,255,255,0.05);
  border: 1px solid #00c8ff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0,200,255,0.2);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  color: #00c8ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

#qr-input {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.3);
  border: 2px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 255, 0.5) rgba(255, 255, 255, 0.1);
}

#qr-input:focus {
  outline: none;
  border-color: #00c8ff;
  box-shadow: 0 0 10px rgba(0,200,255,0.3);
}

/* Custom scrollbar for QR input */
#qr-input::-webkit-scrollbar {
  width: 8px;
}

#qr-input::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

#qr-input::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 255, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

#qr-input::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 200, 255, 0.7);
}

#qr-input::placeholder {
  color: #666;
}

.options-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option label {
  display: block;
  color: #00c8ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.option select {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0,0,0,0.3);
  border: 2px solid #333;
  border-radius: 8px;
  color: #e0e0e0;
  font-family: 'Quicksand', sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.option select:focus {
  outline: none;
  border-color: #00c8ff;
  box-shadow: 0 0 10px rgba(0,200,255,0.3);
}

.generate-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(45deg, #00c8ff, #00fff7);
  border: none;
  border-radius: 12px;
  color: #0b0c10;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0,200,255,0.3);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,200,255,0.5);
}

.generate-btn:active {
  transform: translateY(0);
}

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

.output-section {
  background: rgba(255,255,255,0.05);
  border: 1px solid #00c8ff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(0,200,255,0.2);
  text-align: center;
}

.qr-result {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 2px dashed #333;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}

.placeholder {
  text-align: center;
  color: #666;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.placeholder p {
  font-size: 1.1rem;
  margin: 0;
}

.qr-result canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: white;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.download-section {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn,
.copy-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.download-btn {
  background: rgba(249,199,79,0.1);
  border-color: #f9c74f;
  color: #f9c74f;
}

.download-btn:hover {
  background: #f9c74f;
  color: #0b0c10;
  transform: translateY(-2px);
}

.copy-btn {
  background: rgba(0,255,247,0.1);
  border-color: #00fff7;
  color: #00fff7;
}

.copy-btn:hover {
  background: #00fff7;
  color: #0b0c10;
  transform: translateY(-2px);
}

/* Loading state */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top: 4px solid #00c8ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .qr-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
    margin: 0;
    max-width: 100vw;
  }
  
  .glitch-title {
    font-size: 2rem;
  }
  
  .options-group {
    grid-template-columns: 1fr;
  }
  
  .download-section {
    flex-direction: column;
    align-items: center;
  }

  #qr-input {
    padding: 0.75rem;
    font-size: 0.95rem;
    width: calc(100% - 1.5rem);
    margin: 0;
  }

  .input-section {
    padding: 1rem;
    margin: 0;
    width: 100%;
  }
  
  .download-btn,
  .copy-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,200,255,0.9);
  color: #0b0c10;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: rgba(0,255,247,0.9);
}

.toast.error {
  background: rgba(255,100,100,0.9);
  color: white;
}