/* ==========================================================================
   NEXCARE SOLUTION — DOCTOR PROPOSAL STUDIO STYLES
   Futuristic, Clean & Intuitive 2-Column Interface
   ========================================================================== */

/* Page Shell */
.studio-page {
  padding-top: 100px;
  padding-bottom: 70px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header Section */
.studio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.studio-header-left {
  max-width: 760px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-100);
  border: 1px solid rgba(18, 59, 115, 0.15);
  color: var(--blue-800);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.studio-title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 850;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--blue-900);
}

.studio-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

/* Sender Info Meta Card */
.sender-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(2, 132, 199, 0.15);
  border-radius: 12px;
  padding: 12px 18px;
}

.sender-icon {
  font-size: 1.6rem;
}

.sender-text {
  font-size: 0.85rem;
  color: #0f172a;
  line-height: 1.4;
}

.sender-label {
  color: var(--accent-teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
}

.sender-sub {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-top: 4px;
}

.studio-sender-select {
  background: #ffffff; color: #0f172a; border: 1px solid #cbd5e1;
  color: #0284c7;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  margin-top: 3px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.studio-sender-select:hover,
.studio-sender-select:focus {
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.25);
}

/* Two Column Layout Grid */
.studio-grid {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1100px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}

/* Studio Cards */
.studio-card {
  background: #ffffff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(2, 132, 199, 0.12);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease;
}

.studio-card:hover {
  border-color: rgba(2, 132, 199, 0.25);
}

/* Card Clean Headers */
.card-header-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.card-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.card-header-title svg {
  color: #0284c7;
}

.count-badge {
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.quick-helpers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.sep-dot {
  color: var(--text-subtle);
}

.btn-text-link {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-text-link:hover {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
}

.btn-text-danger {
  background: none;
  border: none;
  color: #f43f5e;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-text-danger:hover {
  background: rgba(244, 63, 94, 0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 5px;
}

.opt-label {
  color: #0284c7;
  font-weight: 400;
  font-size: 0.74rem;
}

.field-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.studio-input,
.studio-select,
.studio-textarea {
  width: 100%;
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 8px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.studio-input:focus,
.studio-select:focus,
.studio-textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: rgba(5, 10, 24, 0.9);
}

.studio-textarea {
  resize: vertical;
  line-height: 1.5;
}

.form-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.btn-add-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

/* Checkboxes */
.studio-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(2, 132, 199, 0.35);
  border-radius: 4px;
  background: rgba(5, 10, 24, 0.6);
  cursor: pointer;
  position: relative;
  vertical-align: middle;
  transition: all 0.2s ease;
  margin: 0;
  flex-shrink: 0;
}

.studio-checkbox:checked {
  background: #0284c7;
  border-color: #0284c7;
}

.studio-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.select-all-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.queue-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Recipient Queue List */
.queue-list-container {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

/* Custom Scrollbar */
.queue-list-container::-webkit-scrollbar,
.email-canvas-scroll::-webkit-scrollbar,
.logs-modal-body::-webkit-scrollbar {
  width: 6px;
}

.queue-list-container::-webkit-scrollbar-thumb,
.email-canvas-scroll::-webkit-scrollbar-thumb,
.logs-modal-body::-webkit-scrollbar-thumb {
  background: rgba(2, 132, 199, 0.2);
  border-radius: 4px;
}

.queue-list-container::-webkit-scrollbar-thumb:hover,
.email-canvas-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 132, 199, 0.4);
}

/* Provider Queue Item Card */
.provider-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(5, 10, 24, 0.5);
  border: 1px solid rgba(2, 132, 199, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.provider-item:hover {
  background: rgba(8, 16, 36, 0.8);
  border-color: rgba(2, 132, 199, 0.25);
  transform: translateX(2px);
}

.provider-item.active-preview {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.1);
}

.provider-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.provider-item-info {
  min-width: 0;
  line-height: 1.35;
}

.provider-item-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-item-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.provider-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Status Badges */
.status-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pill.queued {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.status-pill.sending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  animation: pulseSending 1.5s infinite;
}

@keyframes pulseSending {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-pill.delivered {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.status-pill.failed {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.btn-remove-item {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove-item:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

.queue-empty-msg {
  text-align: center;
  padding: 30px 15px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Dispatch Center Card */
.dispatch-card {
  padding: 18px 20px;
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.2);
}

.dispatch-progress-wrap {
  margin-bottom: 14px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-info strong {
  color: #0284c7;
}

.progress-bar-track {
  height: 6px;
  background: rgba(5, 10, 24, 0.8);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(2, 132, 199, 0.15);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #0284c7);
  box-shadow: 0 0 10px #0284c7;
  transition: width 0.3s ease;
}

.dispatch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-dispatch-main {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.3);
  transition: all 0.25s ease;
}

.btn-dispatch-main:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(2, 132, 199, 0.45);
  filter: brightness(1.08);
}

.btn-dispatch-main:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-test-self {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(5, 10, 24, 0.6);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: var(--text-main);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-test-self:hover {
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
  color: #ffffff;
}

.btn-stop-dispatch {
  width: 100%;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #f43f5e;
  color: #f43f5e;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-stop-dispatch:hover {
  background: rgba(244, 63, 94, 0.25);
}

.dispatch-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(2, 132, 199, 0.1);
  gap: 10px;
  flex-wrap: wrap;
}

.bcc-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  cursor: pointer;
}

.bcc-toggle-label code {
  color: #0284c7;
  font-family: monospace;
}

/* ==========================================================================
   RIGHT COLUMN: LIVE EMAIL PREVIEW
   ========================================================================== */
.studio-preview-col {
  position: relative;
}

.preview-card {
  background: #ffffff; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Template Choice Dropdown Bar */
.template-select-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(5, 10, 24, 0.7);
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.template-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.template-select-label svg {
  color: #0284c7;
}

.template-dropdown {
  flex: 1;
  min-width: 260px;
  background: rgba(8, 16, 38, 0.95);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.template-dropdown:hover {
  border-color: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.15);
}

.template-dropdown:focus {
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.3);
  outline: none;
}

.preview-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.preview-target-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0284c7;
  white-space: nowrap;
}

.btn-customize-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-customize-toggle:hover {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284c7;
  color: #0284c7;
}

/* Customize Drawer */
.customize-drawer {
  background: rgba(5, 10, 24, 0.85);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.customize-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #ffffff;
}

/* Live Edit Toolbar */
.live-edit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(8, 18, 42, 0.9);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 9px;
  padding: 8px 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.edit-toolbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.pulse-edit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 10px #0284c7;
  animation: pulseDot 2s infinite ease-in-out;
  flex-shrink: 0;
}

.edit-status-title {
  color: #0284c7;
  font-weight: 700;
}

.edit-status-sub {
  color: var(--text-muted);
}

.btn-revert-template {
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-revert-template:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
  color: #f43f5e;
}

/* Live Editable Elements inside the Email Preview */
.live-editable {
  outline: none;
  cursor: text;
  border-radius: 3px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.live-editable:hover {
  background: rgba(2, 132, 199, 0.08) !important;
  box-shadow: 0 0 0 1.5px rgba(2, 132, 199, 0.35);
}

.live-editable:focus {
  background: rgba(2, 132, 199, 0.12) !important;
  box-shadow: 0 0 0 2px #0284c7 !important;
}

/* Email Client Shell */
.email-client-shell {
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.email-client-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(2, 132, 199, 0.15);
  padding: 12px 16px;
}

.mac-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mac-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.email-meta-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.meta-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.meta-tag {
  color: var(--text-subtle);
  width: 55px;
  flex-shrink: 0;
  font-weight: 600;
}

.meta-val {
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-subj-line {
  color: #0284c7;
  font-weight: 600;
}

/* Email Canvas Inner Body - Fully Displayed */
.email-canvas-scroll {
  min-height: auto;
  max-height: none;
  overflow: visible;
  background: #ffffff;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

.email-render-canvas {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(2, 132, 199, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(2, 132, 199, 0.2);
  border-radius: 10px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 197, 94, 0.2);
}

.toast.toast-error {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(244, 63, 94, 0.2);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(8px) scale(0.95); }
}

/* ==========================================================================
   LOGS MODAL
   ========================================================================== */
.logs-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logs-modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.logs-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(2, 132, 199, 0.15);
  background: #f8fafc;
}

.logs-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.logs-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.logs-modal-body {
  padding: 16px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  background: #ffffff;
  color: #cbd5e1;
}

.log-entry {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry.log-success { color: #4ade80; }
.log-entry.log-error { color: #f87171; }
.log-entry.log-info { color: #0284c7; }

.empty-log-state {
  color: var(--text-subtle);
  text-align: center;
  padding: 40px 10px;
}

/* Footer */
.studio-footer {
  border-top: 1px solid rgba(2, 132, 199, 0.1);
  padding: 24px 0;
  color: var(--text-subtle);
  font-size: 0.8rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #0284c7;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
