/*
@feature: ./assets/css/creator-studio.css
@purpose: Main interface styles for the Audiobook Studio creator tools
@depends: Used by: 10-creator/1audiobook-studio.php

Filename: creator-studio.css
Path: /home/elevatf7/public_html/wp-content/themes/buddyboss-theme-child-UI/assets/css/creator-studio.css
Description: Styles for the Audiobook Studio layout, tabs, waveform editor, recorder, publishing interface, and responsive layout.
*/


/* Main container styles */
.audiobook-studio {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

#audiobook-studio-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  gap: 2rem;
  align-items: flex-start;
}

#audiobook-studio-sidebar {
  width: 280px;
  min-width: 260px;
  flex-shrink: 0;
}

#audiobook-studio-main {
  flex: 1;
  max-width: 1000px;
}

/* Tab navigation styles */
.studio-tabs {
  display: flex;
  margin-bottom: 0;
  background-color: #1e293b;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  width: 100%;
}

/* Match podcast studio container style */
#audiobook-studio-sidebar {
  background-color: #ffffff !important;
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.studio-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  transition: all 0.3s ease;
}

.studio-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.studio-tab.active {
  background-color: #38bdf8;
  color: white;
  font-weight: 700;
}

/* Legacy tab buttons */
.audiobook-tab-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.audiobook-tab {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  text-align: left;
  transition: all 0.3s ease;
}

.audiobook-tab:hover {
  background-color: #e2e8f0;
}

.audiobook-tab.active {
  background-color: #38bdf8;
  color: #ffffff;
  border-color: #38bdf8;
}

/* Tab content styles */
.studio-tab-content,
.audiobook-tab-panel {
  padding: 24px;
  background-color: white;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e2e8f0;
  border-top: none;
  width: 100%;
  box-sizing: border-box;
}

.audiobook-tab-panel {
  border-radius: 10px;
}

.audiobook-tab-panel:not(.active) {
  display: none;
}

/* Basic recorder styles */
#coharmonify-basic-recorder {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.recorder-header {
  margin-bottom: 1.5rem;
}

.recorder-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.recorder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.recorder-status {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  padding: 0.5rem 1rem;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

#record-status {
  font-weight: 600;
}

.timer-container {
  font-family: monospace;
  background-color: #1e293b;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.timer-label {
  margin-right: 0.5rem;
  color: #94a3b8;
}

#recording-timer {
  font-weight: bold;
  letter-spacing: 1px;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-icon {
  margin-right: 0.5rem;
}

.btn-primary {
  background-color: #38bdf8;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0ea5e9;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #e2e8f0;
}

.btn-success {
  background-color: #10b981;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background-color: #dc2626;
}

/* Sky Blue Button Styles */
.btn-sky {
  background-color: #38bdf8;
  color: #ffffff;
  border: none;
  font-weight: bold;
}
.btn-sky:hover:not(:disabled) {
  background-color: #0ea5e9;
}
/* Sky Blue Outline Button Styles */
.btn-outline-sky {
  background-color: #ffffff;
  color: #0ea5e9;
  border: 2px solid #0ea5e9;
  font-weight: bold;
}
.btn-outline-sky:hover:not(:disabled) {
  background-color: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

/* Recording summary styles */
#recording-summary {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

#recording-summary h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

#recording-summary audio {
  width: 100%;
  margin: 1rem 0;
}

/* Chapter info styles */
.chapter-info {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1.5rem;
}

.chapter-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Stats card */
.stats-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.stat-label {
  color: #64748b;
  font-weight: 500;
}

.stat-value {
  font-weight: 600;
  color: #1e293b;
}

/* Chapter list */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.chapter-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background-color: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.chapter-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #38bdf8;
  color: white;
  border-radius: 50%;
  font-weight: 600;
  margin-right: 0.75rem;
}

.chapter-title {
  flex: 1;
  font-weight: 500;
}

.chapter-duration {
  color: #64748b;
  margin-right: 1rem;
  font-family: monospace;
}

.chapter-actions {
  display: flex;
  gap: 0.5rem;
}

/* Publishing options */
.publishing-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.format-options {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

/* Content editor */
#chapter-content {
  width: 100%;
  min-height: 300px;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-family: 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 1rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
  #audiobook-studio-wrapper {
    flex-direction: column;
  }
  
  #audiobook-studio-sidebar {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .audiobook-tab-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .studio-tabs {
    flex-direction: column;
  }
  
  .recorder-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .recorder-status {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

/* === Tab Content Visibility (Final & Working) === */
.studio-tab-content {
  display: none;
}

.studio-tab-content.active {
  display: block;
}

.studio-content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.studio-sidebar {
  width: 260px;
  padding: 32px 24px;
  background-color: #ffffff !important; /* ← FORCE it */
  border-right: 1px solid #e5e7eb;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sidebar sections */
.sidebar-section {
  background-color: #ffffff !important;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

/* Fix invisible tab content container */
.studio-tab-content {
  background: #ffffff;
  min-height: 300px;
  padding: 2rem;
  display: none;
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.studio-tab-content.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.studio-tab-inner {
  background: #ffffff;
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 🔧 Final visibility fix to restore tab content if sidebar breaks layout */
.studio-content-wrapper {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

