/* ========================================================================
 Base & Layout Styles
 ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

/* Studio Text accordion buttons: orange hover standard */
@keyframes axm-orange-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45); }
  100% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
}
html #ai-text-suggestions .btn {
  --bs-btn-focus-shadow-rgb: 234, 88, 12;
  background-color: var(--axm-surface-2, var(--bs-body-bg, #f8fafc));
  border-color: var(--axm-border, var(--bs-border-color, #dee2e6));
  color: var(--axm-text, var(--bs-body-color, #212529));
  transition: background-color .18s, border-color .18s, color .18s;
}
html #ai-text-suggestions .btn:hover,
html #ai-text-suggestions .btn:focus-visible,
html #ai-text-suggestions .btn:active,
html #ai-text-suggestions .btn.active {
  background-color: rgba(234, 88, 12, 0.08);
  border-color: #ea580c;
  color: #ea580c;
}
@media (prefers-reduced-motion: no-preference) {
  html #ai-text-suggestions .btn:hover,
  html #ai-text-suggestions .btn:focus-visible {
    animation: axm-orange-pulse 1.4s ease-out infinite;
  }
}
body {
 font-family: "Urbanist", sans-serif;
 background-color: #f8f9fa;
 overflow-x: hidden;
 overflow-y: auto;
 max-height: 100vh;
}
.archivo {
 font-family: "Archivo", sans-serif;
 font-optical-sizing: auto;
 font-weight: <weight>;
 font-style: normal;
 font-variation-settings:
 "wdth" 100;
}
.urbanist {
 font-family: "Urbanist", sans-serif;
 font-optical-sizing: auto;
 font-weight: <weight>;
 font-style: normal;
}
.w-full {
 width: 100%;
}
/* --- OLD NAVBAR (Keeping for fallback, but overridden by new toolbar) --- */
.navbar {
 background-color: #ffffff;
 border-bottom: 1px solid #e0e0e0;
}
.card {
 border: none;
 border-radius: 10px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
 margin-bottom: 20px;
 overflow: visible !important;
}
.form-control,
.form-select,
.btn {
 border-radius: 8px;
}
.container-fluid {
 overflow-x: visible !important;
 max-height: none !important;
 overflow-y: visible !important;
}
.script-editor-tabs .nav-link {
 border: none;
 border-bottom: 2px solid transparent;
 border-radius: 0;
 color: #6c757d;
 padding-left: 0;
 padding-right: 1.5rem;
}
.script-editor-tabs .nav-link.active {
 border-bottom-color: #0d6efd;
 color: #0d6efd;
 font-weight: 500;
}
.script-editor-toolbar {
 background-color: #f8f9fa;
 padding: 8px;
 border: 1px solid #dee2e6;
 border-bottom: none;
 border-top-left-radius: 8px;
 border-top-right-radius: 8px;
}
.script-editor-toolbar .btn-group .btn {
 box-shadow: none;
 transform: none;
 border-radius: 4px;
 margin: 0 2px;
}
#script-result-area,
#ssml-result-area {
 border: 1px solid #ced4da;
 border-top: none;
 border-radius: 0 0 8px 8px;
 padding: 10px;
 min-height: 200px;
 resize: vertical;
 overflow: auto;
 background-color: #f8f9fa;
 white-space: pre-wrap;
}
#ssml-result-area {
 font-family: 'Courier New', monospace;
 font-size: 0.9rem;
 min-height: 150px;
}
#script-result-area:focus,
#ssml-result-area:focus {
 outline: 0;
 border-color: #86b7fe;
 box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
 background-color: #fff;
}
.test-editor-container {
 background: var(--axm-surface, white);
 border-radius: 10px;
 box-shadow: var(--axm-shadow, 0 4px 6px rgba(0, 0, 0, 0.1));
 overflow: visible !important;
 margin-bottom: 20px;
}
.test-editor-sidebar {
 background: var(--axm-surface-2, #f8f9fa);
 border-right: 1px solid var(--axm-border, #dee2e6);
 padding: 20px;
 min-height: auto;
 max-height: none;
 overflow-y: visible;
 order: 1;
}
.test-editor-canvas-area {
 position: relative;
 background: var(--axm-bg-elevated, #ffffff);
 min-height: 500px;
 height: auto !important;
 max-height: none !important;
 overflow: visible !important;
 padding: 0 !important;
 margin: 0 !important;
 order: 2;
}
.test-toolbar {
 background: var(--axm-surface-3, #e9ecef);
 padding: 10px;
 border-bottom: 1px solid var(--axm-border, #dee2e6);
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 align-items: center;
}
.test-toolbar button,
.test-toolbar input,
.test-toolbar select {
 height: 30px;
 border: 1px solid var(--axm-border-strong, #ced4da);
 border-radius: 5px;
 font-size: 13px;
}
.test-toolbar button {
 min-width: 30px;
 background: var(--axm-surface, white);
 color: var(--axm-text, #495057);
 padding: 5px 8px;
}
.test-toolbar button:hover:not(:disabled) {
 background: var(--axm-surface-2, #e9ecef);
}
.test-toolbar button.active {
 background: #0d6efd;
 color: white;
 border-color: #0d6efd;
}
.test-toolbar button:disabled {
 opacity: 0.5;
 cursor: not-allowed;
}
/* Inline transparent native color input overlay (anchors picker to icon button) */
.axm-inline-color-picker {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 opacity: 0;
 border: 0;
 padding: 0;
 margin: 0;
 cursor: pointer;
}
.test-toolbar button:disabled .axm-inline-color-picker {
 pointer-events: none;
}
/* Delete stays clickable; faded when nothing selected (see template_editor.js). */
.test-toolbar button.axm-needs-selection {
 opacity: 0.5;
 cursor: pointer;
}
.test-toolbar-group {
 display: flex;
 gap: 3px;
 align-items: center;
 margin-right: 5px;
}
.test-toolbar-label {
 font-size: 12px;
 color: #6c757d;
 margin-right: 5px;
}
.test-shape-grid {
 display: grid;
 grid-template-columns: repeat(5, 1fr);
 gap: 8px;
}
.test-shape-btn {
 aspect-ratio: 1;
 display: flex;
 align-items: center;
 justify-content: center;
 border: 2px solid var(--axm-border, #dee2e6);
 background: var(--axm-surface, #ffffff);
 color: var(--axm-text, #212529);
 border-radius: 8px;
 cursor: pointer;
 transition: all 0.2s;
 padding: 8px;
}
.test-shape-btn i,
.test-shape-btn svg {
 color: inherit;
 fill: currentColor;
}
.test-shape-btn:hover {
 border-color: var(--axm-accent, #0d6efd);
 transform: translateY(-2px);
 background: var(--axm-surface-2, #ffffff);
}
.test-shape-btn.creating {
 border-color: #28a745;
 background-color: rgba(40, 167, 69, 0.18);
 color: var(--axm-text, #212529);
}
.test-canvas-container {
 height: auto !important;
 min-height: 500px;
 max-height: none !important;
 position: relative;
}
/* Centered modal-style loader during AI image generation (see aximatestudio.js) */
.axm-ai-image-gen-overlay {
 --axm-ai-gen-accent: var(--axm-primary, var(--bs-primary, #0d6efd));
 position: absolute;
 inset: 0;
 z-index: 40;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: clamp(1rem, 4vw, 1.75rem);
 box-sizing: border-box;
 background: rgba(15, 23, 42, 0.42);
 backdrop-filter: blur(4px);
 -webkit-backdrop-filter: blur(4px);
 border-radius: inherit;
}
.axm-ai-image-gen-overlay__panel {
 --axm-ai-gen-accent: var(--axm-primary, var(--bs-primary, #0d6efd));
 max-width: 24rem;
 width: 100%;
 padding: 2rem 1.75rem 1.875rem;
 text-align: center;
 font-family: var(--bs-body-font-family, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
 background: #ffffff;
 color: #1a1a1a;
 border: 1px solid rgba(0, 0, 0, 0.06);
 border-radius: 12px;
 box-shadow:
 0 4px 6px -1px rgba(15, 23, 42, 0.06),
 0 12px 28px -4px rgba(15, 23, 42, 0.12),
 0 0 0 1px color-mix(in srgb, var(--axm-ai-gen-accent) 12%, transparent);
}
.axm-ai-image-gen-overlay__spinner-wrap {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 4.25rem;
 height: 4.25rem;
 margin: 0 auto 1.25rem;
 border-radius: 50%;
 background: color-mix(in srgb, var(--axm-ai-gen-accent) 10%, transparent);
 box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--axm-ai-gen-accent) 18%, transparent);
}
.axm-ai-image-gen-overlay__spinner {
 width: 2.35rem;
 height: 2.35rem;
 margin: 0;
 border-width: 0.22em;
 color: var(--axm-ai-gen-accent);
}
.axm-ai-image-gen-overlay__title {
 margin: 0;
 font-size: 1.0625rem;
 font-weight: 700;
 line-height: 1.5;
 color: #1a1a1a;
}
.axm-ai-image-gen-overlay__hint {
 margin: 0.75rem auto 0;
 font-size: 0.875rem;
 font-weight: 400;
 color: #666666;
 line-height: 1.5;
 max-width: 19rem;
}
.test-canvas-wrapper {
 position: relative;
 width: 100% !important;
 height: 100% !important;
 background: var(--axm-surface, white);
 border: none !important;
 margin: 0 !important;
 padding: 0 !important;
 box-sizing: border-box !important;
 display: block !important;
 justify-content: flex-start !important;
 align-items: flex-start !important;
}
#aximate-canvas {
 display: block !important;
 /* cursor: crosshair; */ /* Commented out or deleted */
 /* border: 1px solid var(--axm-border, #dee2e6); */
 border-radius: 6px;
 box-sizing: border-box !important;
 width: calc(100% - 2px) !important;
 height: auto !important;
 max-width: calc(100% - 2px) !important;
 max-height: 100% !important;
 min-width: unset !important;
 min-height: unset !important;
 margin: 0 !important;
 padding: 0 !important;
 left: 0 !important;
 right: 0 !important;
 position: static !important;
 transform: none !important;
 float: none !important;
}
.test-placeholder {
 position: absolute;
 color: var(--axm-text-muted, #6c757d);
 font-size: 1.2em;
 z-index: 1;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 pointer-events: none;
}
.test-color-input {
 width: 40px;
 height: 35px;
 padding: 2px;
 border: 1px solid #ced4da;
 border-radius: 5px;
 cursor: pointer;
}
.test-number-input {
 width: 60px;
}
.test-select-input {
 width: 120px;
}
.test-section-header {
 font-size: 14px;
 font-weight: bold;
 color: #495057;
 margin: 15px 0 8px 0;
 padding-bottom: 5px;
 border-bottom: 1px solid #dee2e6;
}
.test-btn-group-custom {
 display: flex;
 gap: 5px;
 margin-bottom: 10px;
}
.test-btn-group-custom .btn {
 flex: 1;
 font-size: 12px;
 padding: 8px 5px;
}
.final-outputs-container,
.final-outputs-controls,
.final-outputs-preview {
 display: block !important;
 visibility: visible !important;
 opacity: 1 !important;
 overflow: visible !important;
}
.final-outputs-container {
 display: flex !important;
 flex-direction: column;
 gap: 20px;
}
.final-outputs-controls {
 padding: 20px;
 border: 1px solid #dee2e6;
 border-radius: 8px;
 background-color: #ffffff;
}
#layoutPreviewFrame {
 width: 100% !important;
 border: none;
 display: none;
 background-color: #fff;
}
.layout-preview-placeholder {
 color: #6c757d;
 font-size: 1.1rem;
 text-align: center;
 margin: auto;
 min-height: 200px;
 display: flex;
 align-items: center;
 justify-content: center;
}
.voice-engine-toggle {
 display: flex;
 justify-content: space-between;
 align-items: center;
 background-color: #f8f9fa;
 border: 1px solid #dee2e6;
 border-radius: 8px;
 padding: 0.75rem 1rem;
 margin-bottom: 1rem;
}
.voice-engine-toggle .form-check-label {
 font-weight: bold;
}
.voice-engine-toggle .form-switch .form-check-input {
 width: 3em;
 height: 1.5em;
 margin-left: 1em;
}
.canvas-container {
 margin: 0 auto;
 position: relative !important;
 width: auto !important;
 height: auto !important;
 max-width: 100%;
 overflow: hidden;
 box-sizing: border-box;
}
.upper-canvas,
.lower-canvas {
 max-width: 100% !important;
 height: auto !important;
}
.voice-selector-trigger {
 flex-grow: 1;
 display: flex;
 align-items: center;
 background-color: var(--axm-input-bg, #fff);
 border: 1px solid var(--axm-input-border, #ced4da);
 border-radius: 0.25rem;
 padding: 0.375rem 0.5rem;
 cursor: pointer;
 transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
 min-width: 0;
 color: var(--axm-text, #212529);
}
.voice-selector-trigger:hover {
 border-color: var(--axm-accent, #86b7fe);
}
.voice-selector-icon {
 margin-right: 0.5rem;
 font-size: 1.1em;
 display: none;
}
.accent-pills-container {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 padding: 8px;
 background-color: #f8f9fa;
 border-radius: 6px;
}
.pill {
 padding: 6px 14px;
 background-color: #e9ecef;
 border-radius: 16px;
 font-size: 13px;
 cursor: pointer;
 transition: background-color 0.2s;
 border: 1px solid transparent;
}
.pill:hover {
 background-color: #d8dde1;
}
.pill.active {
 background-color: #0d6efd;
 color: white;
 font-weight: 500;
}
.voice-list-container {
 max-height: 40vh;
 overflow-y: auto;
 border-top: 1px solid #dee2e6;
 margin-top: 1rem;
 padding-top: 0.5rem;
}
.voice-group-header {
 font-size: 0.8rem;
 font-weight: bold;
 color: #6c757d;
 text-transform: uppercase;
 padding: 1rem 0 0.5rem 0.25rem;
 border-bottom: 1px solid #eee;
 margin-bottom: 0.5rem;
}
.voice-item-wrapper {
 border-bottom: 1px solid #f1f3f5;
}
.voice-item {
 display: flex;
 align-items: flex-start;
 padding: 12px 8px;
 cursor: pointer;
 border-radius: 6px;
 transition: background-color 0.2s;
}
.voice-details-col {
 flex: 1;
 min-width: 0;
}
.voice-details-head {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 4px 8px;
}
.voice-description-inline {
 font-size: 12px;
 line-height: 1.4;
 color: #6c757d;
 margin-top: 6px;
 padding-right: 4px;
}
.voice-item:hover {
 background-color: #f8f9fa;
}
.voice-icon {
 font-size: 20px;
 margin-right: 12px;
 width: 24px;
 text-align: center;
}
.voice-details {
 flex-grow: 1;
}
.voice-name {
 font-weight: 500;
}
.voice-gender {
 font-size: 13px;
 color: #777;
 margin-left: 8px;
}
.voice-info-icon {
 font-size: 20px;
 color: #0d6efd;
 cursor: pointer;
 padding: 4px;
}
.voice-description {
 padding: 12px;
 background-color: #f8f9fa;
 font-size: 13px;
 line-height: 1.5;
 border-radius: 6px;
 margin: 0 8px 12px 8px;
 border: 1px solid #e9ecef;
}
.voice-config-row .input-group {
 flex-wrap: nowrap;
}
.voice-config-row .input-group input[type="text"] {
 min-width: 80px;
 flex-grow: 0;
 flex-shrink: 0;
 flex-basis: 120px;
}
.voice-selector-label {
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 font-size: 0.9rem;
 color: var(--axm-text, #212529);
}
.voice-config-row .input-group .btn {
 flex-shrink: 0;
}
/* Audio action buttons: prevent label wrapping in the footer row */
.axm-audio-actions > .btn {
 white-space: nowrap !important;
 padding-left: 0.85rem;
 padding-right: 0.85rem;
 font-size: 0.95rem;
}
@media (min-width: 768px) {
 .axm-audio-actions > .btn {
 flex: 1 1 0;
 }
 .axm-audio-actions #generateAudioBtn {
 flex: 1.2 1 0;
 }
}
.current-audio-player {
 background-color: #f8f9fa;
 border: 1px solid #dee2e6;
 border-radius: 8px;
 padding: 16px;
}
.current-audio-player .label {
 font-size: 13px;
 font-weight: 600;
 color: #6c757d;
 text-transform: uppercase;
 margin-bottom: 12px;
}
.audio-item {
 display: flex;
 align-items: center;
 justify-content: space-between;
 flex-wrap: nowrap;
}
.audio-item .filename {
 font-weight: 500;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 margin-right: 1rem;
 flex-shrink: 1;
}
.audio-item .controls {
 display: flex;
 align-items: center;
 gap: 10px;
 flex-shrink: 0;
}
.history-section {
 margin-top: 1.5rem;
}
.feedback-toast {
 position: fixed;
 bottom: 24px;
 left: 50%;
 z-index: 10000;
 padding: 12px 20px;
 border-radius: 8px;
 color: #e6edf3;
 font-weight: 500;
 border: 1px solid #3d4450;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
 transform: translate(-50%, 80px);
 transition: transform 0.3s ease;
}
.feedback-toast.show {
 transform: translate(-50%, 0);
}
.feedback-toast.success {
 background-color: #2A3441;
 border-color: #3d4450;
}
.feedback-toast.error {
 background-color: #dc3545;
}
.feedback-toast.info {
 background-color: #2A3441;
 border-color: #3d4450;
}
/* Heads-up / patience ??????? not a failure (distinct from error red) */
.feedback-toast.warning {
 background: linear-gradient(180deg, #fff9e6 0%, #fff3cd 100%);
 color: #664d03;
 border: 1px solid #e6d69a;
 font-weight: 500;
 box-shadow: 0 4px 14px rgba(102, 77, 3, 0.12);
}
.feedback-toast.danger {
 background-color: #dc3545;
}
.info-icon {
 cursor: help;
 color: #6c757d;
 transition: color 0.2s ease-in-out;
}
.info-icon:hover {
 color: #0d6efd;
}
.popover {
 max-width: 320px;
 border-radius: 8px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 z-index: 1060;
}
.full-screen-modal .modal-body {
 overflow: auto;
 background-color: #f0f0f0;
 text-align: center;
}
#imageLibraryModal .server-image-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
 gap: 1rem;
}
#imageLibraryModal .server-image-thumb {
 width: 100%;
 height: auto;
 aspect-ratio: 1 / 1;
 object-fit: cover;
 border-radius: 8px;
 transition: transform 0.2s ease-in-out;
 cursor: pointer;
}
#imageLibraryModal .server-image-thumb:hover {
 transform: scale(1.05);
}
/* --- VIDEO HISTORY PANEL --- */
#videoHistoryContainer {
 display: flex;
 flex-direction: column;
 position: fixed;
 top: 0;
 right: -600px;
 width: 550px;
 max-width: 90vw;
 height: 100vh;
 background-color: var(--axm-modal-bg, #ffffff);
 color: var(--axm-text, #212529);
 border-left: 1px solid var(--axm-border, #dee2e6);
 box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
 z-index: 1056;
 transition: right 0.4s ease-in-out;
}
#videoHistoryContainer.is-visible {
 right: 0;
}
.video-history-header {
 padding: 1rem;
 border-bottom: 1px solid var(--axm-border, #dee2e6);
 display: flex;
 justify-content: space-between;
 align-items: center;
 background-color: var(--axm-surface-2, #f8f9fa);
 color: var(--axm-text, inherit);
 flex-shrink: 0;
}
.video-history-header h5 {
 font-size: 1.1rem;
 margin-bottom: 0;
 color: var(--axm-text, inherit);
}
#videoHistoryList {
 list-style: none;
 padding: 0;
 margin: 0;
 overflow-y: auto;
 flex-grow: 1;
 background: var(--axm-modal-bg, #ffffff);
}
.video-history-item {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 0.75rem 1.25rem;
 border-bottom: 1px solid var(--axm-border, #e9ecef);
 gap: 10px;
 color: var(--axm-text, inherit);
}
.video-history-item:last-child {
 border-bottom: none;
}
.video-history-item:hover {
 background-color: var(--axm-surface-2, #f8f9fa);
}
.video-history-item .video-info,
.video-info {
 display: flex;
 flex-direction: column;
 gap: 0.3rem;
 overflow: hidden;
 margin-right: 1rem;
}
.video-history-item .video-name,
.video-name {
 font-weight: 600;
 color: var(--axm-text, #495057);
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 font-size: 0.9rem;
}
.video-history-item .video-type {
 font-size: 0.75em;
 padding: 0.2em 0.5em;
 align-self: flex-start;
}
.video-history-item .btn i,
.video-history-item a i {
 pointer-events: none;
}
.video-metadata {
 display: flex;
 align-items: center;
 font-size: 0.8rem;
 color: var(--axm-text-muted, #6c757d);
 margin-top: 0.25rem;
}
.video-timestamp {
 margin-left: 0.75rem;
 padding-left: 0.75rem;
 border-left: 1px solid var(--axm-border, #e0e0e0);
}
/* --- MEDIA MODAL (VIDEO/AUDIO PREVIEW) --- */
/* Above #videoHistoryContainer (z-index 1056) so View Video is visible */
#mediaModal {
 --bs-modal-bg: transparent;
 --bs-modal-border-width: 0;
 --bs-modal-box-shadow: none;
 z-index: 1080 !important;
}
#mediaModal + .modal-backdrop,
.modal-backdrop.axm-media-backdrop {
 z-index: 1075 !important;
}
#mediaModal .modal-dialog {
 width: auto;
 max-width: 95vw;
 margin: auto;
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: calc(100% - 3.5rem);
}
#mediaModal .modal-content {
 background: transparent;
 border: none;
 box-shadow: none;
 display: flex;
 align-items: center;
 justify-content: center;
}
#mediaModal .modal-body {
 padding: 0;
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
 text-align: center;
 width: 100%;
}
.media-container {
 position: relative;
 max-height: 80vh;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 border-radius: 8px;
 overflow: hidden;
 background-color: #000;
}
#mediaModal video {
 display: block;
 width: 800px;
 max-width: 90vw;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
#mediaModal audio {
 display: block;
 width: 100%;
 max-width: none;
 margin: 0;
 background-color: #fff;
 padding: 1rem;
 border-radius: 8px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
#mediaModal video::-webkit-media-controls-picture-in-picture-button {
 display: none;
}
.media-container .btn-close {
 position: absolute;
 top: 10px;
 right: 10px;
 z-index: 1060;
 background-color: rgba(255, 255, 255, 0.8);
 border-radius: 50%;
 padding: 0.5em;
 --bs-btn-close-color: #000;
 --bs-btn-close-opacity: 1;
 --bs-btn-close-hover-opacity: 1;
}
/* My Projects modal close affordance: larger hit area + guaranteed click target */
#projectsModal .modal-header .btn-close {
 position: relative;
 z-index: 5;
 padding: 0.75rem;
}
/* Audio Specific Styles */
#mediaModal.is-audio .modal-content {
 background-color: #fff;
 border-radius: 12px;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
 max-width: none;
 width: 100%;
 padding: 2rem;
}
#mediaModal.is-audio .media-container {
 max-height: unset;
 width: 100%;
 padding: 0;
 background-color: transparent;
}
#mediaModal.is-audio .media-container .btn-close {
 background-color: rgba(0, 0, 0, 0.6);
 --bs-btn-close-color: #fff;
 --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}
/* --- VIDEO MODE UI --- */
.video-mode-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 background-color: #2c3e50;
 color: #ffffff;
 padding: 0.75rem 1.5rem;
 border-radius: 0.5rem;
 margin-bottom: 1rem;
}
.video-mode-header .header-info {
 display: flex;
 align-items: center;
}
.video-mode-header .header-info i {
 color: #ffffff;
}
.video-mode-header .header-text h5 {
 color: #ffffff;
 font-size: 1.1rem;
 font-weight: 600;
 margin-bottom: 0;
 line-height: 1.2;
}
.video-mode-header .header-text small {
 color: #bdc3c7 !important;
 font-size: 0.9rem;
}
.video-mode-header .header-actions {
 display: flex;
 align-items: center;
}
.video-mode-header .header-actions .btn-outline-secondary,
#video-mode-exit {
 color: #ffffff;
 border-color: rgba(255, 255, 255, 0.5);
}
.video-mode-header .header-actions .btn-outline-secondary:hover,
#video-mode-exit:hover {
 background-color: rgba(255, 255, 255, 0.1);
 border-color: #ffffff;
 color: #2c3e50;
}
.test-canvas-wrapper.video-mode {
 border: 3px dashed #3498db;
 box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
 padding: 3px;
 background-color: #f8f9fa;
}
.output-format-display {
 margin-left: 0.75rem;
 padding-left: 0.75rem;
 border-left: 1px solid #ccc;
 font-weight: 500;
 color: #343a40;
}
/* --- VIDEO FORMAT EXPLORER MODAL --- */
#socialVideoModal .modal-dialog {
 max-width: 90%;
}
#socialVideoModal .modal-body {
 padding: 1.5rem;
}
#format-category-sidebar {
 position: sticky;
 top: 0;
 max-height: 70vh;
 overflow-y: auto;
 border-right: 1px solid var(--axm-border, #dee2e6);
 padding-right: 1rem;
 scrollbar-color: var(--axm-scrollbar, #c5cdd6) transparent;
 scrollbar-width: thin;
}
#format-category-sidebar::-webkit-scrollbar {
 width: 8px;
}
#format-category-sidebar::-webkit-scrollbar-track {
 background: transparent;
}
#format-category-sidebar::-webkit-scrollbar-thumb {
 background: var(--axm-scrollbar, #c5cdd6);
 border-radius: 8px;
}
#format-category-sidebar .list-group-item {
 border: none;
 font-weight: 500;
 color: var(--axm-text-muted, #495057);
 background: transparent;
 padding: 0.75rem 1rem;
 border-radius: 0.375rem;
}
#format-category-sidebar .list-group-item:hover {
 background-color: var(--axm-surface-2, #f8f9fa);
 color: var(--axm-text, #000);
}
#format-category-sidebar .list-group-item.active {
 background-color: var(--axm-accent, #0d6efd);
 color: #fff;
 font-weight: bold;
}
#format-search-input {
 height: 48px;
 font-size: 1rem;
}
.format-card {
 transition: all 0.2s ease-in-out;
 border: 1px solid var(--axm-border, #dee2e6);
 background-color: var(--axm-surface, #fff);
}
.format-card:hover {
 transform: translateY(-5px);
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
 border-color: var(--axm-accent, #0d6efd);
}
.format-card .card-body {
 padding: 1rem;
}
.format-card .card-title {
 font-size: 0.9rem;
 font-weight: 600;
 margin-bottom: 0.25rem;
 min-height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--axm-text, inherit);
}
.format-card .card-text {
 font-size: 0.8rem;
 color: var(--axm-text-muted, #6c757d);
 margin-bottom: 0;
}
.format-card .format-icon-wrapper {
 height: 48px;
 width: 48px;
 display: flex;
 align-items: center;
 justify-content: center;
}
.format-card .fa-3x {
 font-size: 2.5em;
}
/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
 #mediaModal video {
 width: 95vw;
 }
}
@media (max-width: 767.98px) {
 html {
 font-size: 14px;
 }
 .navbar-brand span,
 .navbar-brand i {
 font-size: 1rem;
 }
 .card {
 padding: 1rem !important;
 }
}
/* ======================================================================== */
/* --- FIX FOR VIDEO MODE CANVAS SIZING --- */
/* ======================================================================== */
.test-editor-canvas-area.video-mode-active {
 min-height: unset;
 display: flex;
 justify-content: center;
 align-items: center;
 padding: 2rem;
}
.test-editor-canvas-area.video-mode-active #aximate-canvas {
 width: auto !important;
 height: auto !important;
 flex-shrink: 0;
}
/* ========================================================================
 TEMPLATE LIBRARY FIXES
 ======================================================================== */
.template-thumbnail img.img-error {
 background-color: #e9ecef;
 color: #6c757d;
 text-align: center;
 font-size: 12px;
 line-height: 1.2;
 padding: 10px;
 display: flex;
 align-items: center;
 justify-content: center;
 text-indent: 100%;
 white-space: nowrap;
 overflow: hidden;
}
/* ========================================================================
 MODERN SAAS TOOLBAR STYLES
 ======================================================================== */
.project-toolbar {
 background-color: #ffffff;
 border-bottom: 1px solid #e0e0e0;
 padding: 0 1.5rem;
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 64px;
 position: sticky;
 top: 0;
 z-index: 1000;
}
.nav-back-link {
 text-decoration: none;
 color: #6c757d;
 font-weight: 500;
 font-size: 0.9rem;
 display: flex;
 align-items: center;
 gap: 0.5rem;
 transition: color 0.2s;
 cursor: pointer;
}
.nav-back-link:hover {
 color: #212529;
}
.toolbar-divider {
 width: 1px;
 height: 24px;
 background-color: #dee2e6;
 margin: 0 1.5rem;
}
.project-name-input {
 border: 1px solid transparent;
 font-size: 1.1rem;
 font-weight: 700;
 color: #212529;
 background: transparent;
 padding: 0.25rem 0.5rem;
 border-radius: 4px;
 transition: all 0.2s;
 width: 300px;
}
.project-name-input:hover {
 background-color: #f8f9fa;
 border-color: #dee2e6;
}
.project-name-input:focus {
 outline: none;
 background-color: #fff;
 border-color: #86b7fe;
 box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.btn-toolbar-secondary {
 color: #495057;
 border: 1px solid #dee2e6;
 background: #fff;
 font-weight: 500;
 text-decoration: none;
 display: inline-flex;
 align-items: center;
 padding: 0.375rem 0.75rem;
 border-radius: 0.375rem;
 font-size: 0.9rem;
}
.btn-toolbar-secondary:hover {
 background-color: #f8f9fa;
 border-color: #ccedff;
 color: #0d6efd;
}
.btn-save {
 background-color: #198754;
 border-color: #198754;
 color: white;
 font-weight: 600;
 padding-left: 1.5rem;
 padding-right: 1.5rem;
}
.btn-save:hover {
 background-color: #157347;
 border-color: #146c43;
}
.btn-settings {
 color: #6c757d;
 border: none;
 background: transparent;
 font-size: 1.1rem;
 padding: 0.5rem;
 border-radius: 50%;
 width: 40px;
 height: 40px;
 display: flex;
 align-items: center;
 justify-content: center;
}
.btn-settings:hover, .btn-settings:focus {
 color: #212529;
 background-color: #f1f3f5;
}
.dropdown-item.text-danger:hover {
 background-color: #dc35451a;
 color: #dc3545;
}
/* ========================================================================
 CUSTOM IMAGE GENERATOR MODAL STYLES
 ======================================================================== */
#customImageModal {
 background-color: transparent !important;
}
#customImageModal .modal-content {
 background-color: #ffffff !important;
 border: none;
 box-shadow: 0 10px 30px rgba(0,0,0,0.5);
 border-radius: 12px;
}
#customImageModal .popup-header {
 background-color: #f8f9fa;
 padding: 15px 20px;
 border-bottom: 1px solid #dee2e6;
 border-radius: 12px 12px 0 0;
 display: flex;
 align-items: center;
 justify-content: space-between;
}
.header-left {
 display: flex;
 align-items: center;
 gap: 10px;
}
.header-logo {
 width: 28px;
 height: 28px;
 object-fit: contain;
}
.badge-version {
 font-size: 0.75rem;
 background: #e9ecef;
 padding: 2px 8px;
 border-radius: 10px;
 color: #6c757d;
 border: 1px solid #dee2e6;
}
#customImageModal .popup-body {
 padding: 20px;
 background-color: #ffffff;
 max-height: 70vh;
 overflow-y: auto;
}
#customImageModal .modal-footer {
 background-color: #f8f9fa;
 border-top: 1px solid #dee2e6;
 border-radius: 0 0 12px 12px;
 padding: 15px 20px;
}
#customImageModal label {
 font-weight: 600;
 font-size: 0.85rem;
 color: #6c757d;
 text-transform: uppercase;
 margin-bottom: 5px;
 display: block;
}
#customImageModal .form-control,
#customImageModal .form-select {
 font-size: 0.95rem;
 padding: 10px;
}
.file-upload-compact {
 border: 1px dashed #ced4da;
 padding: 12px;
 border-radius: 8px;
 text-align: center;
 cursor: pointer;
 background: #f8f9fa;
 transition: all 0.2s;
}
.file-upload-compact:hover {
 background: #e9ecef;
 border-color: #adb5bd;
}
.file-status-active {
 color: #198754;
 font-weight: 600;
}
.grid-3 {
 display: grid;
 grid-template-columns: 1fr 1fr 1fr;
 gap: 15px;
 margin-bottom: 15px;
}
.grid-2 {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 15px;
 margin-bottom: 15px;
}
@media (max-width: 768px) {
 .grid-3, .grid-2 {
 grid-template-columns: 1fr;
 }
}
/* Atmosphere picker: no dimming layer; keep above canvas/side UI */
#atmosphereModal.modal {
 z-index: 1085;
}
/* Atmosphere overlay picker ��‚��€� list layout */
#atmosphereModal .axm-atmo-modal-dialog {
 --bs-modal-width: 85vw;
 width: 85vw;
 max-width: 85vw;
 margin-left: auto;
 margin-right: auto;
}
#atmosphereModal .axm-atmo-modal-content {
 display: flex;
 flex-direction: column;
 align-items: stretch;
 justify-content: flex-start;
 min-height: 75vh;
 max-height: 80vh;
 height: 75vh;
 background: var(--axm-surface, #1a2332);
 border: 1px solid var(--axm-border, #30363d);
 color: var(--axm-text, #e6edf3);
 overflow: hidden;
}
#atmosphereModal .axm-atmo-modal-header {
 flex: 0 0 auto;
 border-bottom: 1px solid var(--axm-border, #30363d);
 padding: 0.85rem 1.1rem;
}
#atmosphereModal .axm-atmo-modal-body {
 flex: 1 1 auto;
 min-height: 0;
 padding: 0;
 display: flex;
 flex-direction: column;
 align-items: stretch;
 justify-content: flex-start;
 overflow: hidden;
}
#atmosphereModal .axm-atmo-layout {
 display: flex;
 flex-direction: row;
 align-items: stretch;
 justify-content: flex-start;
 width: 100%;
 height: 100%;
 min-height: 0;
 overflow: hidden;
}
.axm-atmo-sidebar-col {
 flex: 0 0 300px;
 width: 300px;
 min-width: 300px;
 max-width: 300px;
 min-height: 0;
 height: 100%;
 display: flex;
 flex-direction: column;
 justify-content: flex-start;
 align-items: stretch;
 gap: 0.65rem;
 padding: 0.85rem 0.85rem 0.85rem 0.9rem;
 border-right: 1px solid var(--axm-border, #30363d);
 overflow: hidden;
 box-sizing: border-box;
}
.axm-atmo-sidebar-body {
 flex: 1 1 auto;
 min-height: 0;
 display: grid;
 grid-template-rows: minmax(0, 1fr) auto;
 gap: 0.65rem;
 overflow: hidden;
}
.axm-atmo-categories-top {
 grid-row: 1;
 min-height: 0;
 overflow-y: auto;
}
.axm-atmo-sidebar-preview {
 grid-row: 2;
 display: none;
 flex-shrink: 0;
}
.axm-atmo-sidebar-preview.is-active {
 display: block;
}
.axm-atmo-sidebar-preview .axm-atmo-preview-wrap {
 width: 100%;
 height: 140px;
}
.axm-atmo-search {
 flex: 0 0 auto;
 font-size: 0.85rem;
 background: var(--axm-input-bg, #161b22);
 border-color: var(--axm-input-border, #30363d);
 color: var(--axm-text, #e6edf3);
}
.axm-atmo-categories {
 margin: 0;
 padding: 2px;
 border-radius: 8px;
 display: flex;
 flex-direction: column;
 gap: 2px;
}
.axm-atmo-preview-wrap {
 position: relative;
 width: 100%;
 height: 140px;
 flex: 0 0 140px;
 flex-shrink: 0;
 border-radius: 8px;
 border: 1px solid var(--axm-border, #30363d);
 background: #0d1117;
 overflow: hidden;
}
.axm-atmo-preview-stage {
 position: relative;
 width: 100%;
 height: 100%;
 display: flex;
 align-items: center;
 justify-content: center;
 overflow: hidden;
 background: #0d1117;
}
.axm-atmo-preview-placeholder {
 position: absolute;
 inset: 0;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 0.35rem;
 padding: 0.5rem;
 text-align: center;
 color: var(--axm-text-muted, #8b949e);
 font-size: 0.72rem;
 z-index: 1;
}
.axm-atmo-preview-placeholder i {
 font-size: 1.1rem;
 opacity: 0.55;
}
.axm-atmo-preview-video {
 width: 100%;
 height: 100%;
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
 object-position: center center;
 display: none;
 background: transparent;
 pointer-events: none;
}
.axm-atmo-preview-video.is-active {
 display: block;
 position: absolute;
 inset: 0;
 z-index: 2;
}
.axm-atmo-preview-placeholder.is-hidden {
 display: none;
}
.axm-atmo-categories .list-group-item {
 border: 1px solid transparent;
 border-radius: 8px;
 margin: 0;
 padding: 0.5rem 0.65rem;
 font-size: 0.84rem;
 font-weight: 500;
 background: transparent;
 color: var(--axm-text-muted, #9ca3af);
 text-align: left;
}
.axm-atmo-categories .list-group-item:hover {
 background: rgba(255, 255, 255, 0.04);
 color: var(--axm-text, #e6edf3);
}
.axm-atmo-categories .list-group-item.active {
 background: transparent;
 color: var(--axm-text, #e6edf3);
 border-color: rgba(255, 255, 255, 0.55);
 font-weight: 600;
 box-shadow: none;
}
#atmosphereModal {
 --axm-atmo-apply-bg: #0d6efd;
 --axm-atmo-apply-border: #0d6efd;
 --axm-atmo-apply-fg: #ffffff;
 --axm-atmo-apply-hover-bg: #0b5ed7;
 --axm-atmo-apply-hover-border: #0a58ca;
}
#atmosphereModal .axm-atmo-apply-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.35rem;
 width: 100%;
 margin: 0;
 padding: 0.5rem 0.75rem;
 border: 1px solid var(--axm-atmo-apply-border);
 border-radius: 8px;
 font-family: inherit;
 font-weight: 600;
 font-size: 0.85rem;
 line-height: 1.2;
 text-align: center;
 cursor: pointer;
 appearance: none;
 -webkit-appearance: none;
 background: var(--axm-atmo-apply-bg);
 background-color: var(--axm-atmo-apply-bg);
 border-color: var(--axm-atmo-apply-border);
 color: var(--axm-atmo-apply-fg);
 box-shadow: none;
 transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
#atmosphereModal .axm-atmo-apply-btn i {
 color: var(--axm-atmo-apply-fg);
}
#atmosphereModal .axm-atmo-apply-btn:hover:not(:disabled),
#atmosphereModal .axm-atmo-apply-btn:focus-visible:not(:disabled) {
 background: var(--axm-atmo-apply-hover-bg);
 background-color: var(--axm-atmo-apply-hover-bg);
 border-color: var(--axm-atmo-apply-hover-border);
 color: var(--axm-atmo-apply-fg);
 outline: none;
}
#atmosphereModal .axm-atmo-apply-btn:disabled {
 background: var(--axm-atmo-apply-bg);
 background-color: var(--axm-atmo-apply-bg);
 border-color: var(--axm-atmo-apply-border);
 color: var(--axm-atmo-apply-fg);
 opacity: 0.5;
 cursor: not-allowed;
}
.axm-atmo-center-preview,
.axm-atmo-preview-pane {
 display: none !important;
}
.axm-atmo-list-col {
 position: relative;
 flex: 1 1 auto;
 min-width: 0;
 min-height: 0;
 height: 100%;
 display: flex;
 flex-direction: column;
 align-items: stretch;
 justify-content: flex-start;
 padding: 0.85rem 0.85rem 0.85rem 0.65rem;
 overflow: hidden;
 box-sizing: border-box;
}
.axm-atmo-list {
 display: flex;
 flex-direction: column;
 align-content: flex-start;
 justify-content: flex-start;
 gap: 2px;
 flex: 1 1 auto;
 min-height: 0;
 overflow-y: auto;
 padding-right: 4px;
}
.axm-atmo-row {
 display: flex;
 align-items: center;
 gap: 0.65rem;
 width: 100%;
 padding: 0.5rem 0.7rem;
 border: 1px solid transparent;
 border-radius: 8px;
 background: transparent;
 color: inherit;
 text-align: left;
 cursor: pointer;
 transition: background 0.15s ease, border-color 0.15s ease;
}
.axm-atmo-row:hover {
 background: rgba(255, 255, 255, 0.04);
 border-color: rgba(255, 255, 255, 0.08);
}
.axm-atmo-row.is-active {
 background: rgba(56, 139, 253, 0.12);
 border-color: rgba(56, 139, 253, 0.45);
}
.axm-atmo-row-icon {
 flex: 0 0 26px;
 width: 26px;
 height: 26px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 border-radius: 6px;
 background: rgba(255, 255, 255, 0.06);
 color: #8b949e;
 font-size: 0.72rem;
}
.axm-atmo-row.is-active .axm-atmo-row-icon {
 color: #58a6ff;
}
.axm-atmo-row-name {
 flex: 1 1 auto;
 min-width: 0;
 font-size: 0.86rem;
 font-weight: 500;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}
.axm-atmo-row-cat {
 flex: 0 0 auto;
 font-size: 0.62rem;
 font-weight: 700;
 text-transform: uppercase;
 color: #6e7681;
 white-space: nowrap;
}
.axm-atmo-row--clear .axm-atmo-row-icon {
 color: #f85149;
}
html[data-bs-theme="light"] #atmosphereModal .axm-atmo-modal-content,
html[data-theme="light"] #atmosphereModal .axm-atmo-modal-content {
 background: #fff;
 color: #1f2937;
}
html[data-bs-theme="light"] .axm-atmo-search,
html[data-theme="light"] .axm-atmo-search {
 background: #fff;
 border-color: #d1d5db;
 color: #374151;
}
html[data-bs-theme="light"] .axm-atmo-categories .list-group-item,
html[data-theme="light"] .axm-atmo-categories .list-group-item {
 color: #6b7280;
}
html[data-bs-theme="light"] .axm-atmo-categories .list-group-item.active,
html[data-theme="light"] .axm-atmo-categories .list-group-item.active {
 color: #111827;
 border-color: #9ca3af;
}
html[data-bs-theme="light"] .axm-atmo-row:hover,
html[data-theme="light"] .axm-atmo-row:hover {
 background: #f3f4f6;
 border-color: #e5e7eb;
}
html[data-bs-theme="light"] .axm-atmo-preview-wrap,
html[data-theme="light"] .axm-atmo-preview-wrap {
 background: #f8f9fa;
 border-color: #e5e7eb;
}
/* ========================================================================
 MODAL TRANSPARENCY FIX
 ======================================================================== */
.modal-backdrop {
 background-color: #000 !important;
 opacity: 0.5 !important;
}
.modal-backdrop.show {
 opacity: 0.5 !important;
}
.modal {
 background-color: transparent !important;
 background: none !important;
}
/* ========================================================================
 FINAL PROFESSIONAL HEADER - MODERN & INTUITIVE
 ======================================================================== */
/* Enhanced navbar with better shadow and spacing */
.navbar.navbar-light.bg-white {
 box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.08);
 transition: box-shadow 0.3s ease;
 padding-top: 0.85rem;
 padding-bottom: 0.85rem;
 background: #ffffff !important;
 overflow: visible !important;
 z-index: 1030;
}
.navbar .container-fluid {
 overflow: visible !important;
}
/* Combined wordmark (icon + name in one image) */
#customerLogoPreview {
 height:24px;
 width: auto;
 max-width: min(300px, 52vw);
 object-fit: contain;
}
/* CURRENT PROJECT BADGE - More prominent */
.navbar .d-none.d-md-block.me-3 {
 padding: 0.65rem 1.25rem;
 background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
 border-radius: 10px;
 border: 1.5px solid #cce5ff;
 box-shadow: 0 2px 4px rgba(13, 110, 253, 0.08);
}
.navbar .d-none.d-md-block.me-3 small {
 font-weight: 700 !important;
 color: #0d6efd !important;
 font-size: 0.65rem !important;
}
.navbar .d-none.d-md-block.me-3 .fw-bold {
 font-size: 1.05rem !important;
 color: #1a1a1a !important;
 font-weight: 700 !important;
}
.navbar .d-none.d-md-block.me-3 i {
 color: #0d6efd;
 font-size: 0.95rem;
}
/* Vertical divider - softer */
.navbar .vr {
 opacity: 0.2;
 width: 1px;
 background-color: #cbd5e0;
 margin: 0 1rem;
}
/* Professional button styling with better spacing */
.navbar .btn:not(.axm-actions-btn) {
 font-weight: 600;
 transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
 border-width: 1.5px;
 padding: 0.6rem 1.5rem;
 font-size: 0.9rem;
 border-radius: 8px;
}
.navbar .btn:not(.axm-actions-btn):hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.navbar .btn:not(.axm-actions-btn):active {
 transform: translateY(0);
 box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* New Project button - cleaner outline */
.navbar .btn-outline-primary {
 color: #0d6efd;
 border-color: #0d6efd;
 background: white;
}
.navbar .btn-outline-primary:hover {
 background: #0d6efd;
 border-color: #0d6efd;
 color: white;
 box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}
/* Save button - premium gradient */
.navbar .btn-success {
 background: linear-gradient(135deg, #10b981 0%, #059669 100%);
 border: none;
 font-weight: 700;
 box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.navbar .btn-success:hover {
 background: linear-gradient(135deg, #059669 0%, #047857 100%);
 box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
/* Delete button - modern red */
.navbar .btn-danger {
 background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
 border: none;
 font-weight: 600;
 box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}
.navbar .btn-danger:hover {
 background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
 box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
/* Nav links - better hover state */
.navbar .nav-link {
 font-weight: 500;
 color: #4b5563;
 transition: all 0.2s ease;
 padding: 0.6rem 1.25rem;
 border-radius: 8px;
 font-size: 0.95rem;
}
.navbar .nav-link:hover {
 color: #0d6efd;
 background-color: #f8fafc;
 transform: translateY(-1px);
}
/* Better spacing for navbar items */
.navbar-nav {
 gap: 0.75rem;
}
/* Icon styling in buttons - better alignment */
.navbar .btn i {
 margin-right: 0.5rem;
 font-size: 0.9em;
 vertical-align: middle;
}
/* Smooth collapse animation */
.navbar-collapse {
 transition: all 0.3s ease-in-out;
}
/* Container spacing */
.navbar .container-fluid {
 padding-left: 2rem;
 padding-right: 2rem;
}
/* Responsive improvements */
@media (max-width: 991.98px) {
 .navbar-nav {
 margin-top: 1.5rem;
 padding-top: 1.5rem;
 border-top: 2px solid #f1f5f9;
 }
 
 .navbar .btn {
 width: 100%;
 justify-content: center;
 }
 
 .navbar .container-fluid {
 padding-left: 1rem;
 padding-right: 1rem;
 }
}
/* Low-risk header improvements */
#currentProjectName:hover {
 background-color: #f8f9fa;
 border: 1px dashed #dee2e6;
}
#currentProjectName:focus {
 background-color: #fff;
 border: 1px solid #86b7fe;
 box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}
#saveStatus {
 transition: opacity 0.3s ease;
}
#saveStatus.saving {
 color: #ffc107 !important;
}
.navbar .btn-sm {
 padding: 0.5rem 1.2rem;
 font-size: 0.9rem;
}
.navbar .dropdown-menu {
 border-radius: 8px;
 box-shadow: 0 4px 12px rgba(0,0,0,0.1);
 border: 1px solid #e9ecef;
}
/* ========================================================================
 VISUAL EFFECTS ENGINE STYLES (CLEANED)
 ======================================================================== */
/* 1. Critical Container Fixes */
.canvas-container {
 overflow: hidden !important;
 position: relative !important;
}
/* 2. Scanline Overlay Effect */
.canvas-container.anim-scanline::after {
 content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
 background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
 background-size: 100% 4px;
 pointer-events: none; z-index: 999;
}
/* 3. Visual Effects UI */
.effect-btn {
 font-size: 0.8rem;
 text-align: left;
 display: flex;
 align-items: center;
 gap: 6px;
 transition: all 0.2s ease;
}
.effect-btn:hover { transform: translateX(2px); }
.effect-btn.active { background-color: #6366f1; color: white; border-color: #6366f1; }
.effect-label {
 font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
 color: #6c757d; margin-top: 10px; margin-bottom: 5px; display: block;
}
/* ===================================
 AXIMATE CAMERA MOTION ANIMATIONS
 =================================== */
/* 1. BREATHE */
@keyframes breathe {
 0%, 100% { transform: scale(1); }
 50% { transform: scale(1.05); }
}
.anim-breathe { animation: breathe 4s ease-in-out infinite; }
/* 2. KEN BURNS (Looping) */
@keyframes kenburns {
 0% { transform: scale(1) translate(0, 0); }
 100% { transform: scale(1.25) translate(-2%, -2%); }
}
.anim-kenburns { animation: kenburns 20s ease-in-out infinite alternate; }
/* 3. HEARTBEAT */
@keyframes heartbeat {
 0%, 100% { transform: scale(1); }
 15% { transform: scale(1.05); }
}
.anim-heartbeat { animation: heartbeat 1s ease-in-out infinite; }
/* 4. DRIFT */
@keyframes drift {
 0%, 100% { transform: translate(0, 0) rotate(0deg); }
 50% { transform: translate(1%, 1%) rotate(0.5deg); }
}
.anim-drift { animation: drift 30s ease-in-out infinite alternate; }
/* ========================================
 ACTIVE EFFECT BUTTON STYLING
 Blue highlight for active animations
 Added: 2026-01-03
======================================== */
.effect-btn.active-effect,
[id^="btn-"].active-effect {
 background-color: #007bff !important;
 color: white !important;
 border-color: #0056b3 !important;
}
/* Ensure hover doesn't override active state */
.effect-btn.active-effect:hover,
[id^="btn-"].active-effect:hover {
 background-color: #0056b3 !important;
 border-color: #004085 !important;
}
/* Smooth transition for button state changes */
.effect-btn,
[id^="btn-"] {
 transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Hides the specific textarea shown in your screenshot */
#template-text-input,
textarea#template-text-input,
label[for="template-text-input"] {
 display: none !important;
}
/* Hides the container div immediately surrounding it to prevent empty gaps */
/* (Works in most modern browsers) */
div:has(> #template-text-input) {
 display: none !important;
}
#current-audio-player-wrapper .card-header .d-flex.align-items-center.gap-2.bg-white.border.rounded.px-2{
 padding-right: 0!important;
}
#current-audio-player-wrapper .card-header #dashboardDspSelect{
 padding-right:35px!important
}
/* ========================================================================
 IMAGE EDITOR PANEL SPECIFIC STYLES (NEW DESIGN)
 ======================================================================== */
#sidebar-image-panel {
 border: 1px solid #e9ecef;
 box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* 1. THIN SLIDER TRACK */
#sidebar-image-panel input[type=range] {
 -webkit-appearance: none;
 width: 100%;
 height: 2px; /* Super thin line */
 background: #adb5bd;
 border-radius: 5px;
 margin-top: 10px;
 margin-bottom: 10px;
 padding: 0; /* Override Bootstrap padding */
}
/* 2. CIRCULAR SLIDER THUMB */
#sidebar-image-panel input[type=range]::-webkit-slider-thumb {
 -webkit-appearance: none;
 height: 14px;
 width: 14px;
 border-radius: 50%;
 background: #555; /* Dark grey thumb */
 border: 2px solid #fff;
 box-shadow: 0 1px 3px rgba(0,0,0,0.3);
 cursor: pointer;
 margin-top: -6px; /* Vertically center on the 2px line */
}
/* 3. GREY INPUT LABELS (X, Y, W, H) */
#sidebar-image-panel .input-group-text {
 background-color: #f1f3f5 !important; /* Light Grey */
 color: #495057 !important;
 font-size: 11px !important;
 font-weight: 600 !important;
 border: 1px solid #ced4da !important;
 border-right: none !important; /* Merge visually with input */
 padding: 0 !important;
 width: 2
<!-- ============================================================ -->
<!-- IMAGE COMPOSITION TOOLBAR ??????????? Scoped styles, no Bootstrap fights -->
<!-- ============================================================ -->
<style>
.ic-toolbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 10px 14px;
 background: #f8f9fa;
 border: 1px solid #e2e6ea;
 border-radius: 10px;
 margin-bottom: 12px;
 gap: 8px;
}
.ic-toolbar-label {
 font-size: 0.68rem;
 font-weight: 700;
 text-transform: uppercase;
 color: #9ca3af;
 white-space: nowrap;
 flex-shrink: 0;
}
.ic-toolbar-label i { margin-right: 5px; }
.ic-controls {
 display: flex;
 align-items: center;
 gap: 6px;
 flex-wrap: nowrap;
}
/* Universal button reset ??????????? every action button is exactly 34px tall */
.ic-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 height: 34px;
 padding: 0 14px;
 font-size: 0.8rem;
 font-weight: 600;
 border-radius: 7px;
 border: 1.5px solid transparent;
 cursor: pointer;
 white-space: nowrap;
 transition: all 0.15s ease;
 line-height: 1;
 gap: 6px;
 text-decoration: none;
}
.ic-btn i { font-size: 0.72rem; }
/* Variants */
.ic-btn-primary {
 background: #2563eb;
 border-color: #2563eb;
 color: #fff;
}
.ic-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.ic-btn-secondary {
 background: var(--axm-surface, #fff);
 border-color: var(--axm-border-strong, #d1d5db);
 color: var(--axm-text, #374151);
}
.ic-btn-secondary:hover {
 background: var(--axm-surface-2, #f3f4f6);
 border-color: var(--axm-border-strong, #9ca3af);
 color: var(--axm-text, #111);
}
.ic-btn-ghost {
 background: transparent;
 border-color: var(--axm-border-strong, #d1d5db);
 color: var(--axm-text-muted, #6b7280);
 padding: 0 10px;
}
.ic-btn-ghost:hover {
 background: var(--axm-surface-2, #f3f4f6);
 color: var(--axm-text, #374151);
}
/* Layout select ??????????? exactly 34px, no extra chrome */
.ic-select-wrap {
 position: relative;
 display: flex;
 align-items: center;
 height: 34px;
 border: 1.5px solid #d1d5db;
 border-radius: 7px;
 background: #fff;
 overflow: hidden;
 min-width: 180px;
 max-width: 220px;
}
.ic-select-wrap .ic-select-icon {
 padding: 0 8px 0 10px;
 color: #9ca3af;
 font-size: 0.72rem;
 flex-shrink: 0;
 pointer-events: none;
}
.ic-select-wrap select {
 flex: 1;
 height: 100%;
 border: none;
 outline: none;
 background: transparent;
 font-size: 0.8rem;
 font-weight: 500;
 color: #374151;
 padding: 0 4px 0 0;
 appearance: none;
 -webkit-appearance: none;
 cursor: pointer;
}
.ic-select-wrap .ic-select-caret {
 padding: 0 10px;
 color: #9ca3af;
 font-size: 0.65rem;
 flex-shrink: 0;
 pointer-events: none;
}
.ic-select-wrap .ic-info-btn {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 30px;
 height: 100%;
 border: none;
 border-left: 1.5px solid #e5e7eb;
 background: #f9fafb;
 color: #9ca3af;
 font-size: 0.72rem;
 cursor: pointer;
 flex-shrink: 0;
 transition: background 0.15s;
}
.ic-select-wrap .ic-info-btn:hover { background: #f3f4f6; color: #6b7280; }
/* Dropdown menu polish */
.ic-dropdown-menu {
 min-width: 200px;
 padding: 6px;
 border-radius: 10px;
 border: 1px solid #e5e7eb;
 box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.ic-dropdown-menu .dropdown-item {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 8px 10px;
 border-radius: 7px;
 font-size: 0.82rem;
 font-weight: 600;
 color: #374151;
 transition: background 0.12s;
}
.ic-dropdown-menu .dropdown-item:hover { background: #f3f4f6; }
.ic-dropdown-menu .dropdown-item .ic-menu-icon {
 width: 26px;
 height: 26px;
 border-radius: 6px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 0.65rem;
 color: #fff;
 flex-shrink: 0;
}
.ic-dropdown-menu hr { margin: 4px 0; border-color: #f3f4f6; }
/* Fused button group ??????????? Create Video + History + Download */
.ic-btn-group {
 display: flex;
 align-items: center;
 border: 1.5px solid #d1d5db;
 border-radius: 7px;
 overflow: hidden;
 height: 34px;
}
.ic-btn-group .ic-btn-segment {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 height: 100%;
 padding: 0 12px;
 font-size: 0.8rem;
 font-weight: 600;
 color: #374151;
 background: #fff;
 border: none;
 border-right: 1.5px solid #e5e7eb;
 cursor: pointer;
 gap: 6px;
 white-space: nowrap;
 transition: background 0.12s;
}
.ic-btn-group .ic-btn-segment i { font-size: 0.72rem; }
.ic-btn-group .ic-btn-segment:last-child { border-right: none; }
.ic-btn-group .ic-btn-segment:hover { background: #f3f4f6; }
.ic-btn-group .ic-btn-segment.disabled {
 opacity: 0.4;
 cursor: not-allowed;
 pointer-events: none;
}
.ic-btn-group .ic-btn-segment.ic-icon-only { padding: 0 10px; } 
 /* CRITICAL FIX: Target the .canvas-container class added by Fabric.js */
 /* This ensures the image AND the overlay move together */
 .canvas-container.anim-breathe {
 animation: breathe 4s ease-in-out infinite;
 }
 @keyframes breathe {
 50% {
 transform: scale(1.05);
 }
 }
 .canvas-container.anim-kenburns {
 animation: kenburns 15s ease infinite alternate;
 }
 @keyframes kenburns {
 100% {
 transform: scale(1.25) translate(-20px, -10px);
 }
 }
 .canvas-container.anim-heartbeat {
 animation: beat 0.8s ease-in-out infinite;
 }
 @keyframes beat {
 0%,
 100% {
 transform: scale(1);
 }
 15% {
 transform: scale(1.03);
 }
 }
 .canvas-container.anim-drift {
 animation: drift 20s linear infinite alternate;
 }
 @keyframes drift {
 0% {
 transform: rotate(0deg) scale(1);
 }
 100% {
 transform: rotate(1deg) scale(1.1);
 }
 }
 /* Scanline Overlay Effect */
 .canvas-container.anim-scanline::after {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
 background-size: 100% 4px;
 pointer-events: none;
 z-index: 999;
 }
 /* Effect Button Styling */
 .effect-btn {
 font-size: 0.8rem;
 text-align: left;
 display: flex;
 align-items: center;
 gap: 6px;
 }
 .effect-btn.active {
 background-color: #6366f1;
 color: white;
 border-color: #6366f1;
 }
 .effect-label {
 font-size: 0.7rem;
 font-weight: 700;
 text-transform: uppercase;
 color: #6c757d;
 margin-top: 10px;
 margin-bottom: 5px;
 display: block;
 }
 /* VIDEO HISTORY PREVIEW FIX */
 /* Forces video to respect its native resolution unless it's too big */
 #videoHistoryList video {
 width: auto !important;
 height: auto !important;
 max-width: 100%;
 display: block;
 margin: 0 auto;
 /* Center it */
 background: #000;
 /* Black bars if needed */
 border-radius: 4px;
 }
 .effectsControlSectionHeader {
 font-size: 13px;
 font-weight: 600;
 padding: 6px 10px;
 background: #f2f2f2;
 border-radius: 6px;
 }
 .effectsControlSectionHeader+div {
 padding: 15px 10px;
 }
 .test-section-header .fa-chevron-down {
 transition: transform 0.2s ease;
 }
 .test-section-header[aria-expanded="true"] .fa-chevron-down {
 transform: rotate(180deg);
 }
 /* FIX: Constrain Camera Motion & Effects inside the box */
 .test-canvas-wrapper {
 overflow: hidden !important;
 /* Critical: Cuts off the 'zoom' edges */
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
 background-color: #e9ecef;
 /* Optional: placeholder bg */
 width: 100%;
 height: 100%;
 min-height: 400px;
 /* Ensure visibility */
 }
 /* FIX: Ensure Fabric container is centered */
 .canvas-container {
 margin: 0 auto;
 position: relative !important;
 /* Ensure children absolute pos works */
 }
 .slide-range input[type=range] {
 -webkit-appearance: none;
 width: 100%;
 background: transparent;
 margin: 0;
 cursor: pointer;
 border: 0;
 }
 .slide-range input[type=range]::-webkit-slider-runnable-track {
 width: 100%;
 height: 4px;
 background: #e2e8f0;
 border-radius: 2px;
 transition: background 0.2s;
 }
 .slide-range input[type=range]:hover::-webkit-slider-runnable-track {
 background: #cbd5e1;
 }
 .slide-range input[type=range]::-webkit-slider-thumb {
 -webkit-appearance: none;
 height: 16px;
 width: 16px;
 border-radius: 50%;
 background: #ffffff;
 border: 2px solid #0d6efd;
 margin-top: -7px;
 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 transition: transform 0.2s;
 }
 .slide-range input[type=range]:hover::-webkit-slider-thumb {
 transform: scale(1.1);
 }
 .title-header {
 font-size: 14px;
 font-weight: 500;
 color: #495057;
 margin: 0;
 padding: 10px;
 border: 0;
 border-bottom: 1px solid #ced1d5;
 border-radius: 0;
 }
 .title-header+div {
 margin: 10px 0px 20px 0px;
 }
 /* BRANDING SECTION SPECIFIC STYLES */
 .branding-label {
 font-weight: 600;
 font-size: 0.8rem;
 color: var(--axm-text, #343a40);
 margin-bottom: 0.25rem;
 }
 .branding-sub-label {
 font-size: 0.75rem;
 color: var(--axm-text-muted, #6c757d);
 margin-bottom: 0.25rem;
 display: block;
 }
 /* Matches the button container style from mockup */
 .branding-card-box {
 border: 1px solid var(--axm-border, #e9ecef);
 border-radius: 0.5rem;
 padding: 1rem;
 margin-bottom: 1rem;
 background-color: var(--axm-surface, #fff);
 }
 /* Style button group */
 .style-btn-group .btn {
 padding: 0.25rem 0.5rem;
 background-color: var(--axm-surface, white);
 border-color: var(--axm-border-strong, #ced4da);
 font-weight: 600;
 color: var(--axm-text, #495057);
 }
 .style-btn-group .btn:hover {
 background-color: var(--axm-surface-2, #f8f9fa);
 }
 /* Checked state for Style buttons */
 .style-btn-group .btn-check:checked+.btn {
 background-color: var(--axm-surface-3, #e9ecef);
 border-color: var(--axm-border-strong, #adb5bd);
 color: var(--axm-text, #212529);
 }
 /* Form Switch Adjustment */
 .form-switch .form-check-input {
 width: 2.5em;
 }
 /* CRITICAL FIX: Target the .canvas-container class added by Fabric.js */
 /* This ensures the image AND the overlay move together */
 .canvas-container.anim-breathe {
 animation: breathe 4s ease-in-out infinite;
 }
 @keyframes breathe {
 50% {
 transform: scale(1.05);
 }
 }
 .canvas-container.anim-kenburns {
 animation: kenburns 15s ease infinite alternate;
 }
 @keyframes kenburns {
 100% {
 transform: scale(1.25) translate(-20px, -10px);
 }
 }
 .canvas-container.anim-heartbeat {
 animation: beat 0.8s ease-in-out infinite;
 }
 @keyframes beat {
 0%,
 100% {
 transform: scale(1);
 }
 15% {
 transform: scale(1.03);
 }
 }
 .canvas-container.anim-drift {
 animation: drift 20s linear infinite alternate;
 }
 @keyframes drift {
 0% {
 transform: rotate(0deg) scale(1);
 }
 100% {
 transform: rotate(1deg) scale(1.1);
 }
 }
 /* Scanline Overlay Effect */
 .canvas-container.anim-scanline::after {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(to bottom,
 rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%,
 rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
 background-size: 100% 4px;
 pointer-events: none;
 z-index: 999;
 }
 /* Effect Button Styling */
 .effect-btn {
 font-size: 0.8rem;
 text-align: left;
 display: flex;
 align-items: center;
 gap: 6px;
 }
 .effect-btn.active {
 background-color: #6366f1;
 color: white;
 border-color: #6366f1;
 }
 /* Labels */
 .effect-label {
 font-size: 0.7rem;
 font-weight: 700;
 text-transform: uppercase;
 color: #6c757d;
 margin-top: 10px;
 margin-bottom: 5px;
 display: block;
 }
 /* VIDEO HISTORY PREVIEW FIX */
 #videoHistoryList video {
 width: auto !important;
 height: auto !important;
 max-width: 100%;
 display: block;
 margin: 0 auto;
 background: #000;
 border-radius: 4px;
 }
 /* Effects Headers */
 .effectsControlSectionHeader {
 font-size: 13px;
 font-weight: 600;
 padding: 6px 10px;
 background: #f2f2f2;
 border-radius: 6px;
 }
 .effectsControlSectionHeader+div {
 padding: 15px 10px;
 }
 /* Accordion Chevron */
 .test-section-header .fa-chevron-down {
 transition: transform 0.2s ease;
 }
 .test-section-header[aria-expanded="true"] .fa-chevron-down {
 transform: rotate(180deg);
 }
 /* Canvas Wrapper */
 .test-canvas-wrapper {
 overflow: hidden !important;
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
 background-color: #e9ecef;
 width: 100%;
 height: 100%;
 min-height: 400px;
 }
 /* Fabric Canvas */
 .canvas-container {
 margin: 0 auto;
 position: relative !important;
 }
 /* Range Sliders */
 .slide-range input[type=range] {
 -webkit-appearance: none;
 width: 100%;
 background: transparent;
 margin: 0;
 cursor: pointer;
 border: 0;
 }
 .slide-range input[type=range]::-webkit-slider-runnable-track {
 width: 100%;
 height: 4px;
 background: #e2e8f0;
 border-radius: 2px;
 transition: background 0.2s;
 }
 .slide-range input[type=range]:hover::-webkit-slider-runnable-track {
 background: #cbd5e1;
 }
 .slide-range input[type=range]::-webkit-slider-thumb {
 -webkit-appearance: none;
 height: 16px;
 width: 16px;
 border-radius: 50%;
 background: #ffffff;
 border: 2px solid #0d6efd;
 margin-top: -7px;
 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 transition: transform 0.2s;
 }
 .slide-range input[type=range]:hover::-webkit-slider-thumb {
 transform: scale(1.1);
 }
 /* Title Headers */
 .title-header {
 font-size: 14px;
 font-weight: 500;
 color: #495057;
 margin: 0;
 padding: 10px;
 border: 0;
 border-bottom: 1px solid #ced1d5;
 border-radius: 0;
 }
 .title-header+div {
 margin: 10px 0 20px 0;
 }
 /* Branding */
 .branding-label {
 font-weight: 600;
 font-size: 0.8rem;
 color: var(--axm-text, #343a40);
 margin-bottom: 0.25rem;
 }
 .branding-sub-label {
 font-size: 0.75rem;
 color: var(--axm-text-muted, #6c757d);
 margin-bottom: 0.25rem;
 display: block;
 }
 .branding-card-box {
 border: 1px solid var(--axm-border, #e9ecef);
 border-radius: 0.5rem;
 padding: 1rem;
 margin-bottom: 1rem;
 background-color: var(--axm-surface, #fff);
 }
 .style-btn-group .btn {
 padding: 0.25rem 0.5rem;
 background-color: var(--axm-surface, white);
 border-color: var(--axm-border-strong, #ced4da);
 font-weight: 600;
 color: var(--axm-text, #495057);
 }
 .style-btn-group .btn:hover {
 background-color: var(--axm-surface-2, #f8f9fa);
 }
 .style-btn-group .btn-check:checked+.btn {
 background-color: var(--axm-surface-3, #e9ecef);
 border-color: #adb5bd;
 color: #212529;
 }
 .form-switch .form-check-input {
 width: 2.5em;
 }
 /* ICON DROPDOWN - Sophisticated Design */
 .source-dropdown {
 position: relative;
 min-width: 220px;
 }
 .source-dropdown .btn {
 height: 44px;
 border-radius: 8px;
 background: linear-gradient(145deg, #007bff, #0056b3);
 border: none;
 box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
 font-weight: 600;
 transition: all 0.2s ease;
 }
 .source-dropdown .btn:hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
 }
 .source-dropdown .dropdown-menu {
 border: none;
 border-radius: 8px;
 margin-top: 4px;
 box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
 }
 .source-dropdown .dropdown-item {
 padding: 12px 20px;
 transition: all 0.2s;
 font-weight: 500;
 border-radius: 6px;
 }
 .source-dropdown .dropdown-item:hover {
 background: #f8f9ff;
 transform: translateX(4px);
 }
 .ic-toolbar {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 10px 14px;
 background: #f8f9fa;
 border: 1px solid #e2e6ea;
 border-radius: 10px;
 margin-bottom: 12px;
 gap: 8px;
}
.ic-toolbar-label {
 font-size: 0.68rem;
 font-weight: 700;
 text-transform: uppercase;
 color: #9ca3af;
 white-space: nowrap;
 flex-shrink: 0;
}
.ic-toolbar-label i { margin-right: 5px; }
.ic-controls {
 display: flex;
 align-items: center;
 gap: 6px;
 flex-wrap: nowrap;
}
/* Universal button reset ??????? every action button is exactly 34px tall */
.ic-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 height: 34px;
 padding: 0 14px;
 font-size: 0.8rem;
 font-weight: 600;
 border-radius: 7px;
 border: 1.5px solid transparent;
 cursor: pointer;
 white-space: nowrap;
 transition: all 0.15s ease;
 line-height: 1;
 gap: 6px;
 text-decoration: none;
}
.ic-btn i { font-size: 0.72rem; }
/* Variants */
.ic-btn-primary {
 background: #2563eb;
 border-color: #2563eb;
 color: #fff;
}
.ic-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.ic-btn-secondary {
 background: var(--axm-surface, #fff);
 border-color: var(--axm-border-strong, #d1d5db);
 color: var(--axm-text, #374151);
}
.ic-btn-secondary:hover {
 background: var(--axm-surface-2, #f3f4f6);
 border-color: var(--axm-border-strong, #9ca3af);
 color: var(--axm-text, #111);
}
.ic-btn-ghost {
 background: transparent;
 border-color: var(--axm-border-strong, #d1d5db);
 color: var(--axm-text-muted, #6b7280);
 padding: 0 10px;
}
.ic-btn-ghost:hover {
 background: var(--axm-surface-2, #f3f4f6);
 color: var(--axm-text, #374151);
}
/* Layout select ??????? exactly 34px, no extra chrome */
.ic-select-wrap {
 position: relative;
 display: flex;
 align-items: center;
 height: 34px;
 border: 1.5px solid #d1d5db;
 border-radius: 7px;
 background: #fff;
 overflow: hidden;
 min-width: 180px;
 max-width: 220px;
}
.ic-select-wrap .ic-select-icon {
 padding: 0 8px 0 10px;
 color: #9ca3af;
 font-size: 0.72rem;
 flex-shrink: 0;
 pointer-events: none;
}
.ic-select-wrap select {
 flex: 1;
 height: 100%;
 border: none;
 outline: none;
 background: transparent;
 font-size: 0.8rem;
 font-weight: 500;
 color: #374151;
 padding: 0 4px 0 0;
 appearance: none;
 -webkit-appearance: none;
 cursor: pointer;
}
.ic-select-wrap .ic-select-caret {
 padding: 0 10px;
 color: #9ca3af;
 font-size: 0.65rem;
 flex-shrink: 0;
 pointer-events: none;
}
.ic-select-wrap .ic-info-btn {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 30px;
 height: 100%;
 border: none;
 border-left: 1.5px solid #e5e7eb;
 background: #f9fafb;
 color: #9ca3af;
 font-size: 0.72rem;
 cursor: pointer;
 flex-shrink: 0;
 transition: background 0.15s;
}
.ic-select-wrap .ic-info-btn:hover { background: #f3f4f6; color: #6b7280; }
/* Dropdown menu polish */
.ic-dropdown-menu {
 min-width: 200px;
 padding: 6px;
 border-radius: 10px;
 border: 1px solid #e5e7eb;
 box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.ic-dropdown-menu .dropdown-item {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 8px 10px;
 border-radius: 7px;
 font-size: 0.82rem;
 font-weight: 600;
 color: #374151;
 transition: background 0.12s;
}
.ic-dropdown-menu .dropdown-item:hover { background: #f3f4f6; }
.ic-dropdown-menu .dropdown-item .ic-menu-icon {
 width: 26px;
 height: 26px;
 border-radius: 6px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 0.65rem;
 color: #fff;
 flex-shrink: 0;
}
.ic-dropdown-menu hr { margin: 4px 0; border-color: #f3f4f6; }
/* Fused button group Create Video + History + Download */
.ic-btn-group {
 display: flex;
 align-items: center;
 border: 1.5px solid #d1d5db;
 border-radius: 7px;
 overflow: hidden;
 height: 34px;
}
.ic-btn-group .ic-btn-segment {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 height: 100%;
 padding: 0 12px;
 font-size: 0.8rem;
 font-weight: 600;
 color: #374151;
 background: #fff;
 border: none;
 border-right: 1.5px solid #e5e7eb;
 cursor: pointer;
 gap: 6px;
 white-space: nowrap;
 transition: background 0.12s;
}
.ic-btn-group .ic-btn-segment i { font-size: 0.72rem; }
.ic-btn-group .ic-btn-segment:last-child { border-right: none; }
.ic-btn-group .ic-btn-segment:hover { background: #f3f4f6; }
.ic-btn-group .ic-btn-segment.disabled {
 opacity: 0.4;
 cursor: not-allowed;
 pointer-events: none;
}
.ic-btn-group .ic-btn-segment.ic-icon-only { padding: 0 10px; }
/* ============================================================
 FINAL PREMIUM UI FIX: Sidebars & Layout Dropdown
 ============================================================ */
/* 1. GLOBAL WRAPPING FIX: Prevents text-wrap in Sidebar & Nav
 Do not force-display .d-none / [hidden] buttons (breaks intentional hides). */
.test-editor-sidebar .btn:not(.d-none):not([hidden]),
.test-editor-sidebar button:not(.d-none):not([hidden]),
.effect-btn:not(.d-none):not([hidden]),
.navbar .btn:not(.d-none):not([hidden]):not(.axm-actions-btn) {
 white-space: nowrap !important;
 text-overflow: ellipsis !important;
 overflow: hidden !important;
 display: inline-flex !important;
 align-items: center;
}
/* 2. THE PREMIUM DROPDOWN CONTAINER */
.ic-select-wrap {
 position: relative;
 display: flex;
 align-items: center;
 background: #ffffff;
 border: 1px solid #d1d5db;
 border-radius: 8px;
 height: 38px;
 min-width: 220px;
 cursor: pointer;
 transition: all 0.2s ease;
}
.ic-select-wrap:hover { border-color: #2563eb; }
/* Icon & Label Positioning */
.ic-select-icon { padding-left: 12px; color: #9ca3af; pointer-events: none; }
.ic-select-caret { padding-right: 12px; color: #9ca3af; pointer-events: none; font-size: 0.7rem; }
#layoutSelectLabel {
 flex: 1;
 padding-left: 10px;
 font-size: 14px;
 font-weight: 500;
 color: #374151;
 user-select: none;
}
/* 3. THE POP-OUT MENU (The List) */
#layoutDropdownContainer .dropdown-menu {
 border: 1px solid #e5e7eb;
 border-radius: 10px;
 box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
 padding: 6px;
 width: 100%;
 margin-top: 8px !important;
}
#layoutDropdownContainer .dropdown-item {
 padding: 10px 12px;
 border-radius: 6px;
 font-size: 14px;
 font-weight: 500;
 color: #4b5563;
 transition: all 0.15s ease;
}
#layoutDropdownContainer .dropdown-item:hover {
 background-color: #f3f4f6;
 color: #2563eb;
 transform: translateX(4px);
}
/* 4. THE INFO BUTTON (i) INTEGRATION */
.ic-info-btn {
 height: 100%;
 width: 36px;
 background: #f9fafb;
 border: none;
 border-left: 1px solid #d1d5db;
 border-radius: 0 7px 7px 0;
 color: #9ca3af;
}
/* Hide legacy welcome modal only ??????? do not target .modal-backdrop globally or other modals break. */
#welcomeModal {
 display: none !important;
 visibility: hidden !important;
 opacity: 0 !important;
}
/* Ensure the screen isn't locked/unscrollable */
body.modal-open {
 overflow: auto !important;
 padding-right: 0 !important;
}
/* Force the DSP Persona Dropdown to always be visible if it exists in the DOM */
#dashboardDspSelect,
#dashboardDspSelect-wrapper {
 display: block !important;
 visibility: visible !important;
 opacity: 1 !important;
}
/* ============================================================
 GIF EMAIL - Header Control + Ready Toast
 ============================================================ */
/* Wrapper ??????? 24px left gap from Generate button, non-negotiable */
#gif-header-control {
 display: inline-flex !important;
 align-items: center !important;
 gap: 7px !important;
 margin-left: 24px !important;
 padding-left: 24px !important;
 border-left: 1px solid rgba(255,255,255,0.18) !important;
 flex-shrink: 0 !important;
}
/* Checkbox sizing/colour. 15px left margin is applied via inline style
 on the element itself (see templates/main_content.php) because inline
 styles override every stylesheet rule, including Bootstrap's
 `button, input, optgroup, select, textarea { margin: 0 }` reset. */
.gif-header-checkbox {
 width: 14px;
 height: 14px;
 cursor: pointer;
 accent-color: #38bdf8;
 flex-shrink: 0;
 vertical-align: middle;
}
/* Label */
.gif-header-label {
 display: inline-flex;
 align-items: center;
 gap: 5px;
 margin: 0;
 padding: 0;
 background: none !important;
 border: none !important;
 color: rgba(255,255,255,0.65);
 font-size: 0.78rem;
 font-weight: 500;
 cursor: pointer;
 user-select: none;
 white-space: nowrap;
 line-height: 1;
 vertical-align: middle;
 transition: color 0.15s;
}
.gif-header-label:hover { color: rgba(255,255,255,0.9); }
.gif-header-label i { font-size: 0.75rem; opacity: 0.85; }
/* Spinner ??????? hidden by default, shown while generating */
.gif-header-spinner {
 width: 13px;
 height: 13px;
 border: 2px solid rgba(56,189,248,0.2);
 border-top-color: #38bdf8;
 border-radius: 50%;
 flex-shrink: 0;
 animation: gif-spin 0.75s linear infinite;
}
@keyframes gif-spin { to { transform: rotate(360deg); } }
/* Download icon ??????? ALWAYS in DOM */
.gif-dl-btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 26px;
 height: 26px;
 border-radius: 50%;
 border: 1px solid;
 font-size: 0.68rem;
 flex-shrink: 0;
 text-decoration: none !important;
 transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.12s;
}
/* Inactive: white icon, not clickable (visual stays bright, interaction disabled) */
.gif-dl-btn.gif-dl-inactive {
 background: transparent;
 border-color: rgba(255,255,255,0.40);
 color: #ffffff !important;
 cursor: not-allowed;
 pointer-events: none;
}
/* Ready: white, fully clickable */
.gif-dl-btn.gif-dl-ready {
 background: rgba(255,255,255,0.14);
 border-color: rgba(255,255,255,0.40);
 color: #ffffff !important;
 cursor: pointer;
 pointer-events: auto;
}
.gif-dl-btn.gif-dl-ready:hover {
 background: rgba(255,255,255,0.28);
 border-color: rgba(255,255,255,0.65);
 transform: translateY(-1px);
 color: #ffffff !important;
}
/* Mobile ??????? hide text label */
@media (max-width: 640px) {
 .gif-header-label span { display: none; }
 #gif-header-control { margin-left: 15px !important; padding-left: 15px !important; }
}
/* ============================================================
 GIF READY TOAST
 ============================================================ */
.gif-toast {
 position: fixed;
 bottom: 28px;
 right: 28px;
 z-index: 999990;
 background: #0f172a;
 border: 1px solid rgba(56,189,248,0.28);
 border-radius: 14px;
 padding: 18px 20px 16px;
 min-width: 248px;
 max-width: 296px;
 display: flex;
 flex-direction: column;
 gap: 12px;
 box-shadow: 0 0 0 1px rgba(56,189,248,0.07),
 0 10px 32px rgba(0,0,0,0.55),
 0 2px 8px rgba(0,0,0,0.3);
 animation: gif-toast-in 0.35s cubic-bezier(0.34,1.46,0.64,1) forwards;
}
@keyframes gif-toast-in {
 from { opacity:0; transform: translateY(18px) scale(0.96); }
 to { opacity:1; transform: translateY(0) scale(1); }
}
@keyframes gif-toast-out {
 to { opacity:0; transform: translateY(10px) scale(0.97); }
}
.gif-toast-top {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 8px;
}
.gif-toast-title {
 display: flex;
 align-items: center;
 gap: 7px;
 color: #38bdf8;
 font-size: 0.68rem;
 font-weight: 700;
 text-transform: uppercase;
}
.gif-toast-close {
 background: none;
 border: none;
 color: #334155;
 font-size: 0.72rem;
 cursor: pointer;
 padding: 0;
 line-height: 1;
 transition: color 0.15s;
 flex-shrink: 0;
}
.gif-toast-close:hover { color: #64748b; }
.gif-toast-meta {
 color: #475569;
 font-size: 0.73rem;
 line-height: 1.45;
 margin-top: -4px;
}
.gif-toast-download {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 width: 100%;
 background: #0ea5e9;
 color: #ffffff !important;
 text-decoration: none !important;
 border: none;
 border-radius: 8px;
 padding: 11px 16px;
 font-size: 0.85rem;
 font-weight: 700;
 cursor: pointer;
 transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
 box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.gif-toast-download:hover {
 background: #38bdf8;
 transform: translateY(-1px);
 box-shadow: 0 4px 16px rgba(0,0,0,0.28);
 color: #ffffff !important;
}
.gif-toast-download i { color: #ffffff; font-size: 0.88rem; }
/* Animated GIF preview inside the toast ??????? confirms animation in-browser */
.gif-toast-preview {
 width: 100%;
 max-height: 160px;
 object-fit: contain;
 border-radius: 8px;
 background: #1e293b;
 display: block;
}
@media (max-width: 480px) {
 .gif-toast { bottom:16px; right:16px; left:16px; max-width:none; }
}
/* ========================================================================
 ACTIONS DROPDOWN ��‚��€� match app Inter typography (same as body / .ic-btn)
 ======================================================================== */
.axm-actions-dropdown {
 position: relative;
}
.axm-actions-btn,
.axm-actions-menu,
.axm-actions-menu .dropdown-item,
.axm-actions-menu .axm-actions-item,
.axm-actions-menu .axm-actions-label {
 font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif !important;
}
.axm-actions-btn {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 height: 34px !important;
 min-height: 34px !important;
 background-color: #f97316 !important;
 background-image: none !important;
 border: 1.5px solid #ea580c !important;
 color: #ffffff !important;
 font-weight: 700 !important;
 font-size: 0.8125rem !important;
 line-height: 1 !important;
 padding: 0 14px !important;
 border-radius: 7px !important;
 box-shadow: none !important;
 outline: none !important;
 transform: none !important;
 gap: 6px;
 --bs-btn-bg: #f97316;
 --bs-btn-border-color: #ea580c;
 --bs-btn-color: #ffffff;
 --bs-btn-hover-bg: #ea580c;
 --bs-btn-hover-border-color: #c2410c;
 --bs-btn-active-bg: #ea580c;
 --bs-btn-active-border-color: #c2410c;
}
.axm-actions-btn:hover,
.axm-actions-btn:focus,
.axm-actions-btn:focus-visible,
.axm-actions-btn:active,
.axm-actions-btn.show {
 background: #ea580c !important;
 border-color: #c2410c !important;
 color: #ffffff !important;
 box-shadow: none !important;
 outline: none !important;
 transform: none !important;
}
.axm-actions-btn.dropdown-toggle::after {
 margin-left: 0.4rem;
 vertical-align: 0.15em;
 border-top-color: currentColor;
 opacity: 0.7;
}
.axm-actions-menu {
 min-width: 210px;
 padding: 8px 6px;
 border: 1px solid var(--axm-border, #e5e7eb);
 border-radius: 12px;
 margin-top: 6px !important;
 z-index: 2050 !important;
 background: var(--axm-dropdown-bg, #fff);
 box-shadow: var(--axm-shadow, 0 10px 28px rgba(15, 23, 42, 0.12)) !important;
}
.axm-actions-menu .axm-actions-item {
 display: flex !important;
 align-items: center;
 gap: 12px;
 padding: 9px 12px !important;
 border-radius: 8px;
 font-size: 0.875rem !important;
 font-weight: 400 !important;
 font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif !important;
 color: var(--axm-text, #1e293b) !important;
 line-height: 1.35;
 background: transparent !important;
 border: none !important;
 outline: none !important;
 box-shadow: none !important;
 white-space: nowrap;
}
.axm-actions-menu .axm-actions-item:hover,
.axm-actions-menu .axm-actions-item:focus {
 background: var(--axm-dropdown-hover, #f1f5f9) !important;
 color: var(--axm-text, #0f172a) !important;
}
/* Disabled / muted items ��‚��€� keep layout, grey text+icon */
.axm-actions-menu .axm-actions-item.is-disabled,
.axm-actions-menu .axm-actions-item.disabled,
.axm-actions-menu .axm-actions-item:disabled {
 pointer-events: none;
 opacity: 1;
 color: var(--axm-text-muted, #94a3b8) !important;
 background: transparent !important;
}
.axm-actions-menu .axm-actions-item.is-disabled .axm-actions-label,
.axm-actions-menu .axm-actions-item.disabled .axm-actions-label,
.axm-actions-menu .axm-actions-item:disabled .axm-actions-label {
 color: var(--axm-text-muted, #94a3b8) !important;
}
.axm-actions-menu .axm-actions-item.is-disabled .axm-actions-icon,
.axm-actions-menu .axm-actions-item.disabled .axm-actions-icon,
.axm-actions-menu .axm-actions-item:disabled .axm-actions-icon {
 color: var(--axm-text-muted, #94a3b8) !important;
}
/* Non-interactive identity row at top of Actions menu */
.axm-actions-menu .axm-actions-user {
 pointer-events: none !important;
 cursor: default !important;
 opacity: 0.95;
}
.axm-actions-menu .axm-actions-user:hover,
.axm-actions-menu .axm-actions-user:focus {
 background: transparent !important;
}
.axm-actions-menu .axm-actions-user-label {
 font-size: 0.8rem !important;
 font-weight: 600 !important;
 line-height: 1.25 !important;
 white-space: normal !important;
 word-break: break-word;
}
/* Fixed-width icon column so labels align */
.axm-actions-icon {
 width: 22px;
 height: 22px;
 border-radius: 0;
 background: transparent !important;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
 font-size: 1.05rem;
 line-height: 1;
}
.axm-actions-icon i {
 font-size: inherit;
 line-height: 1;
}
.axm-actions-icon--blue,
.axm-actions-icon-blue,
.axm-actions-menu .axm-actions-icon--blue,
.axm-actions-menu .axm-actions-item .axm-actions-icon--blue {
 color: #2563eb !important;
 background: transparent !important;
}
.axm-actions-icon--green,
.axm-actions-icon-green,
.axm-actions-menu .axm-actions-icon--green,
.axm-actions-menu .axm-actions-item .axm-actions-icon--green {
 color: #16a34a !important;
 background: transparent !important;
}
.axm-actions-icon--muted,
.axm-actions-icon-muted,
.axm-actions-menu .axm-actions-icon--muted,
.axm-actions-menu .axm-actions-item .axm-actions-icon--muted {
 color: var(--axm-text-muted, #94a3b8) !important;
 background: transparent !important;
}
.axm-actions-label {
 font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif !important;
 font-size: inherit;
 font-weight: inherit;
 line-height: inherit;
}
.axm-actions-divider {
 margin: 6px 8px;
 border-color: var(--axm-border, #e5e7eb);
 opacity: 1;
}
@media (max-width: 575.98px) {
 .axm-actions-menu {
 max-width: calc(100vw - 24px);
 min-width: min(210px, calc(100vw - 24px));
 }
}
#image-composition-section,
.ic-toolbar,
.ic-controls,
#generateWebpageDropdown,
#createVideoDropdown,
.source-dropdown {
 overflow: visible !important;
}
#generateWebpageDropdown .dropdown-menu,
#createVideoDropdown .dropdown-menu,
.axm-theme-menu,
.axm-video-tools-menu {
 z-index: 2000 !important;
}
/* Toolbar dropdowns ? inherit Inter from body; use .ic-btn for triggers */
#generateWebpageDropdown .ic-btn.dropdown-toggle,
#createVideoDropdown .ic-btn.dropdown-toggle {
 font-family: inherit;
}
#generateWebpageDropdown .ic-btn.dropdown-toggle::after,
#createVideoDropdown .ic-btn.dropdown-toggle::after {
 margin-left: 4px;
}
/* --- Generate Webpage theme menu (Image 3) --- */
.axm-theme-menu {
 min-width: 200px;
 max-height: min(70vh, 480px);
 overflow-y: auto;
 padding: 6px 0;
 border: 1px solid #e5e7eb;
 border-radius: 8px;
 margin-top: 4px !important;
 background: #fff;
 box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
 font-family: inherit;
}
.axm-theme-item {
 display: flex !important;
 align-items: center;
 gap: 10px;
 padding: 8px 14px !important;
 border-radius: 0;
 font-family: inherit !important;
 font-size: 0.875rem !important;
 font-weight: 400 !important;
 color: #212529 !important;
 line-height: 1.35;
}
.axm-theme-item:hover,
.axm-theme-item:focus {
 background: #f3f4f6 !important;
 color: #111 !important;
}
.axm-theme-item.active {
 background: #f3f4f6 !important;
 font-weight: 600 !important;
}
.axm-theme-dot,
.axm-theme-swatch {
 width: 10px;
 height: 10px;
 border-radius: 50%;
 flex-shrink: 0;
 display: inline-block;
}
/* --- Create Video / VIDEO TOOLS (Image 4) --- */
.axm-video-tools-menu {
 min-width: 300px;
 padding: 10px 0 8px;
 border: 1px solid #e5e7eb;
 border-radius: 10px;
 margin-top: 4px !important;
 background: #fff;
 box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
 font-family: inherit;
}
.axm-video-tools-heading {
 font-family: inherit;
 font-size: 0.7rem;
 font-weight: 700;
 text-transform: uppercase;
 color: #9ca3af;
 padding: 2px 16px 8px;
 list-style: none;
}
.axm-video-tool-item {
 display: flex !important;
 align-items: center;
 gap: 12px;
 padding: 10px 16px !important;
 margin: 0;
 border: none !important;
 border-radius: 0;
 width: 100%;
 text-align: left;
 white-space: normal;
 background: transparent !important;
 box-shadow: none !important;
 font-family: inherit !important;
 color: #212529;
}
.axm-video-tool-item:hover,
.axm-video-tool-item:focus {
 background: #f3f4f6 !important;
}
.axm-video-tool-item.disabled,
.axm-video-tool-item:disabled {
 opacity: 0.45;
 pointer-events: none;
 color: #9ca3af;
}
.axm-video-tool-item.disabled .axm-video-tool-title,
.axm-video-tool-item.disabled .axm-video-tool-desc,
.axm-video-tool-item.disabled .axm-video-tool-glyph {
 color: #9ca3af;
}
.axm-video-tool-glyph {
 width: 18px;
 flex-shrink: 0;
 text-align: center;
 font-size: 0.95rem;
 color: #374151;
}
.axm-video-tool-copy,
.axm-video-tool-line {
 display: flex;
 flex-wrap: wrap;
 align-items: baseline;
 gap: 6px;
 min-width: 0;
 font-family: inherit;
}
.axm-video-tool-title {
 font-family: inherit !important;
 font-size: 0.875rem !important;
 font-weight: 700 !important;
 color: #212529;
 line-height: 1.25;
}
.axm-video-tool-desc {
 font-family: inherit !important;
 font-size: 0.875rem !important;
 font-weight: 400 !important;
 color: #6b7280;
 line-height: 1.35;
}
.axm-video-tool-icon {
 display: none;
}
@media (max-width: 991.98px) {
 .axm-actions-menu,
 .axm-theme-menu,
 .axm-video-tools-menu {
 max-width: calc(100vw - 24px);
 }
 .ic-controls {
 flex-wrap: wrap;
 justify-content: flex-end;
 }
}
@media (max-width: 575.98px) {
 .axm-video-tools-menu {
 min-width: min(300px, calc(100vw - 24px));
 }
 .navbar .container-fluid {
 flex-wrap: nowrap;
 }
}