
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --cmp-teal: #00B3A6;
    --cmp-blue: #2563EB;
    --cmp-navy: #06172A;
    --cmp-orange: #FF8A00;
    --cmp-light: #F1F5F9;
    --cmp-white: #FFFFFF;
    --cmp-text: #0F172A;
    --cmp-muted: #64748B;
    --cmp-border: #E2E8F0;
    --cmp-soft-teal: #E8FBF8;
    --cmp-soft-blue: #EAF1FF;
    --cmp-soft-orange: #FFF3E0;
}

html, body.cmp-fullscreen-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    background: var(--cmp-light);
}

body.cmp-fullscreen-page {
    overflow-x: hidden;
    font-family: 'Poppins', Arial, sans-serif;
}

body.admin-bar.cmp-fullscreen-page .cmp-app {
    min-height: calc(100vh - 32px);
    margin-top: 32px;
}

.cmp-app,
.cmp-app * {
    box-sizing: border-box;
    font-family: 'Poppins', Arial, sans-serif;
}

.cmp-app {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    width: 100vw;
    max-width: none !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--cmp-light);
    color: var(--cmp-text);
}

.cmp-sidebar {
    background: var(--cmp-navy);
    color: white;
    padding: 26px 18px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.cmp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 24px;
}

.cmp-brand-icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.cmp-c-shape {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 210deg, var(--cmp-blue), #0EA5E9, var(--cmp-teal), var(--cmp-blue));
    -webkit-mask: radial-gradient(circle at center, transparent 0 45%, #000 47% 100%);
    mask: radial-gradient(circle at center, transparent 0 45%, #000 47% 100%);
}

.cmp-c-shape::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 26px;
    right: -2px;
    top: 9px;
    background: var(--cmp-navy);
    border-radius: 8px;
}

.cmp-play {
    position: absolute;
    left: 18px;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--cmp-orange);
    z-index: 2;
}

.cmp-brand-name {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
}

.cmp-brand-name span { color: var(--cmp-white); }
.cmp-brand-name strong { color: var(--cmp-teal); }

.cmp-brand-sub {
    font-size: 9px;
    margin-top: 5px;
    color: rgba(255,255,255,.66);
    text-transform: uppercase;
    letter-spacing: .9px;
}

.cmp-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.cmp-nav-item {
    border: 0;
    color: rgba(255,255,255,.88);
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: .2s ease;
}

.cmp-nav-item:hover {
    background: rgba(255,255,255,.08);
    color: white;
}

.cmp-nav-item.active {
    background: linear-gradient(90deg, var(--cmp-teal), #00C9B7);
    color: white;
    box-shadow: 0 8px 22px rgba(0,179,166,.22);
}

.cmp-sidebar-footer {
    margin-top: auto;
    padding: 18px 8px 4px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.cmp-main {
    min-width: 0;
    width: 100%;
    max-width: none !important;
    padding: 28px;
    overflow-x: auto;
}

.cmp-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.cmp-topbar h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: var(--cmp-navy);
}

.cmp-topbar p {
    margin: 0;
    color: var(--cmp-muted);
}

.cmp-topbar p strong {
    color: var(--cmp-teal);
    font-weight: 600;
}

.cmp-top-actions,
.cmp-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-btn {
    border: 1px solid var(--cmp-border);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s ease;
}

.cmp-btn:hover {
    transform: translateY(-1px);
}

.cmp-btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--cmp-teal), var(--cmp-blue));
    border-color: transparent;
}

.cmp-btn-orange {
    color: white;
    background: var(--cmp-orange);
    border-color: var(--cmp-orange);
}

.cmp-btn-light {
    background: white;
    color: var(--cmp-navy);
}

.cmp-week-label {
    background: white;
    border: 1px solid var(--cmp-border);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.cmp-days {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.cmp-day-card {
    background: white;
    border: 1px solid var(--cmp-border);
    border-radius: 16px;
    padding: 16px;
    min-height: 175px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(6,23,42,.04);
    transition: .2s ease;
}

.cmp-day-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,179,166,.45);
    box-shadow: 0 12px 28px rgba(6,23,42,.07);
}

.cmp-day-card.selected {
    transform: translateY(-2px);
    border-color: var(--cmp-teal);
    box-shadow: 0 10px 28px rgba(0,179,166,.14);
}

.cmp-day-head {
    display: flex;
    justify-content: space-between;
    color: var(--cmp-muted);
    font-size: 12px;
    margin-bottom: 14px;
}

.cmp-day-card h3 {
    margin: 12px 0 6px;
    font-size: 16px;
    color: var(--cmp-navy);
}

.cmp-day-card p {
    color: var(--cmp-muted);
    font-size: 12px;
    line-height: 1.5;
    min-height: 38px;
}

.cmp-time {
    padding-top: 12px;
    border-top: 1px solid var(--cmp-border);
    font-size: 11px;
    color: var(--cmp-muted);
}

.cmp-status {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 9px;
    font-weight: 800;
}

.cmp-status.ready {
    background: var(--cmp-soft-teal);
    color: #087F75;
}

.cmp-status.scheduled {
    background: var(--cmp-soft-blue);
    color: var(--cmp-blue);
}

.cmp-status.draft {
    background: #F1F5F9;
    color: #64748B;
}

.cmp-status.review {
    background: var(--cmp-soft-orange);
    color: #B85F00;
}

.cmp-status.planned {
    background: #EEF2FF;
    color: #4F46E5;
}

.cmp-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-style: dashed;
    color: var(--cmp-muted);
    background: rgba(255,255,255,.72);
}

.cmp-plus {
    font-size: 34px;
    color: var(--cmp-teal);
}

.cmp-workspace {
    background: white;
    border: 1px solid var(--cmp-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(6,23,42,.04);
}

.cmp-workspace-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--cmp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cmp-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    background: var(--cmp-teal);
    border-radius: 50%;
    margin-right: 8px;
}

.cmp-workspace-grid {
    display: grid;
    grid-template-columns: .95fr 1.25fr .95fr;
}

.cmp-panel {
    padding: 20px;
    border-right: 1px solid var(--cmp-border);
    min-width: 0;
}

.cmp-panel:last-child {
    border-right: 0;
}

.cmp-panel h3 {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--cmp-navy);
}

.cmp-panel label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin: 14px 0 7px;
    color: var(--cmp-navy);
}

.cmp-panel textarea,
.cmp-panel input,
.cmp-modal-card input,
.cmp-modal-card select {
    width: 100%;
    border: 1px solid var(--cmp-border);
    border-radius: 10px;
    padding: 11px;
    font: inherit;
    color: var(--cmp-text);
    background: white;
}

.cmp-panel textarea:focus,
.cmp-panel input:focus,
.cmp-modal-card input:focus,
.cmp-modal-card select:focus {
    outline: 2px solid rgba(0,179,166,.15);
    border-color: var(--cmp-teal);
}

.cmp-panel textarea {
    min-height: 180px;
    resize: vertical;
}

.cmp-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cmp-platforms label {
    margin: 0;
    border: 1px solid var(--cmp-border);
    padding: 9px 10px;
    border-radius: 9px;
    font-weight: 500;
    background: #FCFDFE;
}

.cmp-preview-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.cmp-preview-tabs button {
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
    color: var(--cmp-muted);
    font-weight: 500;
}

.cmp-preview-tabs button.active {
    color: var(--cmp-teal);
    border-bottom: 2px solid var(--cmp-teal);
}

.cmp-social-preview {
    border: 1px solid var(--cmp-border);
    border-radius: 14px;
    padding: 14px;
}

.cmp-preview-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--cmp-blue), var(--cmp-teal));
    color: white;
    font-weight: 800;
}

.cmp-social-preview > p {
    white-space: pre-line;
    line-height: 1.5;
}

.cmp-graphic-placeholder {
    background: linear-gradient(135deg, var(--cmp-navy), #0C2747);
    color: white;
    min-height: 260px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
}

.cmp-graphic-placeholder::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -50px;
    bottom: -65px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,179,166,.75), rgba(37,99,235,.5));
}

.cmp-graphic-kicker {
    color: var(--cmp-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.cmp-graphic-placeholder h2 {
    font-size: 27px;
    max-width: 440px;
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.cmp-graphic-rule {
    height: 5px;
    width: 84px;
    background: var(--cmp-orange);
    border-radius: 999px;
}

.cmp-resource-card,
.cmp-approval,
.cmp-publish-box {
    border: 1px solid var(--cmp-border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.cmp-resource-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cmp-resource-card small,
.cmp-publish-box small {
    display: block;
    color: var(--cmp-muted);
    margin-top: 4px;
}

.cmp-thumb {
    width: 62px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--cmp-navy);
    color: var(--cmp-teal);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.cmp-check {
    margin-left: auto;
    color: var(--cmp-teal);
    font-weight: 900;
}

.cmp-approval {
    display: flex;
    justify-content: space-between;
}

.cmp-approval strong {
    color: var(--cmp-teal);
}

.cmp-full {
    width: 100%;
}

.cmp-placeholder-section {
    display: none;
}

.cmp-placeholder-section.show {
    display: block;
}

.cmp-placeholder-card {
    background: white;
    border: 1px solid var(--cmp-border);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 8px 30px rgba(6,23,42,.04);
}

.cmp-placeholder-card h2 {
    margin: 0 0 10px;
    color: var(--cmp-navy);
}

.cmp-placeholder-card p {
    margin: 0;
    color: var(--cmp-muted);
}

.cmp-modal {
    position: fixed;
    inset: 0;
    background: rgba(6,23,42,.56);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.cmp-modal.open {
    display: flex;
}

.cmp-modal-card {
    width: min(460px, 92vw);
    background: white;
    padding: 24px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 24px 70px rgba(6,23,42,.25);
}

.cmp-modal-card h2 {
    margin-top: 0;
    color: var(--cmp-navy);
}

.cmp-modal-card label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 700;
    font-size: 12px;
}

.cmp-modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .cmp-days {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .cmp-panel {
        border-right: 0;
        border-bottom: 1px solid var(--cmp-border);
    }
}

@media (max-width: 782px) {
    body.admin-bar.cmp-fullscreen-page .cmp-app {
        min-height: calc(100vh - 46px);
        margin-top: 46px;
    }
}

@media (max-width: 760px) {
    .cmp-app {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .cmp-sidebar {
        display: none;
    }

    .cmp-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cmp-top-actions {
        flex-wrap: wrap;
    }

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

    .cmp-main {
        padding: 14px;
    }
}
