/* Top Coat Editor - Cohesive Styling */

/* Modal Styling */
.tc-editor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 18, 0.95);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tc-editor-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.tc-editor-modal {
  background: #0D0D12;
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 3rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.8);
}
.tc-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #FAF8F5;
  margin-bottom: 2rem;
}
.tc-modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  color: #FAF8F5;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  text-align: center;
  transition: border-color 0.3s ease;
}
.tc-modal-input:focus {
  outline: none;
  border-color: #C9A84C;
}
.tc-modal-btn {
  background: #C9A84C;
  color: #0D0D12;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.tc-modal-btn:hover {
  background: #E2C47A;
  transform: translateY(-2px);
}
.tc-error {
  color: #ff4d4d;
  font-size: 0.75rem;
  margin-top: -1.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

/* Sidebar Editor Layout */
.tc-editor-ui {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #0D0D12;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.tc-editor-ui.active {
  opacity: 1;
  pointer-events: auto;
}
.tc-editor-iframe-area {
  width: 70%;
  height: 100%;
  background: #000;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
}
.tc-editor-iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.tc-editor-sidebar {
  width: 30%;
  height: 100%;
  background: #0A0A0E;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
}
.tc-sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tc-sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #FAF8F5;
}
.tc-close-sidebar {
  color: #FAF8F5/40;
  cursor: pointer;
  font-size: 1.5rem;
}
.tc-close-sidebar:hover {
  color: #C9A84C;
}

/* Page List / Editable fields styling */
.tc-sidebar-content {
  padding: 2rem;
}
.tc-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #C9A84C;
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}
.tc-input, .tc-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.875rem;
  border-radius: 0.75rem;
  color: #FAF8F5;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.tc-input:focus, .tc-textarea:focus {
  outline: none;
  border-color: #C9A84C;
  background: rgba(255, 255, 255, 0.05);
}
.tc-textarea {
  min-height: 100px;
  resize: vertical;
}
.tc-save-btn {
  margin-top: 3rem;
  width: 100%;
  background: #C9A84C;
  color: #0D0D12;
  font-weight: 700;
  padding: 1.25rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tc-save-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

.tc-page-selector {
  width: 100%;
  background: #0D0D12;
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: #FAF8F5;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.tc-field-group {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tc-status-msg {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #C9A84C;
  margin-top: 1rem;
  letter-spacing: 1px;
  min-height: 1rem;
}

.tc-field-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
