
    :root {
        --primary-color: #2C7C80;
        --primary-hover: #226063;
        --bg-gray: #f0f2f5;
        --text-dark: #050505;
        --text-light: #65676b;
    }

    .modal-backdrop-custom {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(244, 246, 248, 0.85); /* Light blurred backdrop */
        z-index: 1050;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(4px);
    }

    .fb-modal-content {
        background: #fff;
        width: 100%;
        max-width: 600px;
        border-radius: 12px;
        box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        max-height: 90vh;
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from { transform: translateY(20px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }

    /* Header */
    .fb-modal-header {
        position: relative;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid #e4e6eb;
    }

    .fb-modal-title {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-dark);
    }

    .fb-close-btn {
        position: absolute;
        right: 16px;
        top: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #e4e6eb;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        color: var(--text-light);
    }

    .fb-close-btn:hover { background: #d8dadf; }

    /* Body */
    .fb-modal-body {
        padding: 16px;
        overflow-y: auto;
        flex: 1;
    }

    /* User Profile & Visibility */
    .user-row {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 10px;
    }

    .user-meta { display: flex; flex-direction: column; }
    .user-name { font-weight: 600; font-size: 15px; color: var(--text-dark); }

    .visibility-select {
        background: #e4e6eb;
        border-radius: 6px;
        padding: 2px 8px;
        font-size: 12px;
        font-weight: 600;
        border: none;
        display: flex;
        align-items: center;
        gap: 4px;
        cursor: pointer;
        width: fit-content;
        margin-top: 2px;
    }

    /* Inputs */
    .title-input {
        border: none;
        width: 100%;
        font-size: 18px;
        font-weight: 500;
        padding: 8px 0;
        outline: none;
    }

    .title-input::placeholder { color: var(--text-light); }

    /* CKEditor Customization */
    .ck-editor__editable {
        min-height: 120px;
        max-height: 250px;
        border: none !important;
        box-shadow: none !important;
        padding-left: 0 !important;
    }
    .ck.ck-toolbar { border: none !important; background: transparent !important; }

    /* AI Button */
    .ai-btn-container {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 10px;
    }

    .ai-btn {
        background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
        color: white;
        border: none;
        border-radius: 20px;
        padding: 6px 16px;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s;
        box-shadow: 0 2px 6px rgba(168, 85, 247, 0.4);
    }
    .ai-btn:hover { transform: scale(1.02); box-shadow: 0 4px 10px rgba(168, 85, 247, 0.5); }
    .ai-btn:disabled { opacity: 0.7; cursor: wait; }

    /* Add to Post Section (The Box) */
    .add-to-post {
        border: 1px solid #ced0d4;
        border-radius: 8px;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 15px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .add-text { font-weight: 600; color: var(--text-dark); font-size: 14px; }

    .add-options { display: flex; gap: 8px; }

    .option-icon {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s;
        font-size: 18px;
    }
    .option-icon:hover { background: #f2f2f2; }

    .icon-photo { color: #45bd62; }
    .icon-map { color: #f5533d; }
    .icon-star { color: #f7b928; }

    /* Dynamic Drawer Area */
    .drawer-area {
        background: #f7f8fa;
        border-radius: 8px;
        padding: 12px;
        margin-top: 10px;
        border: 1px solid #e4e6eb;
        animation: fadeIn 0.2s;
    }

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

    /* Footer */
    .fb-modal-footer {
        padding: 16px;
        border-top: none;
    }

    .post-submit-btn {
        width: 100%;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        padding: 10px;
        font-weight: 600;
        font-size: 15px;
        cursor: pointer;
        transition: background 0.2s;
    }

    .post-submit-btn:hover:not(:disabled) { background-color: var(--primary-hover); }
    .post-submit-btn:disabled { background-color: #e4e6eb; color: #bcc0c4; cursor: not-allowed; }

    /* Utility for Search Dropdown */
    .search-results {
        position: absolute;
        background: white;
        width: 90%;
        max-height: 200px;
        overflow-y: auto;
        border: 1px solid #ddd;
        border-radius: 8px;
        z-index: 100;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .search-item { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
    .search-item:hover { background: #f0f2f5; }

    /* Media Previews */
    .media-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .media-item { position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; }
    .media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
    .remove-media {
        position: absolute; top: 4px; right: 4px;
        background: white; border-radius: 50%; width: 20px; height: 20px;
        display: flex; justify-content: center; align-items: center;
        cursor: pointer; font-size: 12px; border: 1px solid #ddd;
    }
