/* =========================================
   Audio Converter - Glassmorphism Styles
========================================= */

.page-wrapper {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 6fr 1fr;
  gap: 2rem;
  padding: 60px 0 4rem 0;
  flex: 1;
}
.ad-space-left,
.ad-space-right {
  width: 100%;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #475569);
  font-size: 0.8rem;
}
.main-content {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.glass-panel {
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 85, 255, 0.15));
}
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: #00a2ff;
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 500px;
  height: 500px;
  background: #0033cc;
  bottom: -150px;
  right: -100px;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: #7dd3fc;
  top: 40%;
  left: 30%;
}
h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark, #1e293b);
  font-size: 1.8rem;
}
h2 {
  font-size: 1.4rem;
  color: var(--text-dark, #1e293b);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

/* --- File Upload Area --- */
.file-drop-area {
  width: 100%;
  padding: 3rem 2rem;
  border: 2px dashed var(--accent, #0055ff);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.file-drop-area:hover,
.file-drop-area.drag-over {
  background: rgba(0, 85, 255, 0.05);
  border-color: var(--accent-hover, #0033cc);
}
.upload-icon {
  font-size: 3rem;
  color: var(--accent, #0055ff);
}
.file-drop-area p {
  color: var(--text-dark, #1e293b);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  text-align: center;
}
.file-name {
  font-size: 0.9rem;
  color: var(--text-muted, #475569);
  text-align: center;
}

.controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  align-items: end;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark, #1e293b);
}
.input-group select {
  padding: 0.75rem;
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark, #1e293b);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  height: 45px;
  transition: border-color 0.2s ease;
}
.input-group select:focus {
  border-color: var(--accent, #0055ff);
}
.generate-btn {
  background: var(--accent, #0055ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  height: 45px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.1s,
    opacity 0.2s;
  text-decoration: none;
}
.generate-btn:hover:not(:disabled) {
  background: var(--accent-hover, #0033cc);
}
.generate-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.generate-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.7;
}

/* --- Multiple File List --- */
.output-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 1rem;
}
.file-list-header h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0;
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.file-list::-webkit-scrollbar {
  width: 6px;
}
.file-list::-webkit-scrollbar-track {
  background: transparent;
}
.file-list::-webkit-scrollbar-thumb {
  background: rgba(0, 85, 255, 0.3);
  border-radius: 4px;
}
.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  gap: 1rem;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}
.file-icon {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  font-size: 24px;
  background: rgba(0, 85, 255, 0.1);
  color: var(--accent);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.file-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.file-details strong {
  font-size: 0.95rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.file-status {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--text-muted);
}
.file-status.done {
  background: #dcfce7;
  color: #166534;
}
.file-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-icon {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  width: 35px;
  height: 35px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-icon:hover {
  background: var(--accent);
  color: white;
}
.btn-icon.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #cbd5e1;
  color: #cbd5e1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-block h4 {
  font-size: 1.25rem;
  color: var(--accent, #0055ff);
  border-bottom: 2px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.info-block p {
  color: var(--text-muted, #475569);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-wrapper {
    width: 95%;
    grid-template-columns: 1fr;
  }
  .ad-space-left,
  .ad-space-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .controls {
    grid-template-columns: 1fr;
  }
  .file-item {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .file-info {
    flex-direction: column;
  }
  .file-actions {
    justify-content: center;
  }
}
