/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* VoiceCast - Global Styles — Clean & Professional */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette — Warm Neutral */
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --secondary: #0d9488;
  --secondary-light: #5eead4;
  --accent: #e11d48;
  --accent-light: #fb7185;

  /* Neutrals — Light & Breathable */
  --bg-body: #f8f9fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #cbd5e1;

  /* Status Colors */
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --info: #2563eb;

  /* Shadows — Subtle & Soft */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -2px rgba(0,0,0,0.03);

  /* Typography */
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navbar --- */
.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.navbar__logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.navbar__nav {
  display: flex;
  gap: 4px;
  list-style: none;
}

.navbar__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.navbar__link:hover,
.navbar__link--active {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.navbar__link--active {
  color: var(--primary);
  background: rgba(37,99,235,0.06);
}

/* --- Page Header --- */
.page-header {
  padding: 32px 0 20px;
}

.page-header__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.page-header__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.card__description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

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

.btn--primary {
  background: var(--primary);
  color: white;
}

.btn--primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

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

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

.btn--danger { background: var(--error); color: white; }
.btn--danger:hover:not(:disabled) { background: #b91c1c; }

.btn--large {
  padding: 12px 28px;
  font-size: 14px;
  border-radius: var(--radius);
}

.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

.btn--record {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 28px;
  box-shadow: 0 2px 12px rgba(225,29,72,0.25);
}

.btn--record:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(225,29,72,0.35);
}

.btn--record.recording {
  animation: pulse-record 1.5s infinite;
}

@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0.3); }
  50% { box-shadow: 0 0 0 16px rgba(225,29,72,0); }
}

/* --- Status Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.badge--draft { background: #f1f5f9; color: var(--text-muted); }
.badge--processing { background: #eff6ff; color: var(--info); }
.badge--ready { background: #f0fdf4; color: var(--success); }
.badge--error { background: #fef2f2; color: var(--error); }
.badge--published { background: #eff6ff; color: var(--primary); }

/* --- Pipeline Steps --- */
.pipeline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  overflow-x: auto;
}

.pipeline__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--border);
  min-width: 140px;
  transition: all 0.2s ease;
}

.pipeline__step--active {
  border-color: var(--primary);
  background: rgba(37,99,235,0.04);
}

.pipeline__step--completed {
  border-color: var(--success);
  background: rgba(22,163,74,0.04);
}

.pipeline__step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--bg-surface);
}

.pipeline__step--active .pipeline__step-icon {
  background: var(--primary);
  color: white;
}

.pipeline__step--completed .pipeline__step-icon {
  background: var(--success);
  color: white;
}

.pipeline__step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pipeline__arrow {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.upload-zone:hover {
  border-color: var(--primary-light);
  background: rgba(37,99,235,0.02);
}

.upload-zone--active {
  border-color: var(--primary);
  background: rgba(37,99,235,0.04);
}

.upload-zone__icon { font-size: 40px; margin-bottom: 12px; }
.upload-zone__text { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.upload-zone__hint { font-size: 12px; color: var(--text-muted); }

/* --- Text Area --- */
.textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* --- Progress Bar --- */
.progress {
  width: 100%;
  height: 4px;
  background: var(--bg-surface);
  border-radius: 100px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* --- Section --- */
.section { margin-bottom: 28px; }

.section__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

/* --- Grid --- */
.grid { display: grid; grid-gap: 16px; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- Waveform --- */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 48px;
  padding: 12px;
}

.waveform__bar {
  width: 3px;
  border-radius: 2px;
  background: var(--primary);
  animation: wave 1.2s ease-in-out infinite;
}

.waveform__bar:nth-child(2) { animation-delay: 0.1s; }
.waveform__bar:nth-child(3) { animation-delay: 0.2s; }
.waveform__bar:nth-child(4) { animation-delay: 0.3s; }
.waveform__bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { height: 8px; opacity: 0.4; }
  50% { height: 32px; opacity: 1; }
}

/* --- Spinner --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* --- Video Player --- */
.video-player {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --- Avatar Grid --- */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.avatar-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 1;
}

.avatar-card:hover {
  border-color: var(--primary-light);
}

.avatar-card--selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

.avatar-card img { width: 100%; height: 100%; object-fit: cover; }

.avatar-card__name {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  font-size: 11px;
  font-weight: 500;
  color: white;
}

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  animation: slideIn 0.25s ease;
  box-shadow: var(--shadow-lg);
}

.toast--success { background: var(--success); color: white; }
.toast--error { background: var(--error); color: white; }
.toast--info { background: var(--info); color: white; }

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

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state__icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.empty-state__text { font-size: 15px; margin-bottom: 20px; color: var(--text-secondary); }

/* --- Form Select (for dropdowns in pages) --- */
.form-select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }

  .navbar__nav {
    gap: 2px;
  }

  .navbar__link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .navbar__link span {
    display: none;
  }

  .pipeline {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pipeline__step {
    min-width: auto;
    flex: 1 1;
    padding: 8px 10px;
    gap: 6px;
  }

  .pipeline__step-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .pipeline__step-label {
    font-size: 11px;
  }

  .pipeline__arrow {
    display: none;
  }

  .page-header {
    padding: 24px 0 16px;
  }

  .page-header__title {
    font-size: 20px;
  }

  .upload-zone {
    padding: 28px 16px;
  }

  .card {
    padding: 16px;
  }

  .btn--large {
    padding: 12px 20px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .navbar__logo-text {
    display: none;
  }

  .navbar__link {
    padding: 6px 8px;
    font-size: 11px;
  }

  .page-header__title {
    font-size: 18px;
  }
}

