* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d4b81;
    --primary-hover: #0a3d6b;
    --secondary-color: #FFB263;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.h-custom{
    position: sticky;
    top: 0;
    z-index: 100; 
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-primary);
    background: var(--surface-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-voltar {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.btn-voltar:hover {
    opacity: 0.8;
}

.btn-voltar img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.btn-voltar span {
    display: inline-block;
    vertical-align: middle;
    line-height: 16px;
}

/* Plans Section Styles for Client Dashboard */
.plans-section {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.plans-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: white;
}

.plans-icon {
    width: 32px;
    height: 32px;
}

.plans-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.plan-content {
    text-align: center;
}

.plan-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 0.5rem 0;
    border: none;
    background: transparent;
    outline: none;
}

.plan-dates {
    color: var(--secondary-color);
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.plan-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-ver-plano {
    background: var(--secondary-color);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-ver-plano:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.plan-meta-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 1rem 0 0 0;
    text-align: center;
}

/* Disable hover effects for suggestion rows */
#suggestions-content .campaign-row {
    cursor: default !important;
}

#suggestions-content .campaign-row:hover {
    background-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.plan-card:hover {
    box-shadow: var(--shadow-md);
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.plan-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-actions {
    display: flex;
    gap: 0.5rem;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.plan-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.stat {
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* New Plan Page */
.new-plan {
    max-width: 800px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.upload-info {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.upload-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.upload-info pre {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    font-size: 0.75rem;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.upload-status {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.upload-status.error {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.status-message {
    font-weight: 500;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    width: 0%;
}

/* Plan Editor */
.plan-editor {
    max-width: 1400px;
    margin: 0 auto;
}

.plan-metadata {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.metadata-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}


.plan-name:focus {
    background: var(--background-color);
    border-radius: 4px;
    padding: 0.25rem;
}

.plan-description {
    color: var(--text-secondary);
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
}

.plan-description:focus {
    background: var(--background-color);
    border-radius: 4px;
    padding: 0.25rem;
}

.plan-actions {
    display: flex;
    gap: 1rem;
}

.campaigns-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.campaign-group {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.group-header {
    background: var(--background-color);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.group-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--surface-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.campaigns-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campaign-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: var(--background-color);
}

.campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.campaign-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.campaign-platform,
.campaign-type,
.campaign-date,
.campaign-time {
    padding: 0.25rem 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.campaign-platform {
    color: var(--primary-color);
}

.status-select {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    background: var(--surface-color);
    cursor: pointer;
}

.campaign-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.content-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.content-field input,
.content-field textarea {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--surface-color);
    resize: vertical;
}

.content-field input:focus,
.content-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.subposts-section,
.urls-section {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.subposts-section label,
.urls-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.subpost {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.subpost-order {
    font-weight: 600;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.subpost-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subpost-content,
.subpost-image,
.subpost-texto-imagem,
.subpost-storytelling {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    resize: vertical;
    background: var(--surface-color);
}

.subpost-storytelling {
    font-style: italic;
    color: var(--text-secondary);
}

.url-reference {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.url-reference a {
    color: var(--primary-color);
    text-decoration: none;
}

.url-reference a:hover {
    text-decoration: underline;
}

.url-description {
    color: var(--text-secondary);
}

.empty-campaigns {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-campaigns .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.save-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.save-indicator.show {
    transform: translateX(0);
    opacity: 1;
}

.save-text {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .plan-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .campaign-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .campaign-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .subpost {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Editable elements styling */
.editable {
    transition: background-color 0.2s;
}

.editable:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.editable:focus {
    outline: none;
    background-color: var(--surface-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Status indicators */
.campaign-card[data-status="draft"] {
    border-left: 4px solid var(--secondary-color);
}

.campaign-card[data-status="scheduled"] {
    border-left: 4px solid var(--warning-color);
}

.campaign-card[data-status="published"] {
    border-left: 4px solid var(--success-color);
}

.campaign-card[data-status="paused"] {
    border-left: 4px solid var(--danger-color);
}

/* New Plan Editor Styles - Updated 2025-09-04 15:15 - Safari fix */
.plan-editor-new {
    width: 96% !important;
    margin: 0 2% !important;
    padding: 0;
    min-height: 100vh;
    -webkit-box-sizing: border-box !important;
    box-sizing: border-box !important;
}

.plan-editor-new .header {
    background: var(--surface-color);
    padding: 1rem 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    align-items: center;
}

.plan-editor-new .header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metadata-item {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.metadata-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.metadata-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: #f8f9fa;
    padding: 0.25rem;
    margin-bottom: 1rem;
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    gap: 0.25rem;
}

.nav-tab {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: 1px solid transparent;
    background: transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.nav-tab.active {
    background: #ffffff;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.nav-tab:hover:not(.active) {
    background: #ffffff;
    color: #495057;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Table Styles - Fixed margin for 2% spacing - Updated 2025-09-04 15:17 */
.table-container {
    /* background: var(--surface-color);
    border-radius: 0;
    box-shadow: var(--shadow-sm); */
    overflow-x: auto;
    width: 100%;
}

.table-container table {
    width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0 6px;
    font-size: 0.75rem;
}

.table-container th {
    background: var(--background-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table-container td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    vertical-align: top;
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* Limit height specifically for campaign rows and subpost rows */
tr.campaign-row td,
tr.carrossel-sub-post td {
    max-height: 120px;
    overflow-y: auto;
}

/* Duration input styling */
.time-duration-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-duration-input .duration-hours,
.time-duration-input .duration-minutes {
    width: 60px;
    margin: 0;
}

.time-duration-input span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Custom scrollbar for campaign and subpost cells */
tr.campaign-row td::-webkit-scrollbar,
tr.carrossel-sub-post td::-webkit-scrollbar {
    width: 6px;
}

tr.campaign-row td::-webkit-scrollbar-track,
tr.carrossel-sub-post td::-webkit-scrollbar-track {
    background: transparent;
}

tr.campaign-row td::-webkit-scrollbar-thumb,
tr.carrossel-sub-post td::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

tr.campaign-row td::-webkit-scrollbar-thumb:hover,
tr.carrossel-sub-post td::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

.table-container tr {
    min-height: 60px;
}

.table-container tbody tr {
    height: auto;
    background: var(--surface-color);
    transition: all 0.2s ease;
}

.table-container tbody tr.pack-header {
    margin-bottom: 4px;
}

.table-container tbody tr.pack-header-sug {
    margin-bottom: 4px;
}

.table-container tbody tr.campaign-row {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-container tbody tr.campaign-row td {
    text-align: center;
    vertical-align: middle;
}

.table-container tbody tr.campaign-row:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Column Widths - Fixed for table-layout: fixed */
.column-angulo { 
    text-align: center; 
}
.column-canal { 
}
.column-formato { 
}
.column-data { 
}
.column-image { 
    text-align: center;
}
.column-storytelling { 
    word-wrap: break-word;
    white-space: normal;
}
.column-texto { 
    word-wrap: break-word;
    white-space: normal;
}
.column-copy {
    word-wrap: break-word;
    white-space: pre-wrap;
}
.column-observacoes {
    word-wrap: break-word;
    white-space: pre-wrap;
}
.column-cta { 
    word-wrap: break-word;
    white-space: normal;
}
.column-tempo { 
}
.column-status { 
}
.column-actions { 

}

/* Ensure th and td respect the widths */
.table-container th,
.table-container td {
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.75rem 0.5rem;
}

/* Status Rows */
.status-draft { background-color: #f8f9fa; }
.status-scheduled { background-color: #fff3cd; }
.status-published { background-color: #d4edda; }
.status-paused { background-color: #f8d7da; }

/* Django Status Rows */
.status-PENDENTE { background-color: #f8f9fa; }
.status-EM_REVISAO { background-color: #fef2e3; }
.status-EM_PRODUCAO { background-color: #fff3cd; }
.status-EM_APROVACAO { background-color: #f3e8ff; }
.status-APROVADO { background-color: #d4edda; }
.status-PUBLICADO { background-color: #d1ecf1; }
.status-CANCELADO { background-color: #f8d7da; }

/* Pack Headers */
.pack-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    overflow: hidden;
}

.pack-header-sug{
    cursor: pointer;
    font-weight: 600;
    border-radius: 8px;
    overflow: hidden;
}

.pack-header:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color)) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.pack-header td {
    padding: 1rem 0.75rem;
    border: none;
    background: transparent;
}

.pack-header-sug td{
    padding: 1rem 0.75rem;
    border: none;
    background: transparent; 
}

.pack-header td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.pack-header td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pack-header-sug td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.pack-header-sug td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.collapse-icon {
    display: inline-block;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.collapse-icon.expanded {
    transform: rotate(90deg);
}

/* Collapsible Rows */
.collapsible-row {
    transition: all 0.2s;
}

.collapsible-row td:first-child {
    border-left: 3px solid var(--primary-color);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.collapsible-row td:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.collapsible-row[style*="none"] {
    display: none !important;
}



.campaign-row {
    cursor: pointer;
}

.campaign-row:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.carrossel-sub-post {
    background-color: rgba(0, 0, 0, 0.02);
}

.carrossel-sub-post .sub-post-id {
    color: var(--text-secondary);
    font-size: 0.6875rem;
}

/* Badges */
.angulo-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.angulo-badge.educativo {
    background: #e3f2fd;
    color: #1976d2;
}

.angulo-badge.problema_solucao {
    background: #f3e5f5;
    color: #7b1fa2;
}

.angulo-badge.promocional {
    background: #e8f5e8;
    color: #388e3c;
}

.angulo-badge.benefícios,
.angulo-badge.beneficios {
    background: #fff3e0;
    color: #f57c00;
}

.tipo-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    background: var(--background-color);
    color: var(--text-secondary);
}

/* Status badges with background colors */
.status-badge-pendente,
.status-badge-draft { 
    background-color: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-em_revisao {
    background-color: #fef2e3;
    color: #dc6803;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-em_producao,
.status-badge-scheduled { 
    background-color: #fef3c7;
    color: #d97706;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-em_aprovacao { 
    background-color: #f3e8ff;
    color: #7c3aed;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-aprovado { 
    background-color: #dbeafe;
    color: #0d4b81;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-publicado,
.status-badge-published { 
    background-color: #d1fae5;
    color: #059669;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge-cancelado,
.status-badge-paused { 
    background-color: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Text Utilities */
.text-bold { font-weight: 600; }
.text-small { font-size: 0.75rem; }

/* Floating Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #0d4b81;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease-out;
    pointer-events: auto;
    position: relative;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(100%);
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: #d1fae5;
    color: #059669;
}

.notification.error .notification-icon {
    background: #fee2e2;
    color: #dc2626;
}

.notification.warning .notification-icon {
    background: #fef3c7;
    color: #d97706;
}

.notification.info .notification-icon {
    background: #dbeafe;
    color: #0d4b81;
}

.notification-content {
    display: flex;
    align-items: flex-start;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.notification.warning .notification-message {
    color: var(--text-primary);
}

.notification.info .notification-message {
    color: var(--text-primary);
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #6b7280;
}
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

/* Calendar Styles */
.calendar-container {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.calendar-subtitle {
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.google-calendar {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--background-color);
}

.calendar-weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
}

.calendar-weekday:last-child {
    border-right: none;
}

.calendar-month-grid {
    display: flex;
    flex-direction: column;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 120px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    background: var(--surface-color);
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day.weekend {
    background: #fafbfc;
}

.calendar-day.other-month {
    background: #f5f5f5;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.campaign-event {
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    border-left: 4px solid;
    transition: all 0.2s;
}

.campaign-event:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Drag & Drop styles */
.calendar-day.drag-over {
    background-color: #e3f2fd !important;
    border: 2px dashed #2196f3 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.campaign-event[draggable="true"] {
    cursor: move;
    user-select: none;
}

.campaign-event[draggable="true"]:hover {
    box-shadow: var(--shadow-md);
}

.campaign-event.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* Legend */
.legend {
    margin-top: 0.5rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--border-color);
}

.legend-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

/* Upload modal specific styles */
#uploadModal .form-group {
    margin-bottom: 1.5rem;
}

#uploadModal label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

#uploadModal input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
    cursor: pointer;
    color: var(--text-primary);
}

#uploadModal input[type="file"]:hover {
    border-color: var(--primary-color);
    background: var(--surface-color);
}

#addCampaignsBtn {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--background-color);
}
.modal-footer-sugg{
    gap: 15px;
    text-align: center;
    flex-direction: column;
    align-items: stretch;
}

.modal-nav-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.modal-nav-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.modal-nav-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form Styles */
.campaign-edit-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.form-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    background: var(--surface-color);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--background-color);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
}

/* Sub-post Styles */
.carrossel-sub-post {
    background-color: #f8f9fa;
}

.carrossel-sub-post td {
    padding-left: 16px;
    text-align: center;
    vertical-align: middle;
}

.sub-post-id {
    font-style: italic;
    color: #666;
}

.add-slide-row {
    background-color: #f8fff9;
}

.add-slide-row td {
    padding-left: 16px;
    border-left: 3px solid #28a745;
    font-style: italic;
    color: #28a745;
}

/* Action buttons styling */
.action-buttons {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

.action-buttons .btn {
    min-width: 32px;
    height: 32px;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sub-post modal form styling */
.form-input.editable {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input.editable:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.editable::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Empty States */
.empty-campaigns {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-campaigns .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-campaigns h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-campaigns p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .plan-editor-new {
        width: 96% !important;
        margin: 0 2% !important;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .plan-editor-new {
        width: 98% !important;
        margin: 0 1% !important;
    }
    
    .plan-actions {
        flex-direction: column;
    }
}

/* Safari specific fix */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .plan-editor-new {
            width: 96% !important;
            margin-left: 2% !important;
            margin-right: 2% !important;
            margin-top: 0 !important;
            margin-bottom: 0 !important;
        }
    }
    
    .metadata {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .calendar-nav {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95vw;
        margin: 1rem;
    }
    
    .modal-nav-buttons {
        flex-direction: column;
    }
    
    .table-container {
        font-size: 0.625rem;
    }
    
    .table-container th,
    .table-container td {
        padding: 0.5rem;
    }
}

/* Upload button styling */
.image-upload-container {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.upload-section input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.btn-upload {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto !important;
    padding: 0.625rem 1.25rem !important;
    background: #ffffff !important;
    color: #333333 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 0.9375rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
    white-space: nowrap;
}

.btn-upload:hover {
    background: #f8f9fa !important;
    border-color: #667eea !important;
    color: #667eea !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-upload:active {
    transform: translateY(0);
    background: #e9ecef !important;
}

/* Alternative style for delete button */
.btn-delete-image {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-delete-image:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Current image preview styling */
.current-image {
    margin: 1rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Upload status styling */
.upload-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: none;
}

.upload-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.upload-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Thumbnail Styles */
img.table-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    display: block;
    border: 1px solid #e0e0e0;
    margin: 0 auto;
}

img.table-thumbnail:hover {
    transform: scale(2.5);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    position: relative;
}

/* Image column styling in table */
td.column-image {
    text-align: center;
    vertical-align: middle;
    width: 70px;
    padding: 5px;
}

td.column-image .no-image {
    color: #999;
    font-size: 12px;
    font-style: italic;
    display: inline-block;
}

/* ========== CSS from plan_editor.html template ========== *//* Multi-step Add Content Modal Styles */
.modal-progress {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-step {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    background: #e9ecef;
    border-radius: 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    box-sizing: border-box;
}

.progress-step.active {
    background: #007bff;
    color: white;
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

.step-content {
    padding: 20px 0;
}

.addition-type-options {
    display: grid;
    gap: 15px;
}

.option-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.option-card:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.option-card input[type="radio"] {
    display: none;
}

.option-card input[type="radio"]:checked + .option-content {
    color: #007bff;
}

.option-card input[type="radio"]:checked {
    border-color: #007bff;
    background: #e7f3ff;
}

.option-card input[type="radio"]:checked ~ * {
    border-color: #007bff;
}

.option-content h5 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.option-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.content-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.content-type-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-type-card:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.content-type-card input[type="radio"] {
    display: none;
}

.content-type-card input[type="radio"]:checked + .content-icon + .content-label {
    color: #007bff;
}

.content-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.content-label {
    font-size: 12px;
    font-weight: 500;
    color: #495057;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.carousel-slide {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
}

.carousel-slide h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.slide-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

/* Client-specific styles for suggestion mode */
.client-editable {
    cursor: pointer !important;
    transition: all 0.2s ease;
    border: 2px solid #ffc107 !important;
    border-radius: 4px;
    padding: 2px 4px;
    background-color: #fff3cd !important;
    position: relative;
}

.client-editable:hover {
    background-color: #ffeb9c !important;
    border-color: #ff9800 !important;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.client-editable::after {
    content: "💡 Clique para sugerir";
    font-size: 0.7em;
    opacity: 0;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    transition: opacity 0.2s ease;
}

.client-editable:hover::after {
    opacity: 1;
}

/* Readonly styles */
.client-editable[readonly], 
.client-editable[disabled],
.client-editable[contenteditable="false"] {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

.has-suggestion {
    background-color: #e7f3ff !important;
    border-color: #007bff !important;
    position: relative;
}

.suggestion-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.8em;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Z-Index Hierarchy System */
:root {
    --z-base-modals: 1000;
    --z-campaign-modal: 2000; 
    --z-suggestion-modal: 3000;
    --z-notifications: 4000;
}

/* Base Modal Styles (Upload, SubPost, etc.) */
.modal-overlay {
    z-index: var(--z-base-modals) !important;
}

/* Preview Modal Positioning */
#previewModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2500 !important;
}

#previewModal.show {
    display: flex !important;
}

/* Campaign Modal - Higher than base */
#campaignModal {
    z-index: var(--z-campaign-modal) !important;
}

/* Suggestion Modal - Highest priority */
#suggestionModal {
    z-index: var(--z-suggestion-modal) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

/* Suggestion Modal Show State */
#suggestionModal.show {
    opacity: 1 !important;
    visibility: visible !important;
}

#suggestionModal .modal-content {
    z-index: calc(var(--z-suggestion-modal) + 1) !important;
    position: relative !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7) !important;
    margin: 0 !important;
    transform: scale(0.9) !important;
    transition: transform 0.3s ease !important;
}

#suggestionModal.show .modal-content {
    transform: scale(1) !important;
}

/* Notifications */
.notification {
    z-index: var(--z-notifications) !important;
}

/* Suggestion Field Selection Modal */
.suggestion-field-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-field-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.suggestion-field-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.1);
}

.suggestion-field-btn:active {
    transform: translateY(0);
}

#suggestionModal .form-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

#suggestionModal .form-section h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

#suggestionModal .form-field {
    margin-bottom: 1rem;
}

#suggestionModal .form-field:last-child {
    margin-bottom: 0;
}

#suggestionModal .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
    font-family: inherit;
    resize: vertical;
}

#suggestionModal .form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#suggestionModal .form-help {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

#suggestionModal label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* Visual feedback for notifications */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 2000;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

/* Mode indicators - positioned below tabs */

/* Campaign header styling */
.campaign-header th {
    background: var(--background-color);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--primary-color);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Icon Edit Button Styles */
.icon-edit-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.edit-icon {
    display: block;
    transition: opacity 0.2s ease;
}

.icon-edit-btn:hover .edit-icon {
    content: url("/static/campaigns/icons/icon_edicao_2.cd22af2f0520.png");
}

/* Icon Preview Button Styles */
.icon-preview-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.preview-icon {
    display: block;
    transition: opacity 0.2s ease;
}

.icon-preview-btn:hover .preview-icon {
    content: url("/static/campaigns/icons/icon_preview_2.79759b968791.png");
}

/* Icon Delete Button Styles - General Purpose */
.icon-delete-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.delete-icon {
    display: block;
    transition: opacity 0.2s ease;
}

.icon-delete-btn:hover .delete-icon {
    content: url("/static/campaigns/icons/icon_lixo_2.091f0ccc52a7.png");
}

/* Icon Delete Theme Button Styles - Specific for theme deletion */
.icon-delete-theme-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.delete-theme-icon {
    display: block;
    transition: opacity 0.2s ease;
}

.icon-delete-theme-btn:hover .delete-theme-icon {
    content: url("/static/campaigns/icons/icon_lixo_branco_2.d59dbf98f0b5.png");
}

/* Icon Download Button Styles */
.icon-download-btn {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}

.download-icon {
    display: block;
    transition: opacity 0.2s ease;
}

.icon-download-btn:hover .download-icon {
    content: url("/static/campaigns/icons/icon_download_2.c7373bc5c7f5.png");
}

/* My Suggestions Section Styles */
.my-suggestions-section {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Compact Summary Stats */
.suggestions-summary-compact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

/* Dashboard Summary Card */
.dashboard-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.summary-totals {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.total-posts, .total-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.total-posts {
    color: #4a5568;
}

.total-time {
    color: #0369a1;
}

.total-posts-value, .total-time-value {
    background: #f7fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-weight: 700;
}

.total-posts-value {
    color: #2d3748;
    background: #edf2f7;
}

.total-time-value {
    color: #0369a1;
    background: #f0f9ff;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.status-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.status-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Status-specific colors for dashboard cards - matching ESTADO column */
.status-card.status-pendente {
    border-color: #d1d5db;
    background-color: #f3f4f6;
}
.status-card.status-pendente .status-label {
    color: #6b7280;
}
.status-card.status-pendente .status-value {
    color: #374151;
}

.status-card.status-em-revisao {
    border-color: #fbbf24;
    background-color: #fef2e3;
}
.status-card.status-em-revisao .status-label {
    color: #dc6803;
}
.status-card.status-em-revisao .status-value {
    color: #92400e;
}

.status-card.status-em-producao {
    border-color: #f59e0b;
    background-color: #fef3c7;
}
.status-card.status-em-producao .status-label {
    color: #d97706;
}
.status-card.status-em-producao .status-value {
    color: #b45309;
}

.status-card.status-em-aprovacao {
    border-color: #a855f7;
    background-color: #f3e8ff;
}
.status-card.status-em-aprovacao .status-label {
    color: #7c3aed;
}
.status-card.status-em-aprovacao .status-value {
    color: #6d28d9;
}

.status-card.status-aprovado {
    border-color: #3b82f6;
    background-color: #dbeafe;
}
.status-card.status-aprovado .status-label {
    color: #0d4b81;
}
.status-card.status-aprovado .status-value {
    color: #1e40af;
}

.status-card.status-publicado {
    border-color: #10b981;
    background-color: #d1fae5;
}
.status-card.status-publicado .status-label {
    color: #059669;
}
.status-card.status-publicado .status-value {
    color: #047857;
}

.status-card.status-cancelado {
    border-color: #ef4444;
    background-color: #fee2e2;
}
.status-card.status-cancelado .status-label {
    color: #dc2626;
}
.status-card.status-cancelado .status-value {
    color: #b91c1c;
}

/* Suggestions status colors */
.status-card.status-pending {
    border-color: #fbbf24;
    background-color: #fef2e3;
}
.status-card.status-pending .status-label {
    color: #dc6803;
}
.status-card.status-pending .status-value {
    color: #92400e;
}

.status-card.status-implemented {
    border-color: #10b981;
    background-color: #d1fae5;
}
.status-card.status-implemented .status-label {
    color: #059669;
}
.status-card.status-implemented .status-value {
    color: #047857;
}

.status-card.status-rejected {
    border-color: #ef4444;
    background-color: #fee2e2;
}
.status-card.status-rejected .status-label {
    color: #dc2626;
}
.status-card.status-rejected .status-value {
    color: #b91c1c;
}

/* Time Summary Styling */
.time-summary-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.time-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.time-value {
    background-color: #f0f9ff;
    color: #0369a1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
}

.summary-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    min-width: 2.5rem;
    text-align: center;
    display: inline-block;
}

.stat-value.total {
    background-color: #e9ecef;
    color: #495057;
}

.stat-value.pending {
    background-color: #fff3cd;
    color: #856404;
}

.stat-value.approved {
    background-color: #d1ecf1;
    color: #004085;
}

.stat-value.implemented {
    background-color: #d4edda;
    color: #155724;
}

.stat-value.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.stat-value.client-validation {
    background-color: #fef2e3;
    color: #dc6803;
}

.stat-value.completed {
    background-color: #d1e7dd;
    color: #0a3622;
}

.stat-value.needs-adjustments {
    background-color: #ffe8d1;
    color: #cc5500;
}

/* Pack header status colors for suggestions - using more specific selectors */
#suggestionsTable .status-pendente,
#allSuggestionsTable .status-pendente {
    background: #fff3cd !important;
    color: #856404 !important;
}

#suggestionsTable .status-approved,
#allSuggestionsTable .status-approved {
    background: #d1ecf1 !important;
    color: #004085 !important;
}

#suggestionsTable .status-implementada,
#allSuggestionsTable .status-implementada {
    background: #d4edda !important;
    color: #155724 !important;
}

#suggestionsTable .status-rejeitada,
#allSuggestionsTable .status-rejeitada {
    background: #f8d7da !important;
    color: #721c24 !important;
}

#suggestionsTable .status-client-validation,
#allSuggestionsTable .status-client-validation {
    background: #fef2e3 !important;
    color: #dc6803 !important;
}

#suggestionsTable .status-completed,
#allSuggestionsTable .status-completed {
    background: #d1e7dd !important;
    color: #0a3622 !important;
}

#suggestionsTable .status-needs-adjustments,
#allSuggestionsTable .status-needs-adjustments {
    background: #ffe8d1 !important;
    color: #cc5500 !important;
}

#suggestionsTable .status-pendente:hover,
#suggestionsTable .status-approved:hover,
#suggestionsTable .status-implementada:hover,
#suggestionsTable .status-rejeitada:hover,
#suggestionsTable .status-client-validation:hover,
#suggestionsTable .status-completed:hover,
#suggestionsTable .status-needs-adjustments:hover,
#allSuggestionsTable .status-pendente:hover,
#allSuggestionsTable .status-approved:hover,
#allSuggestionsTable .status-implementada:hover,
#allSuggestionsTable .status-rejeitada:hover,
#allSuggestionsTable .status-client-validation:hover,
#allSuggestionsTable .status-completed:hover,
#allSuggestionsTable .status-needs-adjustments:hover {
    filter: brightness(0.9) !important;
}

/* Remove left border for suggestion table collapsible rows */
#suggestionsTable .collapsible-row td:first-child,
#allSuggestionsTable .collapsible-row td:first-child {
    border-left: none !important;
}

/* Pack header suggestion border-bottom colors to match status */
#suggestionsTable .suggestion-header.status-pendente-bb td,
#allSuggestionsTable .suggestion-header.status-pendente-bb td {
    border-bottom: 3px solid #856404 !important;
}

#suggestionsTable .suggestion-header.status-implementada-bb td,
#allSuggestionsTable .suggestion-header.status-implementada-bb td {
    border-bottom: 3px solid #155724 !important;
}

#suggestionsTable .suggestion-header.status-rejeitada-bb td,
#allSuggestionsTable .suggestion-header.status-rejeitada-bb td {
    border-bottom: 3px solid #721c24 !important;
}

.stat-divider {
    color: #dee2e6;
    font-size: 1.25rem;
    opacity: 0.5;
}

.summary-stats .btn {
    margin-left: auto;
}

.suggestion-row:hover {
    background-color: #f8f9fa;
}

.suggestion-field strong {
    color: #495057;
}

.value-comparison {
    display: grid;
    gap: 0.75rem;
}

.original-value, .suggested-value {
    padding: 0.5rem;
    border-radius: 4px;
}

.original-value {
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
}

.suggested-value {
    background-color: #e7f3ff;
    border-left: 3px solid #007bff;
}

.value-comparison label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.suggestion-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #fff3cd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.suggestion-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-status.status-pending {
    background-color: #ffc107;
    color: #856404;
}

.suggestion-status.status-approved {
    background-color: #17a2b8;
    color: white;
}

.suggestion-status.status-implemented {
    background-color: #28a745;
    color: white;
}

.suggestion-status.status-rejected {
    background-color: #dc3545;
    color: white;
}

.suggestion-status.status-VALIDACAO_CLIENTE {
    background-color: #ffc107;
    color: #856404;
}

.suggestion-status.status-CONCLUIDA {
    background-color: #198754;
    color: white;
}

.suggestion-status.status-AJUSTES_NECESSARIOS {
    background-color: #fd7e14;
    color: white;
}

.suggestion-dates {
    margin-top: 0.5rem;
}

.review-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
}

.suggestion-status-cell {
    text-align: center;
    vertical-align: middle;
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
}

.image-upload-container.dragover {
    border: 2px dashed var(--secondary-color);
    background-color: rgba(13, 75, 129, 0.05);
    transform: scale(1.02);
}

.image-upload-container.dragover::after {
    content: "Solte a imagem aqui";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

/* Video upload container specific styles */
.video-upload-container.dragover::after {
    content: "Solte o vídeo aqui";
}

.video-upload-container .current-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.video-upload-container video {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-section {
    position: relative;
}

.current-image {
    margin-bottom: 1rem;
    text-align: center;
}

.current-image img {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-delete-image {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-delete-image:hover {
    background-color: #c82333;
}

.upload-section {
    position: relative;
}

input[type="file"] {
    display: none;
}

.btn-upload {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-upload:hover {
    background-color: #0056b3;
}

.upload-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.upload-status span {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: white;
}

/* Upload Modal Enhanced Styles */
.radio-group {
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    min-height: 32px;
}

.radio-option:hover {
    background-color: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
    box-sizing: border-box;
}

.radio-text {
    line-height: 1.3;
    font-size: 14px;
    color: #333;
    flex: 1;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #007bff;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.theme-preview-box {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.theme-preview h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.theme-preview p {
    margin: 4px 0;
    color: #6c757d;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}


.no-image {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Lightbox Styles */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    cursor: zoom-out;
}

.lightbox-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    padding: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Facebook Preview Modal Styles */
.preview-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e4e6eb;
    background: #fff;
}

.preview-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1c1e21;
}

.preview-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f0f2f5;
}

.preview-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-section {
    flex: 0 1 auto;
}

.preview-section h4 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #65676b;
    font-size: 1rem;
    font-weight: 600;
}

/* Video Preview Styles */
.video-preview-container {
    position: relative;
    width: 100%;
}
.video-upload-container{
    text-align: center;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    height: 667px;
    display: flex
;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Reel Preview Styles */
.reel-mode .preview-modal-content {
    max-width: 400px;
}

.reel-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.reel-phone-mockup {
    width: 350px;
    height: 700px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.reel-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
}

.reel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reel-sidebar {
    position: absolute;
    right: 10px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reel-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    cursor: pointer;
}

.action-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.action-count {
    font-size: 12px;
    font-weight: 600;
}

.reel-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.reel-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.reel-username {
    font-weight: 600;
    font-size: 14px;
}

.reel-follow {
    padding: 4px 12px;
    border: 1px solid white;
    background: transparent;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.reel-caption {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.reel-music {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

/* Stories Preview Styles */
.stories-mode .preview-modal-content {
    max-width: 400px;
}

/* Carousel Dual Mode (Post + Stories) */
.carousel-dual-mode .preview-modal-content {
    max-width: 1000px;
}

.carousel-dual-mode .preview-modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Post preview section (horizontal layout for mobile + desktop) */
.carousel-dual-mode .preview-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.carousel-dual-mode .preview-section {
    min-width: 350px;
}

.carousel-dual-mode .preview-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Stories section (below posts, centered) */
.carousel-dual-mode .stories-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.carousel-dual-mode .stories-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Stories click navigation (invisible left/right areas) */
.stories-click-areas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    z-index: 50;
}

.stories-click-left,
.stories-click-right {
    flex: 1;
    cursor: pointer;
    background: transparent;
    border: none;
}

.stories-click-left:hover {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.stories-click-right:hover {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}


.stories-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.stories-phone-mockup {
    width: 375px;
    height: 700px;
    background: #000;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.stories-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #1a1a1a;
}

.stories-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stories-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stories-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stories-header {
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.stories-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.progress-bar.active {
    background: white;
}

.stories-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.stories-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.stories-username {
    font-weight: 600;
    font-size: 14px;
}

.stories-time {
    font-size: 12px;
    opacity: 0.8;
}

.stories-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.stories-bottom {
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stories-reply {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    border-radius: 20px;
    font-size: 14px;
}

.stories-reply::placeholder {
    color: rgba(255,255,255,0.7);
}

.stories-actions {
    display: flex;
    gap: 15px;
    font-size: 24px;
}

/* Newsletter Preview Styles */
.newsletter-mode .preview-modal-content {
    max-width: 800px;
}

.newsletter-preview-container {
    padding: 20px;
}

.email-client {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.email-header {
    padding: 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.email-meta {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.email-body {
    padding: 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    background: white;
}

.newsletter-header {
    padding: 40px 20px;
    text-align: center;
    background: #1877f2;
    color: white;
}

.newsletter-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.newsletter-header h1 {
    font-size: 24px;
    margin: 0;
}

.newsletter-main {
    padding: 40px 20px;
}

.newsletter-hero {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
}

.newsletter-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.newsletter-cta {
    display: inline-block;
    padding: 15px 40px;
    background: #1877f2;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
}

.newsletter-footer {
    padding: 30px 20px;
    background: #f5f5f5;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.newsletter-footer a {
    color: #1877f2;
    text-decoration: none;
}

/* Banner Preview Styles */
.banner-mode .preview-modal-content {
    max-width: 1200px;
}

.banner-preview-container {
    padding: 20px;
}

.banner-preview-container h4 {
    margin: 20px 0 10px;
    color: #333;
}

.banner-desktop {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.banner-mobile {
    width: 375px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.banner-desktop img,
.banner-mobile img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.banner-content {
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.banner-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-cta {
    padding: 12px 30px;
    background: white;
    color: #764ba2;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

/* Infographic Preview Styles */
.infographic-mode .preview-modal-content {
    max-width: 800px;
}

.infographic-preview-container {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.infographic-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.infographic-placeholder {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
}

.infographic-header {
    text-align: center;
    margin-bottom: 40px;
}

.infographic-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.infographic-header p {
    color: #666;
    font-size: 18px;
}

.infographic-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.infographic-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.info-section {
    text-align: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 8px;
}

.section-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.info-section h3 {
    color: #333;
    margin-bottom: 10px;
}

.info-section p {
    color: #666;
    font-size: 14px;
}

.infographic-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.infographic-footer img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.infographic-footer p {
    color: #666;
    font-size: 16px;
}

/* Carousel Preview Styles */
.fb-carousel-container {
    position: relative;
    width: 100%;
    background: #fff;
}

.fb-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.fb-carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    height: 100%;
}

.fb-carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #f0f2f5;
}

.fb-carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* max-height: 500px; */
}

.fb-carousel-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1.5rem;
    font-weight: 500;
}

.fb-carousel-cta {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: white;
    color: #764ba2;
    border: none;
    padding: 12px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.fb-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.fb-carousel-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.fb-carousel-nav span {
    font-size: 24px;
    color: #65676b;
    line-height: 1;
}

.fb-carousel-prev {
    left: 16px;
}

.fb-carousel-next {
    right: 16px;
}

.fb-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.fb-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fb-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.fb-carousel-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Hover effect for side images */
.fb-carousel-container:hover .fb-carousel-slide:not(.active) {
    opacity: 0.7;
}

/* Mobile specific styles */
.mobile-view .fb-carousel-slide img {
    /* max-height: 375px; */
}

.mobile-view .fb-carousel-placeholder,
.mobile-view .fb-carousel-cta {
    height: 300px;
}

.mobile-view .cta-icon {
    font-size: 3rem;
}

.mobile-view .cta-text {
    font-size: 1.2rem;
}

.mobile-view .fb-carousel-nav {
    width: 40px;
    height: 40px;
}

.mobile-view .fb-carousel-nav span {
    font-size: 20px;
}

/* Facebook Post Styles */
.facebook-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.desktop-view {
    width: 500px;
}

.mobile-view {
    width: 375px;
}

.fb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.fb-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.fb-info {
    display: flex;
    flex-direction: column;
}

.fb-page-name {
    font-weight: 600;
    color: #050505;
    font-size: 15px;
}

.fb-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #65676b;
    font-size: 13px;
    margin-top: 2px;
}

.fb-sponsored {
    color: #65676b;
}

.fb-dot {
    font-size: 8px;
}

.fb-globe {
    font-size: 12px;
}

.fb-menu {
    color: #65676b;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
}

.fb-content {
    display: flex;
    flex-direction: column;
}

.fb-text {
    padding: 0 16px 12px 16px;
    color: #050505;
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.fb-image-container {
    width: 100%;
    display: none;
}

.fb-image-container.show {
    display: block;
}

.fb-image {
    width: 100%;
    height: auto;
    display: block;
}

.fb-engagement {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e4e6eb;
    font-size: 15px;
    color: #65676b;
}

.fb-reactions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fb-like-icons {
    font-size: 18px;
}

.fb-like-text {
    color: #65676b;
}

.fb-comments-shares {
    display: flex;
    gap: 12px;
}

/* HTML Email Tab Styles */
.html-email-section {
    margin-top: 10px;
}

.html-status {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #0d4b81;
}

.tab-btn.active {
    color: #0d4b81;
    border-bottom-color: #0d4b81;
}

.html-tab-content {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.html-tab-content textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px;
}

.html-tab-content small {
    display: block;
    color: #64748b;
    margin-top: 10px;
}

.file-upload-area {
    margin: 15px 0;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #0d4b81;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.file-upload-btn:hover {
    background: #0a3d6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.file-upload-btn svg {
    width: 20px;
    height: 20px;
}

.file-name {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.file-name.show {
    display: block;
}

.fb-actions {
    display: flex;
    justify-content: space-around;
    padding: 4px 16px;
}

.fb-action-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 8px 12px;
    color: #65676b;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.fb-action-btn:hover {
    background-color: #f0f2f5;
}

.fb-action-btn span {
    font-size: 18px;
}

/* Button Styles */
.btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.btn-info:hover {
    background-color: #138496;
}

/* Story Preview Styles */
.story-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.story-phone-mockup {
    width: 280px;
    height: 500px;
    background: #000;
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    position: relative;
}

.story-content {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #1a1a1a;
}

.story-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.story-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 16px;
    z-index: 2;
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.story-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.story-info {
    display: flex;
    flex-direction: column;
}

.story-username {
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.story-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.story-more {
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.story-text-overlay {
    position: absolute;
    bottom: 60px;
    left: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    padding: 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.story-text {
    color: white;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* Mobile Responsive for Preview Modal */
@media (max-width: 768px) {
    .preview-container {
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-view {
        width: 100%;
        max-width: 375px;
    }
    
    .desktop-view {
        width: 100%;
        max-width: 500px;
    }
}

/* Theme Legend with Date Inputs */
.theme-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px;
}

.theme-legend-item:last-child {
    border-bottom: none;
}

.theme-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.theme-dates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.date-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.date-input-group label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.theme-date-input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
    transition: border-color 0.2s ease;
}

.theme-date-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.theme-date-input:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.theme-date-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Responsive design for theme legend */
@media (max-width: 768px) {
    .theme-dates {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-input-group {
        min-width: auto;
    }
}

/* Date Indicators and Drag States */
.date-indicator {
    position: absolute;
    font-size: 12px;
    z-index: 10;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.date-indicator:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.date-indicator.dragging {
    opacity: 0.8;
    transform: scale(1.2);
    z-index: 1000;
}

.start-indicator {
    top: 2px;
    right: 2px;
}

.end-indicator {
    top: 20px;
    right: 2px;
}

/* Calendar drag states for date validation */
.calendar-day.date-valid-drop {
    background-color: rgba(40, 167, 69, 0.1) !important;
    border: 2px solid #28a745;
}

.calendar-day.date-invalid-drop {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border: 2px solid #dc3545;
    cursor: not-allowed;
}

.calendar-day {
    position: relative;
}

/* Improved drag feedback */
.campaign-event.dragging {
    opacity: 0.6;
    transform: rotate(3deg);
}

.calendar-day.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
}

/* Indicator backgrounds for start/end with symbols */
.indicator-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

.start-bg {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.end-bg {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

/* Suggestions badge for tab */
.suggestions-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 7px;
    border-radius: 50%;
    min-width: 26px;
    height: 26px;
    text-align: center;
    border: 2px solid #e74c3c;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestions-badge:empty,
.suggestions-badge[data-count="0"] {
    display: none;
}

.plan-column-h-scroll {
    height: 120px;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.plan-column-h-scroll::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
}

.plan-column-h-scroll::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}


/* Hamburger menu styles */
.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
    opacity: 0.8;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.hamburger-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
    color: #333;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.dropdown-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.dropdown-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Modal footer navigation buttons */
.modal-footer .nav-buttons {
    display: flex;
    gap: 8px;
}


/* Make sure suggestions tab has relative positioning for the badge */
#suggestions-tab {
    position: relative;
}

/* Theme legend filtering styles */
.theme-legend-item.filtered {
    opacity: 0.6 !important;
}

.theme-legend-item.filtered .theme-name {
    text-decoration: line-through !important;
    color: #777 !important;
}

.theme-legend-item.filtered .legend-color {
    opacity: 0.4 !important;
    filter: grayscale(50%) !important;
}

/* Facebook Capa Preview Styles */
.facebook-capa-mode .preview-modal-content {
    max-width: 1000px;
}

.facebook-page-container {
    background: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.facebook-cover {
    position: relative;
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    background: #e4e6ea;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facebook-cover .cover-image {
    width: 100%;
    height: auto;
    display: block;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%);
    color: white;
}

.cover-placeholder-content {
    text-align: center;
}

.cover-placeholder-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.cover-placeholder-content p {
    margin: 0;
    font-size: 16px;
    opacity: 0.8;
}

.facebook-profile-section {
    background: white;
    padding: 20px 32px 16px;
    border-bottom: 1px solid #dadde1;
    position: relative;
    margin-top: -80px;
    z-index: 2;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.profile-picture {
    position: relative;
    z-index: 3;
    margin-top: -80px;
}

.profile-picture img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-details {
    flex: 1;
    margin-bottom: 16px;
}

.page-name {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    color: #050505;
    line-height: 1.2;
}

.followers-info {
    margin: 0;
    font-size: 15px;
    color: #65676b;
    font-weight: 400;
}

.facebook-nav-tabs {
    background: white;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
    border-top: 1px solid #dadde1;
}

.nav-tab-fb {
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.nav-tab-fb.active-fb {
    color: #1877f2;
    border-bottom-color: #1877f2;
}

.nav-more-fb {
    margin-left: auto;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #65676b;
    background: #E4E6EB;
    display: flex;
}

.nav-more-fb svg {
    transform: rotate(90deg);
}

/* Carousel Accordion Styles */
.carousel-accordion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.carousel-accordion-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.carousel-toggle-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 8px;
    border-color: transparent transparent transparent #666;
    transition: transform 0.3s ease;
}

.carousel-toggle-icon.expanded {
    transform: rotate(90deg);
}

.carousel-slide-count {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 10px;
}

.campaign-row.has-carousel {
    position: relative;
}

.carrossel-sub-post.accordion-hidden {
    display: none !important;
}

.carrossel-sub-post.accordion-visible {
    display: table-row !important;
}

/* Drag and Drop Styles for Carousel Slides */
.drag-handle {
    padding: 5px !important;
    text-align: center;
    cursor: move;
    user-select: none;
}

.drag-handle .drag-icon {
    font-size: 16px;
    color: #6c757d;
    display: inline-block;
    transition: color 0.2s ease;
}

.drag-handle:hover .drag-icon {
    color: #495057;
}

.carrossel-sub-post.dragging {
    opacity: 0.5;
    background-color: #f0f0f0;
}

.carrossel-sub-post.drag-over {
    background-color: #e8f4f8;
}

.carrossel-sub-post.drop-above {
    border-top: 3px solid #007bff;
}

.carrossel-sub-post.drop-below {
    border-bottom: 3px solid #007bff;
}

/* Prevent text selection during drag */
.dragging * {
    user-select: none;
}

.current-file{
    text-align: center;
}

.f-g-json .upload-section{
    text-align: center;
}