@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";
/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-hover: #30363d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-primary: #58a6ff;
  --accent-success: #3fb950;
  --accent-warning: #d29922;
  --accent-danger: #f85149;
  --accent-purple: #a371f7;
  --gradient-button: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-card: linear-gradient(145deg, #1a1f2e 0%, #161b22 100%);
  --gradient-glow: linear-gradient(135deg, #58a6ff26 0%, #a371f726 100%);
  --shadow-sm: 0 1px 2px #0000004d;
  --shadow-md: 0 4px 6px #0006;
  --shadow-lg: 0 10px 15px #00000080;
  --shadow-glow: 0 0 20px #58a6ff4d;
  --shadow-glow-purple: 0 0 20px #a371f74d;
  --border-color: #30363d;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --transition-fast: .15s ease;
  --transition-normal: .25s ease;
  --transition-slow: .4s ease;
}

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

html {
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

.app-container {
  max-width: 1000px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2rem;
}

.app-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.app-title {
  background: linear-gradient(135deg, #58a6ff 0%, #a371f7 50%, #f778ba 100%);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  font-size: 2.5rem;
  font-weight: 700;
  display: flex;
}

.app-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.book-selector {
  margin-bottom: 2rem;
}

.selector-label {
  color: var(--text-secondary);
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 500;
  display: block;
}

.selector-wrapper {
  position: relative;
}

.book-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  width: 100%;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  transition: all var(--transition-normal);
  padding: 1rem 3rem 1rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
}

.book-select:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.book-select:focus {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  outline: none;
}

.selector-arrow {
  pointer-events: none;
  color: var(--text-secondary);
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
}

.chapter-section {
  margin-top: 2rem;
}

.section-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  display: flex;
}

.section-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.chapter-count {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 9999px;
  padding: .25rem .75rem;
  font-size: .85rem;
}

.chapter-list {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.chapter-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  padding: 1.25rem;
}

.chapter-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.chapter-card.translating {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow-purple);
  animation: 2s infinite pulse;
}

.chapter-card.completed {
  border-left: 3px solid var(--accent-success);
}

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

  50% {
    opacity: .85;
  }
}

.chapter-header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  display: flex;
}

.chapter-title {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.chapter-meta {
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.word-count {
  color: var(--text-muted);
  font-size: .85rem;
}

.chapter-status {
  border-radius: 9999px;
  align-items: center;
  gap: .5rem;
  padding: .25rem .75rem;
  font-size: .85rem;
  display: flex;
}

.status-pending {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.status-translating {
  color: var(--accent-purple);
  background: #a371f726;
}

.status-completed {
  color: var(--accent-success);
  background: #3fb95026;
}

.progress-container {
  margin: 1rem 0;
}

.progress-bar {
  background: var(--bg-tertiary);
  border-radius: 9999px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  background: var(--gradient-button);
  background-size: 200% 100%;
  border-radius: 9999px;
  height: 100%;
  transition: width .3s;
  animation: 1.5s infinite shimmer;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.chapter-actions {
  justify-content: flex-end;
  gap: .75rem;
  margin-top: .75rem;
  display: flex;
}

.btn {
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  display: inline-flex;
}

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

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: var(--accent-primary);
}

.btn-success {
  color: #fff;
  background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 20px #3fb9504d;
}

.loading-spinner {
  border: 2px solid #0000;
  border-top-color: currentColor;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: 1s linear infinite spin;
  display: inline-block;
}

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

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-hover) 50%, var(--bg-tertiary) 75%);
  border-radius: var(--border-radius-sm);
  background-size: 200% 100%;
  animation: 1.5s infinite skeleton-loading;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 100px;
  margin-bottom: .75rem;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 4rem 2rem;
}

.empty-state-icon {
  opacity: .5;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.empty-state-title {
  color: var(--text-primary);
  margin-bottom: .5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.error-message {
  border-radius: var(--border-radius-sm);
  color: var(--accent-danger);
  background: #f851491a;
  border: 1px solid #f851494d;
  margin-bottom: 1rem;
  padding: 1rem;
}

.api-warning {
  border-radius: var(--border-radius-md);
  background: #d299221a;
  border: 1px solid #d299224d;
  margin-bottom: 2rem;
  padding: 1.25rem;
}

.api-warning-title {
  color: var(--accent-warning);
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  font-weight: 600;
  display: flex;
}

.api-warning-text {
  color: var(--text-secondary);
  font-size: .9rem;
}

.api-warning code {
  background: var(--bg-tertiary);
  border-radius: 4px;
  padding: .125rem .375rem;
  font-family: JetBrains Mono, monospace;
}

@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }

  .app-title {
    font-size: 1.75rem;
  }

  .chapter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .chapter-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }
}

.selector-section {
  margin-bottom: 1.5rem;
}

.chapter-info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.chapter-info-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.chapter-info-card .chapter-meta {
  color: var(--text-secondary);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
  display: flex;
}

.status-badge {
  border-radius: 9999px;
  padding: .25rem .75rem;
  font-size: .85rem;
  font-weight: 500;
}

.status-badge.translated {
  color: var(--accent-success);
  background: #3fb95026;
}

.status-badge.pending {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.action-buttons {
  gap: 1rem;
  display: flex;
}

.action-buttons .btn {
  flex: 1;
  justify-content: center;
  padding: .875rem 1.5rem;
  font-size: 1rem;
}

.log-section {
  margin-top: 2rem;
}

.log-header {
  color: var(--text-secondary);
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 500;
  display: flex;
}

.log-clear-btn {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  padding: .25rem .75rem;
  font-size: .8rem;
}

.log-clear-btn:hover {
  border-color: var(--accent-danger);
  color: var(--accent-danger);
}

.log-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  height: 200px;
  padding: 1rem;
  font-family: JetBrains Mono, Fira Code, monospace;
  font-size: .85rem;
  overflow-y: auto;
}

.log-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem;
}

.log-entry {
  margin-bottom: .5rem;
  line-height: 1.4;
}

.log-time {
  color: var(--text-muted);
  margin-right: .5rem;
}

.log-message {
  word-break: break-word;
}

.log-info .log-message {
  color: var(--text-secondary);
}

.log-success .log-message {
  color: var(--accent-success);
}

.log-error .log-message {
  color: var(--accent-danger);
}

/*# sourceMappingURL=src_app_globals_91e4631d.css.map*/