@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", Arial;
    display: flex;
    height: 100vh;
    flex-direction: column;
}
 select,
 button,
 input {
    font-family: "Montserrat", Arial;
 
}
 
/* Top Bar */
.top-bar {
    width: 100%;
    height: 65px;
    background: linear-gradient(135deg, #4f86ad 0%, #2c5770 50%, #1b3b4f 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
	    position: relative;  
    z-index: 1500;
}
.top-bar .logo {
    width: 160px;
}
 
.top-bar .brand {
    color: white;
    font-size: 24px;
    font-weight: 500;
    line-height: 20px;
    
	margin-bottom: 2px;
}
.top-bar .brand span {
    color: white;
    font-size: 16px;
    display: block;
}
/* Mode Switcher in Top Bar */
.mode-switcher {
    display: flex;
    gap: 12px;
    margin-left: auto;
 
}
/* Disable mode buttons when notification strip is visible */
body.notification-active .mode-btn {
    pointer-events: none;
    opacity: 0.5;
}
.mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Montserrat", Arial;
	text-decoration: none;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #D9D9D9;
    border-color: rgba(255, 255, 255, 0.5);
}

 

.mode-btn svg {
    flex-shrink: 0; stroke: #ccc;
}

 

.approval-cell {
    width: 90px;
    text-align: center;
}

.approval-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

 

.approval-checkbox.changed {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

.save-approval-btn {
    background: #28a745;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.save-approval-btn:hover {
    background: #218838;
    transform: scale(1.1);
}

.save-approval-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.approval-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
 
}
.media-icon.effects-active {
    background: rgba(255,255,255,0.15);
} 


/* Text Effects Grid */
.sp-text-effects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    
}

.sp-effect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    background: #fff;
    border: 1px solid #c5d4de;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #2c5770;
    transition: border-color 0.15s, background 0.15s;
}
/* Per-effect backgrounds so the preview is legible */
.sp-effect-btn[data-effect="glow"]    { background: #1a2a38; color: #fff; }
.sp-effect-btn[data-effect="shadow"]  { background: #e8f0f5; color: #2c5770; }
.sp-effect-btn[data-effect="outline"] { background: #f5f5f5; color: #1a1a1a; }



/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    overflow-x: hidden;
overflow-y: auto;
    position: relative;  
    z-index: 1;  
}
 
/* Side Panels */
.side-panel {
    width: 90px; 
	min-width: 90px;
    background: linear-gradient(135deg, #4f86ad 0%, #2c5770 50%, #1b3b4f 100%);
    border: none;
    padding: 0px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.4);
    z-index: 1;
    
    /* Sticky positioning */
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: calc(100vh - 65px);  /* CHANGED - subtract top bar height */
    overflow-y: auto;
}

.side-panel .media-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
 
	height: auto !important;
}
 

.side-panel .media-icon:hover {
    background: rgba(255,255,255,0.15);
}
 
.side-panel .media-icon div {
    font-size: 11px;
    color: white;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
}

.side-panel .media-icon svg {
 
    margin-bottom: 4px;
    stroke: white;
    fill: none;
}
 


/* Admin welcome-user link */
.side-panel .welcome-user-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    cursor: pointer;
}

/* Logout button styling */
.side-panel .media-icon.logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
    padding: 4px 0px 12px 0px;
	text-decoration: none;
	margin-bottom: 0px;
}

.side-panel .media-icon.logout svg {
    width: 22px;
    height: 22px;
 
    stroke-width: 2;
}

.side-panel .media-icon.logout div {
    font-size: 10px; 
    line-height: 1;
    text-align: center;
	margin: 0px 10px;
	font-weight: 700;
}







/* UPDATED: Left panel - floating style */
.workspace.reels .left-panel {
 
    margin: 0px 20px 0px 0px;
}
.left-pan {
    width: 55px;
    padding: 6px;
    background: #E2EAF5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    align-self: flex-start;
    border-radius: 6px;
    margin: 12px 20px 0px 95px;
    display: flex;
    flex-direction: column;
	gap: 8px;
}
 
.left-pan .media-icon {
    background: transparent;
    border: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}
 

.left-pan .media-icon svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}
 .left-panel {
    width: 55px;
    padding: 8px 6px;
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	    border: 1px solid #ddd;
    align-self: flex-start;
    border-radius: 6px;
    margin: 0px 20px 0px 95px;
}

.left-panel .media-icon {
    background: transparent;
    border: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}
 


.left-panel .media-icon:last-child {
    margin-bottom: 0;
}

.left-panel .media-icon:hover {
    background: rgba(0,0,0,0.05);
}

.left-panel .media-icon svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* For stroke-based icons (media, text) */
.left-panel .media-icon[data-type="media"] svg,
.left-panel .media-icon[data-type="text"] svg,
.left-panel .media-icon[data-type="shapes"] svg
 {
    stroke: #666;
    fill: none;
}

/* For fill-based icons (delete) */
.left-panel .media-icon[data-type="delete"] svg {
    stroke: #666;
    fill: none;
}

.left-pan .media-icon div {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}.left-panel .media-icon div {
    font-size: 10px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}
.media-icon {
    width: 100%;
    height: 60px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.media-icon:hover {
    background: #e8e8e8;
}
 
/* Welcome user - push to bottom */
.side-panel .media-icon.welcome-user {
    margin-top: auto;
    padding-top: 10px;
    border-top: 0px solid #999;
    pointer-events: none;
    cursor: default;
 margin-bottom: 0px;
}

.side-panel a.welcome-user-link:hover {
background: rgba(255,255,255,0.15);
    border-radius: 8px;
} 

.side-panel .media-icon.welcome-user div strong {
    font-size: 12px;
    font-weight: 700;
    display: block;
    margin-top: 2px;
}

 .side-panel a.welcome-user-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-top: auto;
}
/* Workspace */
.workspace {
    flex: 1;
    padding: 0px 40px 20px 40px;
    background: #fafafa;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;   
    min-height: 0;   
}

 
 
.top-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;  
    gap: 6px;               
    padding: 8px 12px;    
    background: #0E6FD1;
     
    border-color: #0E6FD1;
 
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;         
    font-weight: 500;
    color: #333;
    transition: all 0.2s;
 min-width: 135px;
}

.top-control-btn:hover {
    background: #0c5fb3;  
    border-color: #0c5fb3;
	 transform: translateY(-2px);
}
 
.clear-project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background: #28a745;
    border: 2px solid #28a745;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: white;
    transition: all 0.2s ease;
}

.clear-project-btn:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.clear-project-btn svg {
    flex-shrink: 0;
    stroke: white;
}

.clear-project-btn span {
    white-space: nowrap;
}

/* Captions Panel Close Button - Back to Dashboard */
.captions-panel-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 7px 15px 7px 12px;
    background: #0E6FD1;
    border: 2px solid #0E6FD1;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 100;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.captions-panel-close-btn:hover {
    background: #0459AE;
    border-color: #0459AE;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 111, 209, 0.3);
}

.captions-panel-close-btn:active {
    transform: translateY(0);
}

.captions-panel-close-btn svg {
    stroke: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.captions-panel-close-btn:hover svg {
    transform: translateX(-2px);
}

.captions-panel-close-btn span {
    white-space: nowrap;
}
 
.top-control-btn.publish-project-btn {
 
    color: white;
 
}

.top-control-btn.publish-project-btn svg {
    stroke: white;
}


.top-control-btn.save-project-btn {
    background: #0E6FD1;
    color: white;
    border-color: #0E6FD1;
}

.top-control-btn.save-project-btn:hover {
    background: #0459AE;
    border-color: #0459AE;
}


.top-control-btn.save-project-btn svg {
    stroke: white;
}

.top-control-btn svg {
    flex-shrink: 0;
    width: 18px;            /* ADD THIS */
    height: 18px;           /* ADD THIS */
}

.top-control-btn span {
    white-space: nowrap;
}

 
/* ========================================
   STICKY CONTROLS WRAPPER
   ======================================== */

.sticky-controls-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: #fafafa;
    padding: 10px 20px 10px 20px;
    margin: 0 -40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0;
}

.sticky-controls-wrapper.ready {
    opacity: 1;
}
/* Add shadow when scrolled */
.sticky-controls-wrapper.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
background: #fafafa;
	border-bottom: 1px solid #eee;
}

/* Enable pointer events on child elements */
.sticky-controls-wrapper > * {
    pointer-events: auto;
}

/* Top Left Controls */
.top-left-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    /* No margin needed - naturally on left */
}

.top-left-controls button {
    padding: 6px 12px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.top-left-controls button:hover:not(:disabled) {
    border-color: #999;
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-left-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.top-left-controls button svg {
    flex-shrink: 0;
}

/* Top Right Controls - ALWAYS align right */
.top-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: auto; /* ADD THIS - pushes to right */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .sticky-controls-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 15px 20px 15px;
    }
    
    .top-left-controls,
    .top-controls {
        justify-content: center;
        margin-left: 0; /* Reset for mobile */
    }
}

@media (max-width: 768px) {
    .sticky-controls-wrapper {
        margin: 0 -20px; /* Adjust for smaller workspace padding */
        padding: 10px 15px 18px 15px;
    }
    
    .top-left-controls button span,
    .top-control-btn span {
        display: none; /* Hide text on small screens */
    }
    
    .top-control-btn {
        min-width: auto;
        padding: 6px 8px;
    }
}

/* Main Controls */
.canvas-section {
    display: inline-block;
}
.workspace.reels .controls {
 
    margin: 30px 0 10px 75px; 
}

.workspace.reels .controls#cover-controls-bar {
 
    margin: 30px 0 10px 20px; 
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0 10px 170px; 
}


.controls .ratio-selector {
    padding: 5px 10px 5px 6px;
    border: 2px solid #DFDFDF;
    border-radius: 4px;
    background: #E5EEF5;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
 
}

.controls .ratio-selector:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

 
.controls button {
    padding: 6px 12px;

    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

 

 
.controls button.danger {
    background: #E5EEF5;
    border: 2px solid #DFDFDF;
	color: #222;
 
}

.controls button.danger:hover {
    background: #D5E6F2;
}


.undo-redo-controls {
    display: flex;
    gap: 10px;
 
}

.undo-redo-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #E5EEF5;
    border: 2px solid #DFDFDF;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.undo-redo-controls button:hover:not(:disabled) {
    background: #d5dee5;
    border-color: #ccc;
}

.undo-redo-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.undo-redo-controls button svg {
    stroke: #222;
}



/* Hide right panel initially */
.right-panel.hidden {
    display: none;
}
/* Notification Strip - Centered Overlay */
.notification-strip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #00a1d5 0%, #006385 100%);
    color: white;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
	
    transition: opacity 0.4s ease, visibility 0.4s ease;
    width: 50vw;          
    min-width: 400px;       
    max-width: 700px;     
	 min-height: 280px;  
}
 
.notification-strip.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Content container inside notification strip */
.notification-strip-content {
    display: flex;
    flex: 1;
    width: 100%;          /* fill parent width */
    gap: 50px;             /* optional spacing between children */
    align-items: stretch;   /* children stretch vertically if needed */
    justify-content: space-between; /* children spread out horizontally */
}

/* Make each child stretch evenly */
.notification-strip-content > * {
    flex: 1;               /* take equal width */
    min-width: 0;          /* prevent overflow with long content */
}


.notification-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
 
    padding: 20px 40px 30px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.notification-panel.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
}

 
 

.notification-panel-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 5px 0px 20px 0px;
}

.choice-buttons {
    display: flex;
    gap: 50px;
}
 
 
 
.notification-panel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    min-width: 200px;
}

.notification-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.notification-panel-btn.btn-carousel {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.notification-panel-btn.btn-carousel:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

.notification-panel-btn.btn-reel {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    color: white;
}

.notification-panel-btn.btn-reel:hover {
    background: linear-gradient(135deg, #E64A19 0%, #D84315 100%);
}

.notification-panel-btn.btn-manual {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;min-width: 180px;
}

.notification-panel-btn.btn-manual:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
}

.notification-panel-btn.btn-ai {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
    color: white;min-width: 180px;
}

.notification-panel-btn.btn-ai:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #C2185B 100%);
}

.notification-panel-btn svg {
    flex-shrink: 0;
}

.notification-strip-close {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.notification-strip-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.notification-strip-close svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
}

/* Reels Workspace */
.reels-workspace {
    display: none;
    flex: 1;
    padding: 20px 20px 20px 20px;
    background: #fafafa;
    position: relative;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.reels-workspace.visible {
    display: flex;
    opacity: 1;
}

 

 

.heads-wrapper h2,
.reels-content-wrapper h2 {
    font-size: 26px;
    color: #2d3748;
    margin: 10px 0px 4px 0px;
}
.heads-wrapper p,
.reels-content-wrapper p {
 color: #666; 
 font-size: 14px; 
 
}

 .heads-wrapper span,
 .reels-content-wrapper span {
 margin: 0px 0px 0px 5px; 
 
}

.heads-wrapper h2 svg,
.reels-content-wrapper h2 svg {
    fill: #E1306C; 
    top: 3px;
	 width: 25px;
	 height: 25px;
	 position: relative;
}


/* Hide workspace initially */
.workspace.hidden {
    display: none;
}
/* Carousel option panels - hidden by default */
#carousel-build-panel,
#carousel-ai-panel {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Fade in when class added */
#carousel-build-panel.fade-in,
#carousel-ai-panel.fade-in {
    opacity: 1;
    transform: scale(1);
}

/* Text Formatting Toolbar */
.text-toolbar {
    display: none;
    position: absolute;
    background: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    gap: 8px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.text-toolbar.active {
    display: flex;
}

.text-toolbar select,
.text-toolbar input {
    padding: 5px 10px 5px 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.text-toolbar input[type="color"] {
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
	padding: 5px;
}

.text-toolbar input[type="number"] {
    width: 50px;
}

.text-toolbar button {
    padding: 4px 8px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.text-toolbar button:hover {
    background: #f5f5f5;
}

.text-toolbar button.active {
    background: #e0e0e0;
    border-color: #999;
}
.thumbnail-copy-btn {
    position: absolute;
    top: 4px;
    left: 3px;
    background: #2c7be5;
    border: none;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 3px 5px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.thumbnail-item:hover .thumbnail-copy-btn { opacity:1; }

.x-instructions {
 margin-bottom: 8px;
    font-size: 13px;
 font-weight: bold;
}


#sp-font-color-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-group { display:flex; flex-direction:column; gap:6px; padding:4px 0; }
.sp-group.sp-row { flex-direction:row; align-items:flex-end; gap:8px; }
.sp-label { font-size:10px; color:#4a6f8a; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; }
#sp-strip-controls .sp-label { min-width:75px; display:inline-block; }
.sp-radio-row { display:flex; flex-direction:row; gap:6px; flex-wrap:nowrap; }
.sp-radio-label { font-size:11px; color:#333333; display:flex; align-items:center; gap:3px; cursor:pointer; white-space:nowrap; }
.sp-radio-label input[type="radio"] { accent-color:#4a7fa0; cursor:pointer; filter:brightness(1.1); }
#style-panel input[type="range"] { width:100%; accent-color:#4a7fa0; cursor:pointer; background:#8aafc7; border-radius:4px; height:6px; appearance:none; -webkit-appearance:none; }
#style-panel input[type="range"]::-webkit-slider-runnable-track { background:#8aafc7; border-radius:4px; height:4px; }
#style-panel input[type="range"]::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:14px; height:14px; border-radius:50%; background:#4a7fa0; cursor:pointer; margin-top:-5px; }
#style-panel input[type="range"]::-moz-range-track { background:#d4e2ec; border-radius:4px; height:4px; }
#style-panel input[type="range"]::-moz-range-thumb { width:14px; height:14px; border-radius:50%; background:#4a7fa0; cursor:pointer; border:none; }
#style-panel input[type="color"] { width:30px; height:22px; border:1px solid #b9c8d4; cursor:pointer; background:none; padding:1px; }
#style-panel input[type="number"] { background:#FAFBFC; border:1px solid #b9c8d4; color:#2c4a5e; border-radius:4px; padding:3px 5px; font-size:12px; }
#style-panel select { width:100%; background:#FAFBFC; border:1px solid #b9c8d4; color:#2c4a5e; border-radius:4px; padding:4px 5px; font-size:11px; cursor:pointer; }
#style-panel input[type="checkbox"] { accent-color:5b9bd5; cursor:pointer; width:14px; height:14px; }
.sp-align-row { display:flex; gap:4px; }
.sp-align-btn { flex:1; background:#FAFBFC; border:1px solid #b9c8d4; color:#4a6f8a; border-radius:4px; padding:5px 4px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.sp-align-btn:hover { background:#d4e2ec; color:#2c4a5e; }
.sp-effect-btn.active,
.sp-effect-btn.active[data-effect="glow"],
.sp-effect-btn.active[data-effect="shadow"],
.sp-effect-btn.active[data-effect="outline"] {
    background: #2c7be5;
    color: #fff;
    border-color: #1a5bbf;
    box-shadow: 0 0 0 2px rgba(44,123,229,0.35);
}

.sp-divider {
    height: 1px;
    background: #ccc;
    margin: 4px 0;
    flex-shrink: 0;
}
.sp-apply-btn { background:#4a7fa0; border:none; color:#fff; border-radius:5px; padding:7px 8px; font-size:11px; font-weight:600; cursor:pointer; width:100%; transition:background 0.15s; margin-top:4px; }
.sp-apply-btn:hover { background:#5b9bd5; }

#style-panel input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.sp-sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 16px;
    border: 1px solid #555;
    border-radius: 4px;
    background: transparent;
    color: #888;
    cursor: pointer;
    margin-left: 4px;
    padding: 0;
    transition: all 0.2s;
}

.sp-sync-btn svg {
    width: 14px;
    height: 14px;
    display: block;
}

.sp-sync-btn.active {
    background: #00B03B;
    border-color: #00B03B;
    color: #fff;
}
/* UPDATED: Canvas and Add Slide */
.canvas-and-add-slide {
    display: flex;
    align-items: flex-start;
    gap: 0px;
}

.canvas-wrapper {
display: inline-block;
    position: relative;
}

.canvas-container {
    display: inline-block;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    line-height: 0;
    cursor: pointer;
}

canvas {
    border: 1px solid #ddd;
}
/* File Input */
#file-input {
    display: none;
}
 
/* Canvas Info */
.canvas-info {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.canvas-info span {
    font-weight: bold;
    color: #333;
}


/* Error Message */
.error-message {
    color: red;
    margin-top: 10px;
    display: none;
	text-align: center;
}

.error-message.active {
    display: block;
}
.thumbnail-item img {
    width: 100%;
    height: auto;
}
.max-reached {
    animation: flash 0.5s ease-in-out;
    color: red;
}

@keyframes flash {
    0% { color: red; }
    50% { color: #000; }
    100% { color: red; }
}





 
/* Top row: title + close button */
.import-header .top-row {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Title */
.import-header h3 {
    margin: 0;
    font-size: 18px;
}

 
.logo-upload-row {
    display: flex;
    
    gap: 8px;
}

.logo-upload-row input[type="file"] {
    flex: 1;
}

#clear-logo-btn {
     margin: 0px 0px 0px 0px;
       background: #0E6FD1;
    color: white;
    border: none;
    border-radius: 0px;
    padding: 5px 10px;
    font-size: 12px;
 
    cursor: pointer;

 
}

/* Subtitle below top row */
.import-header .import-text {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Paragraph inside header, if any */
.import-header p {
    margin: 0;
    font-size: 14px;
}


.import-field {
    display: flex;
    flex-direction: column;
    width: calc(50% - 10px); /* two per row with gap */
    margin-bottom: 0;         /* spacing handled by gap */
}

/* Full-width first field (e.g., Video URL) */
.import-field.full-width:first-child {
    width: 100%;
}

 
.import-field.remember-settings {
    width: 100%;
    display: flex;
    flex-direction: row;       
    align-items: center;       
    gap: 8px;                 
 margin: 40px 0px 0px 0px; 
 padding: 30px 0px 0px 0px; 
 border-top: 2px solid #e0e0e0;
}

.import-field.remember-settings input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.import-field.remember-settings label {
    font-weight: normal;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    line-height: 1.2;
    margin: 0;
}


.import-field label {
    display: block;
    margin-bottom: 3px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
}

 
.import-content button {
    padding: 8px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
	transition: background 0.2s ease;
    margin: 0px 0px 0px 0px;
    width: auto;  /* ADD THIS LINE */
    align-self: flex-start;  /* ADD THIS LINE */
}
.import-content button:hover {
    background: #45a049;
} 

.caption-fields-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  
    gap: 20px 50px;
 
}

/* Generate Caption checkbox - takes 1st column */
.caption-fields-row .import-field.generate-caption {
    grid-column: 1 / 2;
    display: flex;            
    flex-direction: row;      
    align-items: center;      
    gap: 8px;               
    padding: 8px 0;           
}
 
.caption-fields-row .import-field {
    width: auto;   
}
 
/* Caption Settings Container - Outside import-form, 100% width */
.caption-settings-container {
 
 
    display: flex;
    flex-direction: column;
 
	gap: 10px;
 
    flex: 0 0 60%;

 
}

.caption-settings-container h4 {
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: #0E6FD1;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}



 
 

/* Caption Preview Panel - 40% */
.caption-preview-panel {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
}


/* Info icon inside h4 headers */
h4 .info-icon {
    margin-left: 8px;
 
}

 
 
/* Caption Length input - takes 2nd column only */
.caption-fields-row .import-field:not(.generate-caption) {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
}

.caption-fields-row .import-field:not(.generate-caption) label {
    font-weight: 600;  /* ? Match import-fields-grid */
    font-size: 12px;   /* ? Match import-fields-grid */
    margin-bottom: 5px; /* ? Match import-fields-grid */
    color: #333;
}
/* Caption Length input - match import-fields-grid styling exactly */
.caption-fields-row .import-field input[type="number"] {
    width: 100%;
    padding: 7px;  /* ? Match import-fields-grid (not the generic 6px) */
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: "Montserrat", Arial, sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;  /* ? Critical - ensures padding is included in width */
}

.caption-fields-row .import-field input[type="number"]:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 5px rgba(156, 39, 176, 0.2);
    background-color: #fff;
}

/* Disabled state styling */
.caption-fields-row .import-field input[type="number"]:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

 
/* Full width fields (Landing Page URL, Tags) */
.caption-settings-container > .import-field {
    width: 100%;  /* ? Override the generic calc(50% - 10px) */
    margin-bottom: 15px;
}

.caption-settings-container > .import-field label {
    display: block;
    margin-bottom: 5px;   
    font-weight: 600;    
     
    color: #333;
}

.caption-settings-container > .import-field input[type="text"] {
    width: 100%;
    padding: 7px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: "Montserrat", Arial, sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.caption-settings-container > .import-field input[type="text"]:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 5px rgba(156, 39, 176, 0.2);
    background-color: #fff;
}

/* Generate Hashtags checkbox - full width */
.import-field.generate-hashtags {
    display: flex;
    flex-direction: row;  /* ? Explicit left-to-right */
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    margin-bottom: 15px;
}

.import-field.generate-hashtags input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    order: 1;  /* ? Checkbox first */
}

.import-field.generate-hashtags label {
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    order: 2;  /* ? Label second */
}


 







.import-fields-grid h6 {
grid-column: 1 / -1;
    margin-bottom: -8px;
padding: 12px 0 0 0;
    color: #4f86ad;
    font-size: 13px; 
	border-top: 1px solid #ccc;
}

 
.import-fields-grid.stripper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  
    gap: 20px 40px;  
	margin-top: 20px;
}

 .import-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  
    gap: 20px 40px;  
}

 

/* Import Field Styling */
.import-fields-grid .import-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
	font-size: 10px;
}

.import-fields-grid .import-field label {
    font-weight: 600;
    font-size: 12px; /* Slightly smaller for 3 columns */
    margin-bottom: 5px;
    color: #333;
}

.import-fields-grid .import-field input[type="number"],
.import-fields-grid .import-field input[type="text"]  {
    width: 100%;
    padding: 7px; /* Slightly reduced padding */
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: "Montserrat", Arial, sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
}
 
.import-fields-grid .import-field select {
    width: 100%;
    padding: 6px; /* Slightly reduced padding */
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    font-family: "Montserrat", Arial, sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.import-fields-grid .import-field input:focus,
.import-fields-grid .import-field select:focus {
    outline: none;
    border-color: #4f86ad;
    box-shadow: 0 0 5px rgba(156, 39, 176, 0.2);
    background-color: #fff;
}

/* File Upload Field - Full Width in Grid */
.import-fields-grid .import-field.file {
    grid-column: 1 / -1;
    padding: 10px;
    border: 1px dashed #bbb;
    background-color: #fff;
    border-radius: 4px;
	
}

/* Logo Options - Full Width in Grid */
.import-field-outs {
    grid-column: 1 / -1;
    display: grid;                          
    grid-template-columns: repeat(3, 1fr); 
    gap: 50px;                              
}

.import-field-outs .import-field {
    flex: none;                           
    width: 100%;                           
    min-width: auto;                        
}
 
.import-left-panel .remember-settings {
    width: 100%;
    margin-top: 10px;
}

 
.import-left-panel #submit-import-btn {
    margin-top: 10px;
    align-self: flex-start;
}

 
.import-left-panel h4 {
    grid-column: 1 / -1; /* Span all 3 columns */
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0px 0 0 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
	color: #4f86ad;
}

 
.h4-row {
    grid-column: 1 / -1; /* Span all columns */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px; 
    width: 100%;
    margin: 10px 0 0 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

/* Override h4 styling when inside h4-row */
.h4-row h4 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: none; 
    grid-column: auto; 
    width: auto; 
	color: #0E6FD1;
}

 
/* Crop Modal */
.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.crop-modal.active {
    display: flex;
}

.crop-container {
    max-width: 90%;
    max-height: 90%;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.crop-image-container {
    max-width: 800px;
    max-height: 600px;
    margin: 0 auto;
}

#crop-image {
    max-width: 100%;
    display: block;
}

.crop-buttons {
    margin-top: 20px;
    text-align: right;
}

.crop-buttons button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.crop-buttons button:first-child {
    background: #ccc;
}

.crop-buttons button:last-child {
    background: #4CAF50;
    color: white;
}

.crop-buttons button:hover {
    opacity: 0.8;
}

/* UPDATED: Add Slide Button */
.add-slide-container {
    display: inline-block;
    margin-left: 40px;
    align-self: center;
}

#add-slide-btn b {
    display: block;
 
    font-size: 13px;
}
#add-slide-btn {
    display: inline-block;
    font-size: 32px;
    color: #999;
    text-decoration: none;
    font-weight: 300;
    padding: 20px;
    transition: color 0.2s; 
	margin-bottom: 40px;  
	text-align: center;
 
}

#add-slide-btn:hover {
    color: #666;
}
.add-cover-container {
    display: inline-block;
    margin-left: 40px;
    align-self: center;
}

#add-cover-btn b {
    display: block;
 
    font-size: 13px;
}
#add-cover-btn {
    display: inline-block;
    font-size: 32px;
    color: #999;
    text-decoration: none;
    font-weight: 300;
    padding: 20px;
    transition: color 0.2s; 
	margin-bottom: 40px;  
	text-align: center;
 
}

#add-cover-btn:hover {
    color: #666;
}

/* Right Panel - Slide Thumbnails */
.right-panel {
    width: 0;
    background: #f8f8f8;
    border-left: 1px solid #ddd;
    padding: 0;
    position: relative;
    transition: width 0.3s ease, padding 0.3s ease;
    flex-shrink: 0;
}

.right-panel.active {
    width: 180px;
    padding: 20px 15px;
}

.right-panel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.right-panel-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

 

.thumbnail-item:hover {
    border-color: #999;
    transform: scale(1.02);
}

.thumbnail-item.active {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px #4CAF50;
}

.thumbnail-item canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Add after .top-control-btn.clear-project-btn styles - around line 135 */

/* NEW */
.top-control-btn.toggle-import-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
    color: white;
    border-color: #9C27B0;
}

.top-control-btn.toggle-import-btn:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #C2185B 100%);
    border-color: #7B1FA2;
}

.top-control-btn.toggle-import-btn svg {
    stroke: white;
}

 
.import-field.checkbox-field-outer {
    display: flex;
    flex-direction: column;
    gap: 12px;
	justify-content: center;
}




 

.captions-panel {
    display: none;
    position: relative;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 60px auto;

	
background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 20px 30px 30px 30px;
}

 

.captions-header {
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;          
}


 
.canvas-center-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    visibility: hidden;
}

.canvas-center-wrapper.ready {
    visibility: visible;
}

 
/* Thumbnail delete button */
.thumbnail-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.thumbnail-item:hover .thumbnail-delete-btn {
    opacity: 1;
}

.thumbnail-delete-btn:hover {
    background: rgba(244, 67, 54, 1);
}

.thumbnail-delete-btn svg {
    stroke: white;
}







#use-ai-caption-btn {
    display: inline-flex;
    cursor: not-allowed;
}
#rewrite-engine-buttons .rewrite-engine-btn.disabled {
    background: #f5f5f5;
    color: #888;
    border-color: #ccc;
    cursor: not-allowed;
}


#use-ai-caption-btn.enabled {
    cursor: pointer;
}
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: inset 0 0 15px rgba(0, 255, 100, 0.5);
    }
    50% {
        box-shadow: inset 0 0 30px rgba(0, 255, 150, 0.9), inset 0 0 40px rgba(100, 255, 200, 0.6);
    }
}

#use-ai-caption-btn.working {
    animation: pulse-glow 1s ease-in-out infinite;
    pointer-events: none;
}


.quick-build-used #use-ai-caption-btn {
    display: none;
}

#rewrite-options-panel {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#rewrite-options-panel.active {
    display: flex;
}

#rewrite-options-panel .rewrite-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

#rewrite-options-panel .rewrite-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    color: #495057;
    font-weight: 500;
	    font-size: 13px;
		margin-top: 0px;
}

#rewrite-options-panel .rewrite-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #667eea;
}

#rewrite-options-panel .rewrite-field {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

#rewrite-options-panel input[type="number"] {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 11px;
    background: #fff;
    text-align: center;
}

#rewrite-options-panel select {
    padding: 4px 8px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 11px;
    background: #fff;
    cursor: pointer;
}

#rewrite-options-panel input[type="number"]:focus,
#rewrite-options-panel select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

#rewrite-options-panel #rewrite-submit-btn {
    margin-left: auto;
    padding: 5px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

#rewrite-options-panel #rewrite-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

#rewrite-options-panel #rewrite-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#rewrite-engine-buttons {
    display: none;
    gap: 8px;
    margin-left: auto;
}

#rewrite-engine-buttons.active {
    display: flex;
}

#rewrite-engine-buttons .rewrite-engine-btn {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#rewrite-engine-buttons .rewrite-engine-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

#rewrite-engine-buttons .rewrite-engine-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

#rewrite-engine-buttons .rewrite-engine-btn.failed {
    background: #fff5f5;
    color: #dc3545;
    border-color: #f5c6cb;
    cursor: not-allowed;
}


.captions-content {
    padding: 0px 0px 10px 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.caption-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
 
}

.caption-field-left {
    width: calc(50% - 10px); /* Account for gap */
    display: flex;
    flex-direction: column;
}

.caption-field-right {
    width: calc(50% - 10px); /* Account for gap */
    display: flex;
    flex-direction: column;

 
}
.caption-field-right h6 {
    font-weight: 600;
    font-size: 14px;
    margin: 9px 0px 5px 0px;
    color: #333;
 
}

.caption-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}
/* Caption label with action buttons */
.caption-label-row {
    display: flex;
    align-items: center;
 
    margin-bottom: 5px;
}

.caption-label-row label {
    margin-bottom: 0; /* override existing margin */
    margin-right: auto; /* push buttons to the right */
}
 
.caption-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.caption-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.caption-action-btn svg {
    flex-shrink: 0;
}

/* Use AI button - Purple/Magenta gradient */
.use-ai-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
    color: white;
    border-color: #9C27B0;
}

.use-ai-btn:hover {
    background: linear-gradient(135deg, #7B1FA2 0%, #C2185B 100%);
    border-color: #7B1FA2;
}

.use-ai-btn svg {
    stroke: white;
}

/* Show Example button - Blue with info icon */
.show-example-btn {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.show-example-btn:hover {
    background: #0b7dda;
    border-color: #0b7dda;
}

.show-example-btn svg {
    stroke: white;
}
/* Make left textarea fill available height */
.caption-field-left .caption-field {
    height: 100%;
}

.caption-field label {
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
    color: #333;
    text-align: left;
}

.caption-field input[type="text"],
.caption-field input[type="url"],
.caption-field textarea {
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Montserrat", Arial, sans-serif;
    transition: all 0.2s ease;
    background-color: #fafafa;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    text-align: left;
}

.caption-field input[type="text"]:focus,
.caption-field input[type="url"]:focus,
.caption-field textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
    background-color: #fff;
}
#caption-text {
min-height: 400px;
    resize: none;
    overflow: hidden;
}
/* Textarea fills the left column height */
.caption-field-left textarea {
    width: 100%;
    resize: none;
    min-height: 320px;
}
 

.caption-field input::placeholder,
.caption-field textarea::placeholder {
    color: #aaa;
    font-style: italic;
    text-align: left;
}
/* Label with info icon */
.label-with-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.label-with-info label {
    margin-bottom: 0;
}

 

.info-icon svg {
    width: 16px;
    height: 16px;
 
}
 
/* Info icon wrapper */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    position: relative;
    color: #0E6FD1;
    transition: all 0.2s ease;
    opacity: 0.7;
    transform: translateY(0px);
z-index: 1401;     background: white;
}

.info-icon:hover {
    color: #0b7dda;
    opacity: 1;
    transform: translateY(1px) scale(1.1); /* Keep 3px offset on hover + scale */
}

/* Tooltip - prevent left edge clipping */
.info-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 0; /* CHANGE from 50% to 0 */
    transform: translateX(0) translateY(8px); /* CHANGE from translateX(-50%) */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
z-index: 1401;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Tooltip arrow - align to left */
.info-icon::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px; /* CHANGE from 50% to fixed position */
    transform: translateX(0) translateY(2px); /* CHANGE from translateX(-50%) */
    border: 6px solid transparent;
    border-bottom-color: #2c3e50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1401;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Show tooltip on hover */
.info-icon:hover::before {
    opacity: 1;
    transform: translateX(0) translateY(14px); /* CHANGE from translateX(-50%) */
}

.info-icon:hover::after {
    opacity: 1;
    transform: translateX(0) translateY(8px); /* CHANGE from translateX(-50%) */
}

/* Adjust tooltip position for narrow containers */
@media (max-width: 768px) {
    .info-icon::before {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(-8px);
        white-space: normal;
        max-width: 200px;
    }
    
    .info-icon:hover::before {
        transform: translateX(0) translateY(-14px);
    }
    
    .info-icon::after {
        left: auto;
        right: 10px;
    }
}
 
.caption-edit-header {
    display: flex;
    flex-direction: column;
    padding: 0px 0px 20px 0px;
    margin: 20px 30px 15px 30px;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 6px 0 0 0;
}

.caption-edit-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
 
 

/* Caption Edit Panel */
.caption-edit-panel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 40px auto;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
	
}
.caption-edit-panel.hidden {
    display: none;
}
.caption-edit-content {
    padding: 0px 30px 20px 30px;
 
    
}

/* Close button in caption edit panel */
.caption-edit-header .close-panel-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caption-edit-header .close-panel-btn:hover {
   color: #000;
}

.caption-edit-header .close-panel-btn svg {
    stroke: black;
}
.caption-edit-header .top-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.caption-edit-header .import-text {
    font-size: 13px;
    color: #888;
    margin-top: 6px;
}


/* Scrollbar styling for caption edit content */
.caption-edit-content::-webkit-scrollbar {
    width: 8px;
}

.caption-edit-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.caption-edit-content::-webkit-scrollbar-thumb {
    background: #9C27B0;
    border-radius: 4px;
}

.caption-edit-content::-webkit-scrollbar-thumb:hover {
    background: #7B1FA2;
}

 
#caption-hashtags {
    height: 120px;
    resize: vertical; /* allows user to resize vertically if needed */
    font-family: "Montserrat", Arial, sans-serif;
}

/* Caption submit button */
.submit-caption-btn {
        padding: 8px 25px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
 
    transition: background 0.2s ease;
    width: auto;
 
}

.submit-caption-btn:hover {
    background: #45a049;
}

.submit-caption-btn:active {
    transform: translateY(1px);
}


/* Transcript Side Panel */
.canvas-with-panel {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.keypoints-side-panel {
    display: none;
    flex-direction: column;
    width: 200px;
    min-width: 200px;
    background: #ECF2F6;

    overflow: hidden;
    margin-right: 8px;
    align-self: stretch;
}
.keypoints-side-panel.active {
    display: flex;
}
.keypoints-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #D1DEF2;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.keypoints-side-header h4 {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: #2a4a63;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.keypoints-side-close {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(42,74,99,0.5);
    padding: 2px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}
.keypoints-side-close:hover {
    color: #2a4a63;
    background: rgba(0,0,0,0.08);
}
.keypoints-side-subtitle {
    padding: 8px 12px 5px 12px;
    font-size: 12px;
    border-bottom: 1px solid #ccc;
    font-style: italic;
    flex-shrink: 0;
}
.keypoints-side-content {
    flex: 1;
    overflow-y: auto;
    padding: 3px 4px 14px 8px;
    min-height: 0;
}
.keypoints-side-content::-webkit-scrollbar {
    width: 8px;
}
.keypoints-side-content::-webkit-scrollbar-thumb {
    background: rgba(42,74,99,0.25);
    border-radius: 2px;
}
.keypoints-side-empty {
    color: rgba(42,74,99,0.45);
    font-size: 12px;
    font-style: italic;
    margin: 0;
    padding-top: 6px;
}
.kp-transcript-text {
    font-size: 12px;
    line-height: 1.5;
    color: #2a3f52;
    white-space: pre-wrap;
    user-select: text;
    cursor: text;
}
.kp-strip-label {
    font-size: 11px;
font-style: italic;
margin-top: 4px;
}

.kp-timestamp {
    color: #3a7aaa;
    font-weight: 600;
    font-size: 11px;
}
.media-icon.keypoints-active {
    background: rgba(255,255,255,0.2);
}
#keypoints-panel-toggle {
    width: 100%;
    margin-top: 0px;
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 0px;
}
#keypoints-panel-toggle:hover {
    background: #D1DEF2;
}
#keypoints-panel-toggle.keypoints-active {
    background: #D1DEF2;
}
#watch-video-btn {
    width: 100%;
    margin-top: 0px;
    background: rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 6px;
    padding-bottom: 6px;
    margin-bottom: 0px;
}
#watch-video-btn:hover {
    background: #D1DEF2;
}
.kp-line { margin-bottom: 0px; cursor: default; }
.kp-word { display: inline; }
.kp-word-active { background: rgba(255, 200, 0, 0.45); border-radius: 2px; }
.kp-timestamp { display: block; font-size: 10px; color: #3a7aaa; font-weight: 600; margin-top: 3px;}
.kp-text { font-size: 12px; color: #2a3f52; }
.left-panel-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.kp-line.kp-highlighted {
    background: transparent;
}
.kp-highlighted.kp-strip-0 { background: rgba(255, 180, 0, 0.20); border-left: 3px solid rgba(255, 180, 0, 0.7); }
.kp-highlighted.kp-strip-1 { background: rgba(0, 180, 255, 0.15); border-left: 3px solid rgba(0, 180, 255, 0.6); }
.kp-highlighted.kp-strip-2 { background: rgba(100, 220, 100, 0.15); border-left: 3px solid rgba(100, 220, 100, 0.6); }
.kp-highlighted.kp-strip-3 { background: rgba(255, 100, 180, 0.15); border-left: 3px solid rgba(255, 100, 180, 0.6); }
.kp-highlighted.kp-strip-4 { background: rgba(180, 100, 255, 0.15); border-left: 3px solid rgba(180, 100, 255, 0.6); }
.kp-timestamp:hover {
    color: #1a5a8a;
    text-decoration: underline;
    cursor: pointer;
}
.keypoints-side-switch {
    background: #3E6D89;
    border: 1px solid #3E6D89;
    color: #fff;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 55px;
}
.keypoints-side-switch:hover { background: #2c5770; border-color: #2c5770; }

.keypoints-side-subtitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 12px;
    opacity: 0.8;
}
#kp-speak-btn {
    flex-shrink: 0;
    margin-left: 6px;

    cursor: pointer;
    display: none;
}
#kp-speak-btn:hover { opacity: 0.6; }
.kp-story-view { padding: 4px 0; }
 
.kp-story-slide-label { font-size: 10px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.kp-story-para { margin: 0; line-height: 1.55; font-size: 12px; color: #2a3f52; }


.kp-story-textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    color: #2a3f52;
    line-height: 1.5;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 5px 7px;
    resize: none;
    overflow-y: hidden;
    margin-bottom: 4px;
    font-family: inherit;
    background: #fff;
}
.kp-story-textarea:focus { outline: none; border-color: #3a7aaa; }
.kp-story-save-btn {
    width: 100%;
    margin-top: 8px;
    padding: 7px 0;
    background: #2c5770;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.kp-story-save-btn:hover { background: #1e3d50; }
/* Make sure thumbnail-item has position: relative */
.thumbnail-item {
    width: 98%;
	margin: 0 auto;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative; /* CRITICAL */
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video play icon overlay on thumbnails */
.thumbnail-item .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    width: 40px;
    height: 40px;
}

.thumbnail-item:hover .video-play-icon {
    opacity: 1;
}

.video-play-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    display: block;
    width: 100%;
    height: 100%;
}

 
/* Example caption box styling */
.example-caption-box {
    background: linear-gradient(135deg, #fafbfc 0%, #e8ecf1 100%);
    border: 2px solid #d1d9e0;
    border-radius: 8px;
    padding: 15px;
 min-height: 400px;
}

.example-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.example-label svg {
    color: #3498db;
    flex-shrink: 0;
}

.example-caption-content {
    font-size: 13px;
    line-height: 1.6;
    color: #2c3e50;
}

.example-caption-content p {
    margin: 0 0 10px 0;
}

.example-caption-content p:last-child {
    margin-bottom: 0;
}

.example-caption-content .tags {
    color: #8e44ad;
    font-size: 12px;
    font-weight: 500;
    margin-top: 12px;
}

.example-caption-content .hashtags {
    color: #3498db;
    font-size: 12px;
    margin-top: 8px;
}

.example-caption-content .url {
    color: #e74c3c;
    font-weight: 500;
    font-size: 12px;
    margin-top: 8px;
}

/* Highlight URL in example when field is focused */
.example-caption-content .url.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}

@keyframes pulseHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Highlight tags in example when field is focused */
.example-caption-content .tags.highlight {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #8e44ad;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}

/* Highlight hashtags in example when checkbox is focused */
.example-caption-content .hashtags.highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}

/* Highlight ALL paragraphs in Caption Preview when Caption Length field is focused */
.caption-preview p.highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 0 8px; /* Only horizontal padding */
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}

/* Highlight URL in Caption Preview when field is focused */
.caption-preview .url.highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}

/* Highlight tags in Caption Preview when field is focused */
.caption-preview .tags.highlight {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #8e44ad;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}

/* Highlight hashtags in Caption Preview when checkbox is focused */
.caption-preview .hashtags.highlight {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    animation: pulseHighlight 0.5s ease;
    transition: all 0.3s ease;
}


/* ADD THIS - Remove gaps between consecutive highlighted paragraphs */
.caption-preview p.highlight:not(.tags):not(.hashtags):not(.url) {
    margin-bottom: 0;
    border-radius: 0;
    padding: 0 8px; /* Remove top/bottom padding, keep left/right only */
}

.caption-preview p.highlight:not(.tags):not(.hashtags):not(.url):first-of-type {
    border-radius: 4px 4px 0 0; /* Round top corners only */
}

.caption-preview p.highlight:not(.tags):not(.hashtags):not(.url):last-of-type {
    border-radius: 0 0 4px 4px; /* Round bottom corners only */
    margin-bottom: 10px;
}

/* If only one main paragraph, keep all corners rounded */
.caption-preview p.highlight:not(.tags):not(.hashtags):not(.url):only-of-type {
    border-radius: 4px;
}



        .projects-workspace {
            flex: 1;
            padding: 30px 40px 40px 40px;
            overflow-y: auto;
        }

        .projects-content-wrapper,
		.reports-content-wrapper,
		.schedule-content-wrapper
		 {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
        }

        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .projects-header h1 {
            font-size: 28px;
            color: #2d3748;
            margin: 0;
        }

        .projects-actions {
            display: flex;
            gap: 15px;
        }

        .projects-actions .btn {
            padding: 10px 20px 10px 16px;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }
        .schedule-save-actions .btn-primary {
padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
 
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    background: #0E6FD1;
    color: white;
	width: auto;
	float: right;
        }

        .schedule-save-actions .btn-primary:hover {
 background: #0459AE;
 
    transform: translateY(-1px);
 
        }

        .projects-container {
            background: white;
            border-radius: 16px;
            padding: 20px 30px 30px 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
			border: 1px solid #e2e8f0;
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .table-header h2 {
            font-size: 20px;
            color: #2d3748;
            margin: 0;
        }

        .search-box {
            padding: 10px 15px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            width: 300px;
        }

        .search-box:focus {
            outline: none;
            border-color: #667eea;
        }

        .projects-table {
            width: 100%;
            border-collapse: collapse;
			table-layout: fixed;
        }

        .projects-table thead {
            background: #f7fafc;
        }

.projects-table th {
    padding: 15px 8px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.projects-table td {
    padding: 15px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #4a5568;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
 

        .project-name {
            font-weight: 600;
            color: #2d3748;
        }
 
th.sortable {
    cursor: pointer;
    user-select: none;
}
th.sortable:hover {
    background: rgba(255,255,255,0.05);
}
.sort-icon {
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}
.sort-icon.inactive { opacity: 0.6; }
.sort-icon.active { opacity: 1; color: #4f86ad; fill: #4f86ad; }
.project-id {
    font-size: 12px;
    color: #999;
    font-family: monospace;
}

 
        .ratio-badge {
            display: inline-block;
            padding: 4px 8px;
            background: #e6f4ff;
            color: #0066cc;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .slide-count {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .date-text {
            color: #718096;
            font-size: 13px;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
        }

        .btn-icon {
            padding: 6px 10px;
            background: transparent;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 13px;
            color: #4a5568;
        }

 
.btn-icon.duplicate-btn {
    background: #e8f4e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.btn-icon.duplicate-btn:hover {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.btn-icon.edit-btn {
    background: #F7FBFE;   
    border-color: #93B7DB;
    color: #0066cc;
}

.btn-icon.edit-btn:hover {
    background: #cce7ff;
    border-color: #80bfff;
    color: #0052a3;
}

.btn-icon.delete {
    background: #fff5f5;  /* Pale red */
    border-color: #fecdca;
    color: #c53030;
}

.btn-icon.delete:hover {
    background: #ffe5e5;
    border-color: #fc8181;
    color: #a02020;
}

        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: #718096;
        }

        .empty-state svg {
            width: 80px;
            height: 80px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .empty-state h3 {
            font-size: 20px;
            margin-bottom: 10px;
            color: #4a5568;
        }


.pagination {
            display: flex;
            justify-content: space-between;
            align-items: center;
     
            padding-top: 20px;
 
        }

        .pagination-info {
            color: #718096;
            font-size: 14px;
        }

        .pagination-controls {
            display: flex;
            gap: 5px;
        }

 
.pagination-btn {
    padding: 6px 0;              
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;                
    height: 32px;             
}
        .pagination-btn:hover:not(:disabled) {
            background: #f7fafc;
            border-color: #cbd5e0;
        }

        .pagination-btn.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
        }
        .pagination-btn.active:hover {
            color: black;
        }
        .pagination-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
		
		.pagination-btn svg {
            width: 12px;
            height: 12px;
        }
		
        .loading-spinner {
            text-align: center;
            padding: 100px 20px;
            color: #718096;
        }

        .loading-spinner svg {
            animation: spin 1s linear infinite;
            width: 50px;
            height: 50px;
            margin-bottom: 20px;
        }
 
		/* Tips Container - Positioned like Text Toolbar */
.tips-container {
    position: absolute;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    z-index: 1000;
    max-width: 250px;
    pointer-events: none;
}

.tips-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.tips-close {
    position: absolute;
    top: 7px;
    right: 7px;
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tips-close:hover {
    opacity: 1;
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tips-header svg {
    flex-shrink: 0;
}

.tips-content {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.5;
}
/* ========================================
   STATUS SYSTEM
   ======================================== */

/* Status Button (Clickable with dropdown) */
.status-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px 6px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-btn.ready {
    color: #155724;
        background: #d4edda;  /* Pale green */
}

.status-btn.draft {
    color: #856404;
    background: #fff3cd;  /* Pale yellow */
}

.status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.status-panel-actions .btn-primary {
    background: #007bff;
    color: white;
}

.status-panel-actions .btn-primary:hover {
    background: #0056b3;
}
.status-btn svg {
    transition: transform 0.3s;
    width: 18px;
    height: 18px;
}

.status-btn.expanded svg {
    transform: rotate(180deg);
}

/* ========================================
   EXPANDABLE STATUS PANELS
   ======================================== */

/* Panel Row */
.status-panel-row {
    background: #f8f9fa;
}

.status-panel-row td {
    padding: 0 !important;
    border-top: none !important;
}

/* Panel Content */
.status-panel-content {
    position: relative;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, height 0.3s ease-out;
}

.status-panel-content.expanded {
    opacity: 1;
    transform: scaleY(1);
    height: auto;
    padding: 20px 20px 20px 20px;
    overflow: visible;
}

/* Panel Grid */
.status-panel-grid {
    display: grid;
    width: calc(100% - 20px);
    grid-template-columns: 45% 55%;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .status-panel-grid {
        grid-template-columns: 1fr;
    }
}

/* Info Cards */
.status-info-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.status-info-card h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-info-card h4 svg {
    width: 16px;
    height: 16px;
    stroke: #0E6FD1;
}

/* Status Details */
.status-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
    font-size: 13px;
}

.status-detail:last-child {
    border-bottom: none;
}

.status-detail-label {
    color: #6c757d;
    font-weight: 500;
}

.status-detail-value {
    color: #212529;
    font-weight: 600;
}

.status-detail-value.success {
    color: #28a745;
}

.status-detail-value.warning {
    color: #ffc107;
}

.status-detail-value.error {
    color: #dc3545;
}

/* Large Status Badge (in panel) */
.status-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-large.draft {
    background: #6c757d;
    color: white;
}

.status-badge-large.ready {
    background: #28a745;
    color: white;
}

/* Validation Issues */
.validation-issues {
    margin-top: 12px;
}

.validation-issue {
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 4px;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.validation-issue svg {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}

.validation-issue.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.validation-issue.warning {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.validation-issue.success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

/* Panel Actions */
.status-panel-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.status-panel-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.status-panel-actions .btn-success {
    background: #28a745;
    color: white;
}

.status-panel-actions .btn-success:hover {
    background: #218838;
}
 
/* Smaller button variant - grey styled like primary */
.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
    font-weight: 700;
     
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
	background: #0E6FD1;
    color: white;
 
	
}

.btn-sm:hover {
 background: #0459AE;
 
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-sm:active {
    transform: translateY(0);
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}
 
.status-panel-actions .btn svg {
    width: 14px;
    height: 14px;
}
/* Close button for status panel */
.status-panel-close {
    position: absolute;
    top: 0px;
    right: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6c757d;
    transition: color 0.2s;
    z-index: 10;
}

.status-panel-close:hover {
    color: #dc3545;
}

.status-panel-close svg {
    width: 18px;
    height: 18px;
}

 


/* Preview Section in Status Panel */
.status-preview-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.status-preview-section h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slide-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

/* Default 4:5 ratio */
.slide-preview-item {
    aspect-ratio: 4 / 5;
}
/* 3:4 ratio */
.slide-preview-item[data-ratio="3:4"] {
    aspect-ratio: 3 / 4;
}
/* 1:1 ratio */
.slide-preview-item[data-ratio="1:1"] {
    aspect-ratio: 1 / 1;
}
 
/* Full-width preview card */
.status-info-card.full-width {
    grid-column: 1 / -1;
}
.slide-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}
.slide-preview-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
}
.slide-preview-item img,
.slide-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-preview-number {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}

.caption-preview {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    max-height: 120px;
    overflow-y: auto;
}

.caption-preview-text {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.caption-preview-empty {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.preview-divider {
    height: 1px;
    background: #dee2e6;
    margin: 15px 0;
}
.caption-preview-empty {
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}


.slide-preview-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.9;
}


/* Scheduling Options */
.scheduling-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.scheduling-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.scheduling-checkbox:hover {
    background: #f8f9fa;
}

.scheduling-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.scheduling-checkbox span {
    font-size: 13px;
    color: #495057;
    font-weight: 500;
}


/* Schedule Mode Selector */
.schedule-mode-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 6px;
}

.schedule-mode-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
}

.schedule-mode-option input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

.schedule-mode-option:has(input:checked) {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Schedule Sections */
.schedule-section {
    margin-top: 15px;
}

.schedule-field {
    margin-bottom: 12px;
}

.schedule-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.schedule-input,
.schedule-input-inline {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    background: white;
}

.schedule-input:focus,
.schedule-input-inline:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.schedule-divider {
    height: 1px;
    background: #e9ecef;
    margin: 5px 0 15px 0;
}

/* Repeat Options */
.repeat-end-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.repeat-end-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
}

.repeat-end-option input[type="radio"] {
    cursor: pointer;
}

.repeat-count-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

/* Checkbox Options */
.schedule-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #495057;
    transition: background 0.2s;
}

.schedule-checkbox-option:hover {
    background: #f8f9fa;
}

.schedule-checkbox-option input[type="checkbox"] {
    cursor: pointer;
}

.schedule-checkbox-main {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
}

.schedule-checkbox-main input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label-large {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

/* Time Slots */
.time-slots-list {
    display: flex;
 flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.time-slot-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.time-slot-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 13px;
}

.time-slot-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.time-slot-remove:hover {
    background: #c82333;
}

.btn-add-slot {
    width: 100%;
    padding: 8px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-add-slot:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* Days Selector */
.days-selector {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.day-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.2s;
}

.day-checkbox:hover {
    background: #f8f9fa;
}

.day-checkbox:has(input:checked) {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.day-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.days-quick-select {
    display: flex;
    gap: 6px;
}

.btn-quick-day {
    flex: 1;
    padding: 6px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick-day:hover {
    background: #e9ecef;
    color: #495057;
}

/* Queue Info Box */
.queue-info-box {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
}

.queue-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
}

.queue-info-item svg {
    color: #007bff;
    flex-shrink: 0;
}

.queue-info-label {
    color: #495057;
    font-weight: 500;
}

.queue-info-value {
    color: #007bff;
    font-weight: 700;
    margin-left: auto;
}

/* Two fields per row */
.schedule-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
/* Inline action buttons in left panel */
.status-panel-actions-inline {
    display: flex;
    justify-content: flex-end;
    align-items: center;    
	gap: 15px;
}

.status-panel-actions-inline .btn {
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    background: #0E6FD1;
 
}
.status-panel-actions-inline .btn:hover {
background: #0459AE;
 
    transform: translateY(-1px);
 
}


.status-panel-actions-inline .btn svg {
    width: 18px;
    height: 18px;
}

/* "Post Now" Button - Orange/Red accent */
.btn.btn-now {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn.btn-now:hover {
    background: linear-gradient(135deg, #e85a2a 0%, #e0841a 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.btn.btn-now svg {
    width: 16px;
    height: 16px;
}

/* "Save Schedule" Button - Green */
.btn.btn-success,
.schedule-save-actions .btn-success {
    background: #0E6FD1;
    color: white;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
		float: right;
}
 
.btn.btn-success:hover,
.schedule-save-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.btn.btn-success svg,
.schedule-save-actions .btn-success svg {
    width: 16px;
    height: 16px;
}

/* Status Button - Posted */
.status-btn.posted {
    color: #0c5460;
    background: #d1ecf1;  /* Pale cyan */
}

/* Status Button - Scheduled */
.status-btn.scheduled {
    color: #004085;
    background: #cce5ff;  /* Pale blue */
}

/* Status Badge Large - Posted */
.status-badge-large.posted {
    background: #17a2b8;
    color: white;
}

/* Status Badge Large - Scheduled */
.status-badge-large.scheduled {
    background: #007bff;
    color: white;
}


/* Client Selection Panel */
.client-panel {
    width: 75px;
	min-width: 75px;
    background: linear-gradient(135deg, #f3f3f3 0%, #e3e3e3 50%, #d3d3d3 100%);
    padding: 10px 12px 10px 12px;
    display: flex;
    flex-direction: column;
    
    /* Sticky positioning */
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: calc(100vh - 65px);  /* CHANGED - subtract top bar height */
    overflow-y: auto;
}

.client-panel-header {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
  
    text-align: center;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.client-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid #bbb;
	margin-bottom: 15px;
}

.client-icon:hover {
    background: #f5f5f5;
    border-color: #0E6FD1;
}

.client-icon.selected {
    background: #E5EEF5;
    border-color: #999;
    box-shadow: 0 2px 8px rgba(128, 128, 128, 0.5);
}

.client-logo {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
 
 
}

.client-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
  text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}
 

.client-icon .client-name {
    font-size: 10px;
    font-weight: 700;
    color: #333;
  text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
}

.client-icon.selected .client-name {
    color: #0E6FD1;
}
.add-client-panel,
.edit-client-panel,
.profile-client-panel {
    padding: 0px;
    margin: 0px;
    border-bottom: 0px solid #eee;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, margin 0.4s ease-out, border-bottom 0.4s ease-out, opacity 0.3s ease-out;
}

.add-client-panel.open,
.edit-client-panel.open,
.profile-client-panel.open {
    padding: 0px 0 20px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, padding 0.4s ease-in, margin 0.4s ease-in, border-bottom 0.4s ease-in, opacity 0.3s ease-in;
}
		 .custom-select {
      appearance: none;             /* Remove default arrow */
      -webkit-appearance: none;     /* Safari/Chrome */
      -moz-appearance: none;        /* Firefox */

      padding: 8px 36px 8px 12px;   /* extra space on right for arrow */
      border: 1px solid #ced4da;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      color: #495057;
      cursor: pointer;

      background-color: #fff;
      background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path fill="%23495057" d="M0 0l5 6 5-6z"/></svg>');
      background-repeat: no-repeat;
      background-position: right 12px center; /* space from right edge */
      background-size: 10px 6px;  
	  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    /* Optional: focus style */
    .custom-select:focus {
      outline: none;
      border-color: #80bdff;
      box-shadow: 0 0 0 2px rgba(0,123,255,.25);
    }
	
 
 

/* AI Engine Switch Buttons - Floating Left Panel */

.ai-engine-buttons {
    position: fixed;
    left: 178px; /* Right after side-panel (90px) + client-panel (80px) + 8px gap */
    top: 242px; /* Align with canvas-and-add-slide area */
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
	
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.ai-engine-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 5px 7px 5px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: #f8f8f8;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 54px;
    text-align: center;
}

.ai-engine-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.ai-engine-btn.active {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
    border-color: #9C27B0;
    color: white;
	cursor: default;
}

.ai-engine-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.ai-engine-btn span {
    line-height: 1.1;
    word-spacing: 100vw; /* Forces one word per line */
}


.ai-engine-btn.failed {
    border-color: #dc3545;
    background: #fff5f5;
    color: #dc3545;
    cursor: not-allowed;
    opacity: 0.8;
}

.ai-engine-btn.failed:hover {
    background: #fff5f5;
    border-color: #dc3545;
    transform: none;
}

.ai-engine-btn.failed svg {
    stroke: #dc3545;
}


/* Inline Settings Row */
 
.settings-row td {
    padding: 0 !important;
    border-bottom: 0;
}


 
.settings-inline {
    background: #f8fafb;
    border-left: 3px solid #0E6FD1;
    position: relative;
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.settings-row.open .settings-inline {
    max-height: 800px;
    padding: 20px 25px;
}



 

.settings-inline .profile-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}



.settings-inline h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    color: #333;
    font-size: 15px;
}




/* AI Profile row */

 

.ai-profile-inline h4 {
    font-size: 15px;
    color: #0E6FD1;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-profile-inline textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    overflow: hidden;
    min-height: 200px;
}

.ai-profile-inline textarea:focus {
    outline: none;
    border-color: #0E6FD1;
}

.ai-profile-inline .profile-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.ai-profile-inline .profile-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
}


 .profile-item-content textarea {
    min-height: 200px;
    height: auto;
    overflow-y: hidden;
}

/* Smooth slide for profile rows */
.ai-profile-row td > div,
.settings-row td > div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 25px;
}

.ai-profile-row.open td > div,
.settings-row.open td > div {
    max-height: 2000px;
    padding: 20px 25px;
    transition: max-height 0.6s ease-in, padding 0.5s ease-in;
}

/* Smooth slide for profile item content */
.profile-item-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-top: 0 solid #dee2e6;
}

.profile-item.expanded .profile-item-content {
    max-height: 1000px;
    padding: 15px;
    border-top: 1px solid #dee2e6;
    transition: max-height 0.4s ease-in, padding 0.3s ease-in;
}

.ai-profile-inline,
.settings-inline {
    position: relative;
}
.ai-profile-row td {
    padding: 0 !important;
    border-bottom: 0;
}

 
.ai-profile-inline {
    background: #f8fafb;
    border-left: 3px solid #17a2b8;
    position: relative;
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.ai-profile-row.open .ai-profile-inline {
    max-height: 1500px;
    padding: 20px 25px;
}




.profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.profile-tab {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.profile-tab:hover {
    color: #495057;
    background: #f8f9fa;
}

.profile-tab.active {
    color: #0E6FD1;
    border-bottom-color: #0E6FD1;
}


/* Smooth slide animation for add user panel */
#add-user-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    padding: 0;
    margin: 0;
    border: none;
}

#add-user-panel.open {
    max-height: 500px;
    opacity: 1;
    padding: 0px 0 20px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.panel-close-x {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 34px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.panel-close-x:hover {
    background: #e9ecef;
    color: #333;
}

#add-user-panel,
#edit-user-panel,
#add-client-panel {
    position: relative;
}
      
		
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn:disabled, .btn-success:disabled, .btn-primary:disabled, .btn-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

        .admin-workspace {
            flex: 1;
            padding: 30px 40px 40px 40px;
            overflow-y: auto;
        }
        
        .admin-header {
            margin-bottom: 30px;
        }
        
        .admin-header h1 {
            font-size: 28px;
            color: #333;
            margin-bottom: 10px;
        }
        
        .admin-header p {
            color: #666;
            font-size: 14px;
        }
        
        .admin-content-wrapper {
            background: white;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid #e2e8f0;
            padding: 20px 30px 30px 30px;
        }
.reports-workspace {
            padding: 20px 30px;
            width: 100%;
        }
        
        .reports-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .reports-header h1 {
            margin: 0;
            font-size: 24px;
        }
        
        .reports-filters {
            display: flex;
            gap: 15px;
            align-items: center;
        }
        
        .reports-filters select {
            padding: 6px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
        }
        
        .reports-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .report-card {
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .report-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        }
.report-card-image {
    position: relative;
    aspect-ratio: 4/5;
    background: #f0f0f0;
    overflow: hidden;
}

.report-card-image img,
.report-card-image video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
 
        
        .report-card-image .carousel-indicator {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(0,0,0,0.7);
            color: #fff;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .report-card-body {
            padding: 15px;
        }
        
        .report-card-title {
            font-weight: 600;
            font-size: 14px;
            margin-bottom: 5px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .report-card-client {
            font-size: 12px;
            color: #666;
            margin-bottom: 5px;
        }
        
        .report-card-date {
            font-size: 12px;
            color: #888;
            margin-bottom: 12px;
        }
        
        .report-card-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
        }
        
        .stat-item svg {
            width: 16px;
            height: 16px;
            color: #666;
        }
        
        .stat-item .stat-value {
            font-weight: 600;
        }
        
        .stat-item.likes svg { color: #ed4956; }
        .stat-item.comments svg { color: #0095f6; }
        .stat-item.reach svg { color: #8e44ad; }
        .stat-item.impressions svg { color: #27ae60; }
        .stat-item.saved svg { color: #f39c12; }
        .stat-item.engagement svg { color: #e74c3c; }
        
        .report-card-actions {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .report-card-actions a {
            font-size: 13px;
            color: #0095f6;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .report-card-actions a:hover {
            text-decoration: underline;
        }
        .reports-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}
 

/* Reports Filter Bar */
.reports-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.reports-filters::before {
    content: 'Filter';
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #667eea;
    margin-right: 8px;
}

.reports-filters select {
    padding: 10px 35px 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23667eea"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    min-width: 160px;
}

.reports-filters select:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.reports-filters select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}


/* Chart Container */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.chart-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.likes {
    background: linear-gradient(135deg, #a8d5ba 0%, #7ec8a3 100%);
}

.legend-color.comments {
    background: linear-gradient(135deg, #f4b8c5 0%, #e8a0b0 100%);
}

.chart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.chart-empty p {
    margin: 0;
    font-size: 14px;
}

#clientChart {
    max-height: 180px;
}




        .loading-spinner {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }
        
        .loading-spinner svg {
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin-bottom: 10px;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: #666;
        }
        
        .empty-state svg {
            width: 60px;
            height: 60px;
            margin-bottom: 15px;
            opacity: 0.5;
        }
        
.summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 16px;
            margin-bottom: 30px;
        }
        
        .summary-card {
            background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
            
            padding: 15px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            border: 1px solid rgba(0,0,0,0.04);
            transition: transform 0.2s, box-shadow 0.2s;
            position: relative;
            overflow: hidden;
        }
        
        .summary-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }
        
        .summary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
        }
        
        .summary-card:nth-child(1)::before { background: linear-gradient(180deg, #667eea, #764ba2); }
        .summary-card:nth-child(2)::before { background: linear-gradient(180deg, #ed4956, #f77062); }
        .summary-card:nth-child(3)::before { background: linear-gradient(180deg, #0095f6, #00c6ff); }
        .summary-card:nth-child(4)::before { background: linear-gradient(180deg, #8e44ad, #9b59b6); }
        .summary-card:nth-child(5)::before { background: linear-gradient(180deg, #27ae60, #2ecc71); }
        .summary-card:nth-child(6)::before { background: linear-gradient(180deg, #f39c12, #f1c40f); }
        
        .summary-card-label {
            font-size: 12px;
            color: #666;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 500;
        }
        
        .summary-card-value {
            font-size: 24px;
            font-weight: 700;
            background: linear-gradient(135deg, #333 0%, #555 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .refresh-btn {
            padding: 8px 16px;
            background: #0095f6;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .refresh-btn:hover {
            background: #0086e0;
        }
        
        .refresh-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        
        .refresh-btn svg {
            width: 16px;
            height: 16px;
        }
        
        .refresh-btn.loading svg {
            animation: spin 1s linear infinite;
        }
		
		
		.posted-workspace {
    flex: 1;
    padding: 30px 40px 40px 40px;
    overflow-y: auto;
}
.posted-header h1 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}
.posted-section {
    margin-bottom: 40px;
 
    border-radius: 16px;
    padding: 20px 30px 30px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}
.posted-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	font-size: 13px;
}
.posted-table th,
.posted-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
	
}
.posted-table th {
    background: #f8f9fa;
    font-weight: 600;
    	font-size: 14px;
    color: #666;
}
.posted-table .thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.posted-table .actions {
    white-space: nowrap;
}
 
 
.posted-table .actions .btn-delete {
    background: #fee;
    color: #c00;
}






.posted-table .actions a,
.posted-table .actions button {
    margin-right: 8px;
    padding: 5px 12px;
    font-size: 13px;
    background: #F7FBFE;
    border: 1px solid #93B7DB;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    color: #0066cc;
    transition: all 0.2s;
}

.posted-table .actions a:hover,
.posted-table .actions button:hover {
    background: #e8f4fc;
    border-color: #0066cc;
}

.posted-table .actions .btn-delete {
    background: #FEF2F2;
    border-color: #F87171;
    color: #DC2626;
}

.posted-table .actions .btn-delete:hover {
    background: #FEE2E2;
    border-color: #DC2626;
}



.posted-workspace .empty-message {
    color: #888;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
}
.posted-workspace .error-message {
    color: #c00;
    padding: 20px;
    text-align: center;
}
.posted-workspace .posted-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* ==================== Save Button States ==================== */

#save-project-btn {
    position: relative;
    transition: all 0.3s ease;
}

/* Saving State - Orange with animation */
#save-project-btn.saving {
    background: linear-gradient(135deg, #ff9800, #f57c00) !important;
    border-color: #ef6c00 !important;
    color: #fff !important;
    animation: saving-pulse 1s ease-in-out infinite;
}

/* Success State - Green */
#save-project-btn.success {
    background: linear-gradient(135deg, #4caf50, #43a047) !important;
    border-color: #388e3c !important;
    color: #fff !important;
}

/* Error State - Red */
#save-project-btn.error {
    background: linear-gradient(135deg, #f44336, #e53935) !important;
    border-color: #c62828 !important;
    color: #fff !important;
    animation: error-shake 0.5s ease-in-out;
}

@keyframes saving-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* ==================== Save Overlay ==================== */

.save-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    backdrop-filter: blur(3px);
	
}

.save-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-overlay-content {
    background: #fff;
    padding: 40px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
	min-height: 200px;
}

.save-overlay-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #ff9800;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.save-overlay-text {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.save-overlay-subtext {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/**
 * Video Editor Modal Styles
 * Trim and crop functionality for videos
 * Light pastel theme - Blue & Purple
 */

/* ==================== Modal Container ==================== */
.video-editor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.video-editor-modal.active {
    display: flex;
}

.video-editor-container {
    background: #ffffff;
    border-radius: 16px;
    width: 95%;
    max-width: 1350px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ==================== Header ==================== */
.video-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #e3f2fd 0%, #ede7f6 100%);
    border-bottom: 1px solid #e0e0e0;
}

.video-editor-header h3 {
    margin: 0;
    color: #37474f;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-editor-header h3 svg {
    stroke: #5c6bc0;
}

.video-editor-close {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.video-editor-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.video-editor-close svg {
    stroke: #546e7a;
    display: block;
}

/* ==================== Content Area ==================== */
.video-editor-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ==================== Video Preview Section ==================== */
.video-preview-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f5f5f5;
}

.video-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #263238;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Crop Overlay */
.crop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

 
.crop-box {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
    cursor: move;
    pointer-events: all;
}
.crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #5c6bc0;
    border-radius: 2px;
    pointer-events: all;
}

.crop-handle.nw { top: -6px; left: -6px; cursor: nw-resize; }
.crop-handle.ne { top: -6px; right: -6px; cursor: ne-resize; }
.crop-handle.sw { bottom: -6px; left: -6px; cursor: sw-resize; }
.crop-handle.se { bottom: -6px; right: -6px; cursor: se-resize; }
.crop-handle.n { top: -6px; left: 50%; transform: translateX(-50%); cursor: n-resize; }
.crop-handle.s { bottom: -6px; left: 50%; transform: translateX(-50%); cursor: s-resize; }
.crop-handle.e { right: -6px; top: 50%; transform: translateY(-50%); cursor: e-resize; }
.crop-handle.w { left: -6px; top: 50%; transform: translateY(-50%); cursor: w-resize; }

/* ==================== Video Controls ==================== */
.video-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 0;
}

.play-pause-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c6bc0, #7e57c2);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.play-pause-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(92, 107, 192, 0.4);
}

.play-pause-btn svg {
    fill: #fff;
}

.time-display {
    color: #546e7a;
    font-size: 13px;
    font-family: monospace;
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5c6bc0, #7e57c2);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid #5c6bc0;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    left: 0%;
}

/* ==================== Settings Panel ==================== */
.video-settings-panel {
    width: 350px;
    background: linear-gradient(180deg, #e3f2fd 0%, #ede7f6 100%);
    padding: 20px;
    overflow-y: auto;
    border-left: 1px solid #e0e0e0;
}

.settings-section {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.7);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-section h4 {
    color: #37474f;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h4 svg {
    stroke: #5c6bc0;
}

/* ==================== Trim Timeline ==================== */
.trim-timeline {
    position: relative;
    height: 50px;
    background: #fff;
    border-radius: 8px;
 
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.trim-track {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 4px;
}

.trim-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, rgba(92, 107, 192, 0.3), rgba(126, 87, 194, 0.3));
    border-left: 3px solid #5c6bc0;
    border-right: 3px solid #7e57c2;
    left: 0%;
    width: 100%;
}

.trim-handle {
    position: absolute;
    top: -5px;
    width: 16px;
    height: 40px;
    background: #fff;
    border-radius: 4px;
    cursor: ew-resize;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trim-handle.start {
    left: 0%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #5c6bc0, #3f51b5);
}

.trim-handle.end {
    left: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #7e57c2, #673ab7);
}

.trim-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.waveform-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

/* Trim Inputs */
.trim-inputs {
    display: flex;
    gap: 12px;
}

.trim-input-group {
    flex: 1;
}

.trim-input-group label {
    display: block;
    color: #78909c;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 500;
}

.trim-input-group input {
    width: 100%;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #37474f;
    font-family: monospace;
    font-size: 13px;
    text-align: center;
}

/* ==================== Crop Ratio Display ==================== */
.crop-ratio-display {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.15), rgba(126, 87, 194, 0.15));
    border: 1px solid rgba(92, 107, 192, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
	margin-top: 6px;
}

.crop-ratio-display span {
    color: #5c6bc0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Video Size Display */
.video-size-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
 
}

.video-size-display label {
    color: #78909c;
    font-size: 12px;
    font-weight: 500;
}

.video-size-display span {
    color: #37474f;
    font-size: 14px;
    font-family: monospace;
    font-weight: 600;
}

/* Crop Info */
.crop-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.crop-info-item {
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.crop-info-item label {
    display: block;
    color: #90a4ae;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 500;
}

.crop-info-item span {
    color: #37474f;
    font-size: 13px;
    font-family: monospace;
}

.reset-crop-btn {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #546e7a;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.reset-crop-btn:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.reset-crop-btn svg {
    stroke: #546e7a;
}

/* ==================== Output Section ==================== */
.output-section {
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.15), rgba(126, 87, 194, 0.15)) !important;
    border: 1px solid rgba(92, 107, 192, 0.3);
}

.output-section h4 {
    margin-bottom: 12px;
}

.output-section h4 svg {
    stroke: #5c6bc0 !important;
}

.output-info {
    display: flex;
    justify-content: space-between;
}

.output-info span {
    color: #3f51b5;
    font-size: 14px;
    font-family: monospace;
    font-weight: 600;
}

/* ==================== Processing Overlay ==================== */
.processing-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(38, 50, 56, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.processing-overlay.active {
    display: flex;
}

.processing-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.processing-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e0e0e0;
    border-top-color: #42a5f5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-text {
    color: #37474f;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

.processing-progress {
    width: 250px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.processing-bar {
    height: 100%;
    background: linear-gradient(90deg, #5c6bc0, #7e57c2);
    width: 0%;
    transition: width 0.3s;
}

/* ==================== Footer ==================== */
.video-editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #e3f2fd 0%, #ede7f6 100%);
    border-top: 1px solid #e0e0e0;
}

.editor-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.editor-btn.cancel {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #546e7a;
}

.editor-btn.cancel:hover {
    background: #f5f5f5;
    border-color: #bdbdbd;
}

.editor-btn.skip {
    background: #fff;
    border: 1px solid #bdbdbd;
    color: #37474f;
}

.editor-btn.skip:hover {
    background: #fafafa;
    border-color: #9e9e9e;
}

.editor-btn.apply {
    background: linear-gradient(135deg, #5c6bc0 0%, #7e57c2 100%);
    border: none;
    color: #fff;
}

.editor-btn.apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 107, 192, 0.4);
}

.editor-btn.apply svg {
    stroke: #fff;
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .video-editor-content {
        flex-direction: column;
    }
    
    .video-settings-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        max-height: 300px;
    }
    
    .video-preview-section {
        min-height: 300px;
    }
}

/* ==================== Text Overlay ==================== */
.text-overlay-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-overlay-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.text-overlay-input:focus {
    outline: none;
    border-color: #42a5f5;
}

.text-overlay-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.text-control-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.text-control-group label {
    font-size: 11px;
    color: #78909c;
    font-weight: 500;
}

.text-control-group input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.text-control-group input[type="number"]:focus {
    outline: none;
    border-color: #42a5f5;
}

.text-control-group input[type="color"] {
    width: 100%;
    height: 36px;
    padding: 2px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}

.text-overlay-hint {
    font-size: 11px;
    color: #90a4ae;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* Draggable Text Preview */
.text-overlay-preview {
    position: absolute;
    padding: 8px 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    cursor: move;
    user-select: none;
    z-index: 20;
    white-space: nowrap;
    border: 2px dashed transparent;
    border-radius: 4px;
    transition: border-color 0.2s;
}

.text-overlay-preview:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.text-overlay-preview:active {
    border-color: #42a5f5;
}

 

.text-control-group.full-width {
    flex: none;
    width: 100%;
}

.text-overlay-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

#video-text-font {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    color: #37474f;
    cursor: pointer;
}

#video-text-font:focus {
    outline: none;
    border-color: #5c6bc0;
}
 
.screenshot-getmore-btn {
    position: absolute;
    left: -1px;
    margin-top: 36px;
    width: 32px;
    height: 32px;
    border: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: rgba(66, 153, 66, 0.9);
    color: white;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}
.screenshot-getmore-btn:hover {
    background: rgba(66, 153, 66, 1) !important;
    color: white;
}

/* Screenshot Refresh Buttons - positioned to right of canvas */
.screenshot-refresh-container {
 position: relative;
    height: 100%;
 
    display: none;
 
 
    z-index: 100;
}

.screenshot-refresh-container.active {
    display: flex;
}

.screenshot-refresh-btn {
    position: absolute;
 left: -1px;
 
    width: 32px;
    height: 32px;
    background: rgba(66, 153, 225, 0.9);
 border: 0px;
    border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
 outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.screenshot-refresh-btn:hover {
 
 background: rgba(45, 55, 72, 0.9);
    color: white;
 
}

.screenshot-refresh-btn:active {
    transform: scale(0.95);
}

.screenshot-refresh-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.screenshot-refresh-btn.loading svg {
    animation: spin 0.8s linear infinite;
}

.screenshot-refresh-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none; 
	margin: 0px 2px 1px 0px;
}
.text-refresh-btn {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    border: none;
    background: rgba(156, 39, 176, 0.85);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}
.text-refresh-btn svg {
    width: 16px;
    height: 16px;
}
.text-refresh-btn svg {
    width: 14px;
    height: 14px;
}
.text-refresh-btn:hover {
    opacity: 0.8;
    transform: scale(1.1);
}
.text-refresh-btn.loading svg {
    animation: spin 0.4s ease-out;
}
 
.logo-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-filename {
    font-size: 12px;
    color: #666;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

 #screenshot-refresh-container {
    pointer-events: none;
}
#screenshot-refresh-container button {
    pointer-events: auto;
}

/* ============================================
   MULTI-CAROUSEL: Status Panel Tabs
   Add to styles.css
   ============================================ */

/* Carousel count badge in project table */
.carousel-count-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Carousel tabs above the status panel grid */
.carousel-panel-tabs {
    display: flex;
    gap: 6px;
    padding: 0 0 15px 0;
    margin-bottom: 5px;
 
    flex-wrap: wrap;
}

 

.carousel-panel-tab:hover {
    border-color: #aaa;
    background: #f8f9fa;
}

.carousel-panel-tab.active {
    border-color: #4f86ad;
    background: #e8f4fd;
    box-shadow: 0 0 0 1px #4f86ad;
}

.carousel-panel-tab .cpt-num {
    font-weight: 700;
    color: #333;
}

.carousel-panel-tab.active .cpt-num {
    color: #4f86ad;
}

.carousel-panel-tab .cpt-status {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.carousel-panel-tab .cpt-status.draft {
    background: #f0f0f0;
    color: #666;
}

.carousel-panel-tab .cpt-status.scheduled {
    background: #fff3cd;
    color: #856404;
}

.carousel-panel-tab .cpt-status.posted {
    background: #d4edda;
    color: #155724;
}

.carousel-panel-tab .cpt-status.ready {
    background: #cce5ff;
    color: #004085;
}


 
 .carousel-panel-tab { display:flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid #ddd; border-radius:8px; background:#fff; cursor:pointer; transition:all 0.2s; font-size:13px; position:relative; }
.cpt-delete { display:flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; margin-left:4px; background:#dc3545; color:#fff; transition:all 0.2s; flex-shrink:0; }
.cpt-delete:hover { background:#b02a37; color:#fff; }
.carousel-panel-tab.active .cpt-delete:hover { background:#b02a37; }

/* AI Carousel Analyser Panel */
.ai-analyser-card {
    margin-top: 15px;
}

.ai-analyser-card h4 {
    color: #495057;
}
 

.ai-analyser-desc {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ai-analyser-desc b {
    display: block;
    color: #495057;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.ai-analyser-textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 70px;
}

.ai-analyser-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.ai-analyser-btn {
    background: #0E6FD1;
    color: white;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

/* AI Analyser Results */
.ai-analyser-loading {
    text-align: center;
    padding: 15px;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.ai-analyser-result {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    text-wrap-mode: wrap;
    white-space: normal;
}

.ai-analyser-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.ai-analyser-col {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    min-width: 0;
    overflow-wrap: break-word;
}

.ai-col-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid;
}

.claude-header  { color: #c05c2a; border-color: #e8845a; }
.chatgpt-header { color: #1a7a4a; border-color: #4aaa7a; }

.ai-overall-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.ai-overall-num          { font-size: 38px; font-weight: 700; line-height: 1; }
.ai-overall-num.claude   { color: #c05c2a; }
.ai-overall-num.chatgpt  { color: #1a7a4a; }

.ai-overall-label {
    font-size: 16px;
    color: #6c757d;
    font-weight: 600;
}

.ai-summary {
    font-size: 12px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.ai-scores {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 12px;
}

.ai-score-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.ai-score-label {
    width: 130px;
    flex-shrink: 0;
    color: #6c757d;
    font-weight: 600;
}

.ai-score-bar-wrap {
    flex: 1;
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.ai-score-bar { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.ai-score-bar.claude  { background: linear-gradient(90deg, #c05c2a, #e8845a); }
.ai-score-bar.chatgpt { background: linear-gradient(90deg, #1a7a4a, #4aaa7a); }

.ai-score-val {
    width: 32px;
    text-align: right;
    font-weight: 700;
    font-size: 11px;
    color: #495057;
}

.ai-feedback-section { margin-top: 10px; font-size: 12px; }

.ai-feedback-section strong {
    display: block;
    color: #495057;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ai-feedback-section ul {
    margin: 0;
    padding-left: 16px;
    color: #404951;
    line-height: 1.7;
} 


/* AI Analyse Slide-out Panel */
.aap-panel {
    position: fixed;
    left: -400px;
    top: 50%;
    transform: translateY(-50%);
    height: 70vh;
    width: 380px;
    transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10500;
    border-radius: 0 12px 12px 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}
.aap-panel.open {
    left: 0;
}
.aap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #2c3e50;
    color: #fff;
    flex-shrink: 0;
}
.aap-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.aap-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 2px;
    opacity: 0.8;
}
.aap-close:hover { opacity: 1; }
.aap-body {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================
   ATLAS WIDGET — INLINE PANEL MODE
   ============================================ */

/* Override fixed positioning when widget lives inside a panel */
.schedule-save-actions #atlas-voice-widget {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    flex-shrink: 0;
    z-index: auto !important;
}

/* Keep the bar visible and compact */
.schedule-save-actions #atlas-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2c5770 0%, #1b3b4f 100%);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 80px;
}

/* Transcript sits above the bar, hidden until spoken */
.schedule-save-actions #atlas-transcript {
    display: none;
}

.schedule-save-actions #atlas-voice-widget.atlas-open #atlas-transcript {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 380px;
    max-height: 250px;
    overflow-y: hidden;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Fix btn-success float inside flex */
.schedule-save-actions .btn-success,
.schedule-save-actions .btn-primary {
    float: none !important;
    margin-left: auto;
}

.schedule-save-actions .atlas-line {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.schedule-save-actions .atlas-line-text {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
}
.schedule-save-actions #atlas-transcript-inner {
    padding: 8px 10px;
}
.top-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
 text-decoration: none;
 
}
.shotcut-logo-text {
    font-size: 32px;
    line-height: 1;
 
 
 
 
    letter-spacing: 0.01em;
 
}
.shotcut-shot {
    font-weight: 500;
    color: #81CCFF;
}
.shotcut-cut {
    font-weight: 700;
    color: #A0A0A0;
}

/* Subjects Modal */
.smo-overlay-inner { background:#fff; border-radius:12px; padding:15px 15px 20px 15px; max-width:800px; box-shadow:0 10px 40px rgba(0,0,0,0.3); min-height:500px; max-height:80vh; overflow-y:auto; display:flex; flex-direction:column; }
.smo-title { margin:0 0 10px; font-size:17px; color:#2c5770; }
.smo-item { display:flex; align-items:flex-start; gap:10px; padding:8px 10px; background:#f5f8fa; border-radius:6px; }
.smo-rank { width:22px; height:22px; background:#2c5770; color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; margin-top:2px; }
.smo-info { display:flex; flex-direction:column; gap:2px; margin-top: 4px;}
.smo-info strong { font-size:13px; color:#333; }
.smo-info span { font-size:12px; color:#666; }
.smo-count-btn { width:28px; height:28px; border:1px solid #ddd; border-radius:4px; background:#fff; cursor:pointer; font-size:18px; line-height:1; display:flex; align-items:center; justify-content:center; }
.smo-count-btn:hover { background:#f0f0f0; }
 
.smo-hint {  margin:0; font-size:12px; color:#000; font-style:italic; align-self:center; }
.smo-controls-row { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.smo-count-group { display:flex; align-items:center; gap:10px; }
.smo-count-label { font-size:13px; font-weight:600; color:#333; }
.smo-count-value { font-size:16px; font-weight:700; color:#2c5770; min-width:22px; text-align:center; }
.smo-actions { display:flex; gap:10px; }
.smo-btn-cancel { padding:7px 15px; border:1px solid #ddd; border-radius:6px; background:#fff; cursor:pointer; font-size:13px; color:#666; }
.smo-btn-confirm { padding:7px 15px; border:none; border-radius:6px; background:#2c5770; cursor:pointer; font-size:13px; color:#fff; font-weight:600; }
.smo-remove-btn { margin-left:auto; flex-shrink:0; background:none; border:none; cursor:pointer; color:#e53935; font-size:18px; line-height:1; padding:0 2px; }

.smo-list { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-bottom:10px; flex:1; overflow-y:auto; padding-right:4px; min-height:0; }
.smo-time-estimate { margin:12px 0 8px; font-size:12px; color:#2c5770; font-weight:600; }
.smo-email-label { display:flex; align-items:center; gap:6px; font-size:12px; color:#000; cursor:pointer; margin-top:4px; }
.smo-email-label input { cursor:pointer; }
.smo-ig-score { font-size:12px; color:#1872CE !important; font-weight:600; margin-top:8px; }

.ai-decide-checkbox-label { display:flex; align-items:center; gap:8px; cursor:pointer; height:34px; padding:0 18px 0 14px; border:1px solid #b9c8d4; border-radius:6px; }
.ai-decide-checkbox-label input { display:none; }
.ai-decide-checkbox-box { width:18px; height:18px; border:2px solid #7a9ab4; border-radius:4px; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:0.2s; background:#fff; }
.ai-decide-tick { display:none; color:#fff; }
.ai-decide-checkbox-label input:checked + .ai-decide-checkbox-box { background:linear-gradient(135deg, #9C27B0 0%, #E91E63 100%); border-color:transparent; }
.ai-decide-checkbox-label input:checked + .ai-decide-checkbox-box .ai-decide-tick { display:block; }
.ai-decide-checkbox-text { font-size:13px; font-weight:400; color:#333; white-space:nowrap; }
 
.ai-caption-comment {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
    margin: 3px 0 8px 0;
    line-height: 1.4;
}
.carousel-panel-tab.selected-for-schedule {
 min-width: 155px;
    color: #27ae60;
    font-weight: 700;
}

.carousel-panel-tab.selected-for-schedule .cpt-num {

    color: #27ae60;
    font-weight: 700;
}
 

.carousel-panel-tab.selected-for-schedule .cpt-num::after {
    content: '\25CF';
    font-size: 14px;
    color: #27ae60;
    position: relative;
    top: -4px;
    margin-left: 3px;
    display: inline-block;
    line-height: 1;
}