.calendar-container {
    display: flex;
    height: 80vh; /* full height of the viewport */
    overflow: hidden;
}

.calendar {
    flex: 1;
    min-height: 500px; /* whatever minimum you want */
    height: 100%;
    overflow-y: auto;
}

.unscheduled-drafts {
    width: 200px;
}

.draft-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
}

.draft-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.draft-date {
    color: #666;
    font-size: 14px;
}

#draft-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.draft-item {
    list-style: none;
    cursor: grab;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}


.draft-item:active {
    cursor: grabbing;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-calendar-event {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: #333;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: block;
    overflow: hidden;
}

.fc-event-title {
    white-space: normal;
    color: #333;
}

.platform-linkedin {
    border-left: 4px solid #0a66c2;
}

.platform-instagram {
    border-left: 4px solid #e1306c;
}

.calendar-image-row {
    display: flex;
    gap: 2px;
    overflow: hidden;
    margin-bottom: 4px;
    height: 64px; /* double height (was ~32px) */
}

.calendar-image-row img {
    width: 25%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.calendar-time {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.calendar-title {
    font-size: 13px;
    font-weight: bold;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.calendar-site {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




.post-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    pointer-events: auto;
}

.post-modal-overlay--social {
    z-index: 11000; /* Higher than default modal */
}

.post-modal-overlay--social .post-modal-content {
    /* Optional tweaks */
    max-width: 90%;
    height: 85%;
    margin-right: 5%;
    top: 10%;
    width: 90%;
}

.post-modal-content {
    box-sizing: border-box;
    position: absolute;
    top: 5%;
    left: auto;
    right: 0;
    height: 90%;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    z-index: 10001;
    margin-right: 5%;
}


.post-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Optional: lock scrolling behind the modal */
body.modal-open {
    overflow: hidden;
}

.modal-image-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}



.modal-image-grid img {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
}

.social-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 100%;
}

.social-modal-left {
    overflow-y: auto;
    padding-right: 10px;
    border-right: 1px solid #eee;
}

.social-modal-right {
    overflow-y: auto;
}

.social-image-grid {
    column-count: 3;
    column-gap: 12px;
}

.social-image-wrapper {
    break-inside: avoid;
    margin-bottom: 12px;
}

.social-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.social-toggle-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.social-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.social-toggle-btn.active {
    background-color: #0077b5; /* LinkedIn blue */
    color: white;
    border-color: #0077b5;
}

.social-toggle-btn[data-network="ig"].active {
    background-color: #e1306c; /* Instagram pink */
    border-color: #e1306c;
}

.social-textarea-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.social-textarea-wrapper label {
    font-weight: 600;
    font-size: 14px;
}

#social-blurb {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.social-datetime-fields {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-datetime-fields label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.social-date-picker,
.social-time-picker {
    display: flex;
    flex-direction: column;
}

.social-modal-left #post_content {
    width: 100%;
    min-height: 240px;
    resize: none; /* Optional: prevent manual resizing */
    overflow: hidden;
}

.social-image-wrapper.selected {
    outline: 3px solid #0073aa;
    outline-offset: -3px;
}

#wpfooter {
    position: static !important;
    clear: both;
    margin-top: 30px;
}


