/**
 * Shared styles for HorizontalTypingArea component
 */

.horizontal-typing-container {
  width: 100%;
}

/* Wrapper for text display and center line */
.text-display-wrapper {
  position: relative;
  min-height: 120px;
  height: 120px;
  cursor: text;
}

/* Center typing guide line - positioned relative to wrapper, not scrolling content */
.text-display-wrapper .center-guide-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2.2rem;
  margin-left: -1.1rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 235, 59, 0.15) 20%, rgba(255, 235, 59, 0.15) 80%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Scrollable text container */
.horizontal-text {
  font-size: 2rem;
  line-height: 1;
  padding: 3rem 2rem;
  background: #fafafa;
  border-radius: 8px;
  min-height: 120px;
  height: 120px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  position: relative;
  scroll-behavior: auto;
}

/* Hide scrollbar but keep functionality */
.horizontal-text::-webkit-scrollbar {
  display: none;
}

.horizontal-text {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Text content wrapper */
.text-scroller {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  /* Add padding so first character can be centered */
  padding-left: 50%;
  padding-right: 50%;
}

/* Base character styling - can be overridden by parent */
.text-scroller > span {
  transition: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  text-align: center;
  letter-spacing: 0;
  flex-shrink: 0;
  position: relative;
}

/* Character state styles */
.text-scroller .char.correct {
  color: #9e9e9e;
  font-weight: 400;
  opacity: 0.5;
}

.text-scroller .char.incorrect {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
  text-decoration: underline;
  text-decoration-color: #f44336;
  font-weight: 600;
  opacity: 1;
}

.text-scroller .char.current {
  background: transparent;
  animation: pulse 1s infinite;
  padding: 0;
  border-bottom: none;
  font-weight: 700;
  color: #333;
  margin: 0;
  width: 2.2rem;
  z-index: 10;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Optional stats header */
.typing-stats-header {
  margin-bottom: 1rem;
}

/* Optional instructions */
.typing-instructions {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5f5f5;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

.typing-instructions p {
  margin: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}
.typewriter-container {
  max-width: 1200px;
  margin: 0 auto;
}

.typewriter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.typewriter-header h1 {
  color: #333;
  margin-bottom: 1rem;
}

.user-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.user-stats .stat {
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 0.95rem;
}

.user-stats .stat strong {
  color: #666;
  margin-right: 0.5rem;
}

.typewriter-main {
  background: white;
  border-radius: 0 0 12px 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-height: 200px;
}

.generating-challenge {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  color: #6b7280;
  font-size: 1rem;
  font-style: italic;
}

.challenge-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

/* Enhanced Challenge Info */
.challenge-info-enhanced {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.challenge-type {
  text-transform: capitalize;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.challenge-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  opacity: 0.95;
}

.challenge-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.stat-item strong {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
}

.target-patterns {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.target-patterns strong {
  color: #FFD700;
  font-weight: 700;
}

.challenge-difficulty {
  color: #666;
  font-size: 0.9rem;
}

.actions {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  padding: 0.75rem 2rem;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-danger {
  padding: 0.75rem 2rem;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-danger:hover {
  background: #c82333;
}

.loading,
.error {
  text-align: center;
  padding: 3rem;
}

.error h2 {
  color: #dc3545;
  margin-bottom: 1rem;
}

.error button {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.error button:hover {
  background: #0056b3;
}

/* Settings Button */
.btn-settings {
  padding: 0.5rem 1rem;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s;
  margin-left: 1rem;
}

.btn-settings:hover {
  background: #e0e0e0;
}

/* Settings Panel */
.settings-panel {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.settings-panel h3 {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.setting-group {
  margin-bottom: 1.5rem;
}

.setting-group label {
  display: block;
  color: #666;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.setting-group select {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.setting-group select:hover {
  border-color: #4ECDC4;
}

.setting-group select:focus {
  outline: none;
  border-color: #4ECDC4;
}

/* Difficulty Indicator */
.difficulty-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.difficulty-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
}

.difficulty-badge.very-easy {
  background: #d4edda;
  color: #155724;
}

.difficulty-badge.easy {
  background: #d1ecf1;
  color: #0c5460;
}

.difficulty-badge.medium {
  background: #fff3cd;
  color: #856404;
}

.difficulty-badge.hard {
  background: #f8d7da;
  color: #721c24;
}

.difficulty-badge.very-hard {
  background: #dc3545;
  color: white;
}

.difficulty-desc {
  color: #666;
  font-size: 0.95rem;
}

/* Stats Display */
.stats-display {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
}

.stats-display div {
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
}

.stats-display div:last-child {
  margin-bottom: 0;
}

/* ===================================
   Mode Selection Styles
   =================================== */

.typewriter-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.typewriter-header-section {
  background: white;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.typewriter-tabs {
  display: inline-flex;
  gap: 0.25rem;
  background: transparent;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.tab-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.tab-btn.active {
  background: #9C27B0;
  color: white;
  font-weight: 600;
}

/* ===================================
   Continuous Mode Styles
   =================================== */

.continuous-typing-container {
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 60vh;
}

.stats-header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 8px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.target-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.target-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.continuous-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  line-height: 1;
  padding: 3rem 2rem;
  background: #fafafa;
  border-radius: 8px;
  min-height: 120px;
  height: 120px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  position: relative;
  scroll-behavior: auto;
}

/* Hide scrollbar but keep functionality */
.continuous-text::-webkit-scrollbar {
  display: none;
}

.continuous-text {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Wrapper for text display and center line */
.text-display-wrapper {
  position: relative;
  min-height: 120px;
  height: 120px;
  cursor: text;
}

/* Center typing guide line - positioned relative to wrapper, not scrolling content */
.text-display-wrapper .center-guide-line {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2.2rem;
  margin-left: -1.1rem;
  background: linear-gradient(to bottom, transparent, rgba(255, 235, 59, 0.15) 20%, rgba(255, 235, 59, 0.15) 80%, transparent);
  pointer-events: none;
  z-index: 1;
}

.text-scroller {
  display: inline-block;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  /* Add padding so first character can be centered */
  padding-left: 50%;
  padding-right: 50%;
}

.continuous-text .char {
  transition: none;
  padding: 0 0.5rem;
  display: inline-block;
  width: 2.2rem;
  text-align: center;
  letter-spacing: 0;
  flex-shrink: 0;
  position: relative;
}

.continuous-text .char.current {
  background: transparent;
  animation: pulse 1s infinite;
  padding: 0.2rem 0.5rem;
  border-bottom: none;
  font-weight: 700;
  color: #333;
  margin: 0;
  width: 2.2rem;
  z-index: 10;
}

.continuous-text .char.correct {
  color: #9e9e9e;
  font-weight: 400;
  opacity: 0.5;
}

.continuous-text .char.incorrect {
  color: #f44336;
  text-decoration: underline;
  text-decoration-color: #f44336;
  font-weight: 600;
  opacity: 0.7;
}

.continuous-text .char.target-pattern {
  background: rgba(103, 58, 183, 0.1);
  border-bottom: 2px solid #673ab7;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.instructions {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  border-radius: 4px;
}

.instructions p {
  margin: 0.5rem 0;
  color: #1976d2;
  font-size: 0.95rem;
}

.session-stats {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.session-stats h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.5rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  color: white;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.weak-patterns-list {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.weak-patterns-list h4 {
  margin: 0 0 1rem 0;
  color: #555;
  font-size: 1.1rem;
}

.pattern-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: white;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pattern-name {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #673ab7;
  font-size: 1.1rem;
  min-width: 60px;
}

.pattern-error {
  color: #f44336;
  font-weight: 600;
  min-width: 80px;
}

.pattern-time {
  color: #2196f3;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.loading, .error-message {
  text-align: center;
  padding: 3rem;
}

.spinner {
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-radius: 50%;
  border-top: 4px solid #667eea;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

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

.error-message {
  background: #ffebee;
  border-radius: 12px;
  padding: 2rem;
}

.error-message h3 {
  color: #c62828;
  margin: 0 0 1rem 0;
}

.error-message p {
  color: #d32f2f;
  margin: 0 0 1.5rem 0;
}

.error-message button {
  padding: 0.75rem 2rem;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.error-message button:hover {
  background: #c62828;
}

/* Controls */
.typewriter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ML Toggle Switch */
.ml-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ml-toggle-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.toggle-switch {
  position: relative;
  display: flex;
  align-items: center;
  width: 140px;
  height: 32px;
  background: #f3f4f6;
  border: 2px solid #d1d5db;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
}

.toggle-switch:hover {
  border-color: #9ca3af;
}

.toggle-option {
  position: relative;
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  z-index: 2;
  transition: color 0.3s ease;
  pointer-events: none;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 4px);
  height: calc(100% - 4px);
  background: #9C27B0;
  border-radius: 16px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.toggle-switch.auto .toggle-slider {
  transform: translateX(0);
}

.toggle-switch.manual .toggle-slider {
  transform: translateX(100%);
}

.toggle-switch.auto .toggle-option.left {
  color: white;
}

.toggle-switch.manual .toggle-option.right {
  color: white;
}

/* Reset Button */
.reset-btn {
  padding: 0.5rem 0.75rem;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.2s;
  line-height: 1;
}

.reset-btn:hover {
  background: #c62828;
  transform: scale(1.05);
}
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
}

.login-box h1 {
  margin: 0 0 10px 0;
  color: #2563eb;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.login-box h2 {
  margin: 0 0 30px 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.login-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.login-error span {
  font-size: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  color: #1f2937;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Remember Me checkbox styling */
.form-group.remember-me {
  margin-bottom: 16px;
}

.remember-me-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  color: #374151;
  font-size: 14px;
  margin-bottom: 0;
}

.remember-me-label input[type="checkbox"] {
  width: auto;
  height: 18px;
  width: 18px;
  cursor: pointer;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin: 0;
  padding: 0;
  accent-color: #667eea;
}

.remember-me-label input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.remember-me-label span {
  user-select: none;
}

.login-button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.login-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-button:active:not(:disabled) {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.login-footer p {
  margin: 6px 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.login-footer strong {
  color: #374151;
  font-weight: 600;
}
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.register-box {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  width: 100%;
}

.register-box h1 {
  margin: 0 0 10px 0;
  color: #2563eb;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

.register-box h2 {
  margin: 0 0 30px 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.register-error {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.register-error span {
  font-size: 18px;
}

.register-success {
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.register-success span {
  font-size: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  color: #1f2937;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input:disabled {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.register-button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.register-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.register-button:active:not(:disabled) {
  transform: translateY(0);
}

.register-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.register-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.register-footer p {
  margin: 6px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.register-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.register-footer a:hover {
  text-decoration: underline;
}

.login-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.login-footer a:hover {
  text-decoration: underline;
}
.verify-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.verify-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.verify-box h1 {
  color: #667eea;
  margin: 0 0 10px 0;
  font-size: 32px;
  font-weight: 700;
}

.verify-box h2 {
  color: #333;
  margin: 0 0 30px 0;
  font-size: 24px;
  font-weight: 500;
}

.verify-status {
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.verify-status.verifying {
  background-color: #f0f7ff;
  border: 2px solid #2196f3;
}

.verify-status.success {
  background-color: #f0fff4;
  border: 2px solid #4caf50;
}

.verify-status.error {
  background-color: #fff5f5;
  border: 2px solid #f44336;
}

.verify-status .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.verify-status p {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
  line-height: 1.5;
}

/* Spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.spinner.small {
  width: 24px;
  height: 24px;
  border-width: 3px;
  margin: 0 auto 10px;
}

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

/* Credentials Info */
.credentials-info {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.credentials-info h3 {
  color: #333;
  font-size: 18px;
  margin: 0 0 15px 0;
  text-align: center;
}

.credential-item {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.credential-item strong {
  color: #667eea;
  margin-right: 10px;
}

.credential-item code {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  color: #d32f2f;
  font-weight: bold;
  user-select: all;
  cursor: text;
}

.info-text {
  font-size: 14px;
  color: #666;
  margin-top: 15px;
  padding: 10px;
  background-color: #fff9e6;
  border-left: 4px solid #ffc107;
  text-align: left;
}

.password-email-notice {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1565c0;
  font-weight: 500;
  text-align: center;
}

.countdown-section {
  margin-top: 20px;
  text-align: center;
}

.continue-button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
}

.continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.countdown-text {
  font-size: 14px;
  color: #888;
  margin-top: 12px;
  font-style: italic;
}

/* Auto-login */
.auto-login {
  margin: 20px 0;
  padding: 15px;
  background-color: #f0f7ff;
  border-radius: 6px;
}

.auto-login p {
  margin: 0;
  color: #2196f3;
  font-weight: 500;
}

/* Buttons */
.login-button,
.back-button {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-button {
  background-color: #f5f5f5;
  color: #333;
}

.back-button:hover {
  background-color: #e0e0e0;
}

/* Footer */
.verify-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.verify-footer p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.verify-footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.verify-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .verify-box {
    padding: 30px 20px;
  }

  .verify-box h1 {
    font-size: 28px;
  }

  .verify-box h2 {
    font-size: 20px;
  }
}
/* Global Styles */
.App {
  text-align: left;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(37, 99, 235, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.nav-tabs {
  display: flex;
  gap: 0;
  height: 100%;
}

.nav-tab {
  background-color: transparent;
  color: #e0e7ff;
  border: none;
  padding: 0 24px;
  height: 100%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: none;
}

.nav-tab.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-bottom-color: #ffffff;
  font-weight: 600;
}

/* User Section */
.user-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username {
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.login-btn,
.logout-btn {
  background-color: #ffffff;
  color: #2563eb;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.login-btn:hover,
.logout-btn:hover {
  background-color: #f1f5f9;
  transform: none;
}

/* Main Content */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* Dashboard and Admin Panel */
.dashboard,
.admin-panel {
  background-color: #ffffff;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard h2,
.admin-panel h2 {
  margin-top: 0;
  color: #1f2937;
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 10px;
}

.section {
  background-color: #f9fafb;
  padding: 16px;
  margin: 16px 0;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.section h3 {
  margin-top: 0;
  color: #374151;
  font-size: 18px;
  margin-bottom: 12px;
}

.section p {
  margin: 8px 0;
  color: #4b5563;
  line-height: 1.6;
}

.section p strong {
  color: #1f2937;
}

/* Buttons */
button {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

button:hover {
  background-color: #1d4ed8;
  transform: none;
}

button:active {
  transform: scale(0.98);
}

/* Error and Info Messages */
.error {
  color: #dc2626;
  background-color: #fee2e2;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #dc2626;
  margin: 12px 0;
}

.info {
  color: #d97706;
  background-color: #fef3c7;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #d97706;
  margin: 12px 0;
}

/* Footer */
footer {
  background-color: #f9fafb;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
}
:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light;
  color: #1f2937;
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  /* Prevent layout shift when scrollbar appears/disappears */
  overflow-y: scroll;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: #ffffff;
}

#root {
  width: 100%;
  min-height: 100vh;
}
