/* ═══════════════════════════════════════════════════════
   Blue Ocean AI — Dashboard 2026 Design System
   ═══════════════════════════════════════════════════════ */

/* ── Layout ────────────────────────────────────────── */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
    background: rgba(8, 18, 38, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-item {
    padding: 12px 18px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-item:hover {
    background: rgba(0, 242, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-item.active {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.12), rgba(0, 119, 255, 0.12));
    color: var(--primary-cyan);
    font-weight: 600;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary-cyan);
    border-radius: 0 4px 4px 0;
}

/* ── Main Content ──────────────────────────────────── */
.main-content {
    padding: 32px 40px;
    overflow-y: auto;
    position: relative;
}

.main-content::before {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Stats Grid ────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    display: block;
    font-family: 'Outfit', sans-serif;
}

.stat-card .label {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 4px;
}

.stat-card .stat-icon {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.4rem;
    opacity: 0.15;
}

/* ── Generator Box ─────────────────────────────────── */
.generator-box {
    padding: 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.generator-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan), #b16bff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ── Input Groups ──────────────────────────────────── */
.input-group {
    margin-bottom: 20px;
}

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

textarea,
.glass-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea:focus,
.glass-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.1);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ── Channel Selector ──────────────────────────────── */
.channel-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-tag {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-tag:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.channel-tag.active {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.2), rgba(0, 242, 255, 0.1));
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* ── Template Gallery ──────────────────────────────── */
.template-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 32px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
}

.template-section-title i {
    color: var(--primary-cyan);
}

.template-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-chip {
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(0, 119, 255, 0.1));
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.template-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.template-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 242, 255, 0.08);
}

.template-card .template-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.template-card .template-preview i {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.template-card .template-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(transparent, rgba(8, 18, 38, 0.95));
    z-index: 1;
}

.template-card .template-body {
    padding: 18px 20px;
}

.template-card .template-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    font-family: 'Outfit', sans-serif;
}

.template-card .template-desc {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-card .template-meta {
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-card .template-category {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-card .template-use-btn {
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.template-card .template-use-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 242, 255, 0.4);
    transform: scale(1.05);
}

/* ── Post Editor Modal ─────────────────────────────── */
.editor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.editor-panel {
    background: linear-gradient(135deg, rgba(12, 24, 48, 0.98), rgba(8, 16, 36, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.editor-panel::-webkit-scrollbar {
    width: 6px;
}

.editor-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.editor-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.editor-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
}

.editor-close:hover {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.4);
}

.editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.editor-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dim);
}

.editor-form textarea {
    min-height: 140px;
}

.editor-preview {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    position: relative;
}

.editor-preview .preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.editor-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-schedule {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-schedule:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-post-now {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.3);
}

.btn-post-now:hover {
    box-shadow: 0 8px 32px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

/* ── Batch Generator ───────────────────────────────── */
.batch-section {
    background: linear-gradient(135deg, rgba(177, 107, 255, 0.08), rgba(0, 242, 255, 0.06));
    border: 1px solid rgba(177, 107, 255, 0.15);
    border-radius: 16px;
    padding: 28px;
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.batch-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #b16bff, var(--primary-cyan));
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.batch-header h3 {
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.batch-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.batch-count-btn {
    padding: 10px 22px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.batch-count-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.batch-count-btn.active {
    background: linear-gradient(135deg, rgba(177, 107, 255, 0.2), rgba(0, 242, 255, 0.1));
    border-color: #b16bff;
    color: #b16bff;
}

.batch-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.batch-results::-webkit-scrollbar {
    width: 4px;
}

.batch-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.batch-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
    animation: cardSlideUp 0.4s ease backwards;
}

.batch-post-card:hover {
    border-color: rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.batch-post-card .bpc-date {
    font-size: 0.75rem;
    color: var(--primary-cyan);
    font-weight: 600;
    margin-bottom: 8px;
}

.batch-post-card .bpc-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.batch-post-card .bpc-tags {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.batch-post-card .bpc-platform {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.batch-post-card .bpc-platform i {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ── Preview Grid ──────────────────────────────────── */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.post-preview {
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s;
}

.post-preview:hover {
    transform: translateY(-2px);
}

.post-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-blue);
    flex-shrink: 0;
}

.post-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

/* ── Calendar ──────────────────────────────────────── */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-dim);
    padding: 10px 0;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-day {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    cursor: pointer;
    transition: all 0.25s;
}

.cal-day:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-cyan);
    transform: scale(1.05);
}

.cal-day.today {
    background: rgba(0, 242, 255, 0.08);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.cal-day.has-posts {
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.15);
}

.cal-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.cal-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.55rem;
    color: white;
}

.cal-badge.fb {
    background: #1877F2;
    right: 26px;
}

.cal-badge.ig {
    background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
}

.cal-day-detail {
    background: rgba(8, 18, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

/* ── Analytics Charts ──────────────────────────────── */
.chart-container {
    position: relative;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    margin-top: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 24px;
    cursor: pointer;
}

.chart-bar:hover {
    filter: brightness(1.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.chart-bar .bar-tooltip {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.chart-bar:hover .bar-tooltip {
    opacity: 1;
}

.chart-labels {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.eng-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.eng-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.eng-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.eng-card .eng-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    display: block;
}

.eng-card .eng-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── AI Team ───────────────────────────────────────── */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.agent-card {
    padding: 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 242, 255, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}

.agent-card:hover::before {
    opacity: 1;
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.agent-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    position: relative;
}

.agent-avatar i {
    font-size: 1.8rem;
    color: white;
}

.agent-avatar .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    animation: agentPulse 2s ease infinite;
    opacity: 0;
}

@keyframes agentPulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.agent-card.active .agent-avatar .pulse-ring {
    opacity: 1;
}

.agent-name {
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 4px;
}

.agent-role {
    color: var(--primary-cyan);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.agent-desc {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.agent-status {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
}

.agent-status .status-active {
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-status .status-active i {
    font-size: 0.5rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.agent-card.locked {
    opacity: 0.5;
}

/* ── Settings ──────────────────────────────────────── */
.settings-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.settings-card {
    padding: 32px;
    border-radius: 16px;
}

.settings-card h3 {
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.settings-card h3 i {
    color: var(--primary-cyan);
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.setting-row:last-child {
    border-bottom: none;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.color-dot:hover {
    transform: scale(1.15);
}

.color-dot.selected {
    border-color: white;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 12px;
    transition: all 0.3s;
}

.connection-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.connection-status {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.connection-status.connected {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.connection-status.disconnected {
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

/* ── SPA View Transitions ──────────────────────────── */
.tab-view {
    animation: fadeIn 0.4s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Loading Animations ────────────────────────────── */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ── Toast Container ───────────────────────────────── */
#toastContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Custom Scrollbar ──────────────────────────────── */
.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Kanban Approval Board ─────────────────────────── */
.kanban-board {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.kanban-board::-webkit-scrollbar {
    height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

.kanban-col {
    display: flex;
    flex-direction: column;
}

.kanban-zone {
    flex-grow: 1;
    transition: background-color 0.3s;
    border-radius: 12px;
}

.kanban-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.kanban-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 242, 255, 0.1);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .engagement-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .template-grid {
        grid-template-columns: 1fr;
    }

    .batch-results {
        grid-template-columns: 1fr;
    }
}