

.pi-code-snippet {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 12px 16px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    white-space: pre;
    margin: 10px 0;
    position: relative;
}

.pi-code-snippet .snippet-lang-label {
    position: absolute;
    top: 4px;
    right: 10px;
    font-size: 11px;
    color: #aaa;
    text-transform: uppercase;
}

#pi-editor[contenteditable="true"]:empty::before {
    content: attr(data-placeholder);
    color: #888;
    position: absolute;
    top: 10px;
    left: 10px;
    pointer-events: none; /* Ensures text doesn't interact with the placeholder */
}


#pi-editor-textarea {
	display: none;
}

#editor-container{
	border: 1px solid gray;
	border-radius: 5px;
	padding: 10px;
}



.editor-toolbar button, .editor-toolbar select, .editor-toolbar input {
	margin-right: 5px;
	margin-bottom: 5px;
}

#pi-editor-section-holder{
	height: 100%;
}
.editor-content {
	border: 1px solid #ccc;
	padding: 10px;
	min-height: 200px;
	width: 100%;
}


.editor-toolbar {
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	
	padding: 10px;
	border: 1px solid gray;
	border-radius: 5px;
	background-color: #457B9D;
}

.btn-editor{
	font-size: 15px;
	border: o.1px solid black;
	border-radius: 50%;
	color: #457B9D;
}

.btn-editor:hover {
	background-color: white;
	/* color: white; */
	color: #EF7F1A;
}



 .modal {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
        }
        .modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 60%;
            max-width: 500px;
            text-align: center;
        }
        .close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            float: right;
        }
        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
        
        
        
        
        /* Line Height  */
        
        
.pi-editor-table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
}

.pi-editor-table td,
.pi-editor-table th {
    border: 1px solid #ccc;
    padding: 8px 10px;
    min-width: 60px;
    vertical-align: top;
}

.pi-editor-table th {
    background: #f0f0f0;
    font-weight: bold;
}

/* Focus indicator jab user cell ke andar type kar raha ho */
.pi-editor-table td:focus,
.pi-editor-table th:focus {
    outline: 2px solid #337ab7;
    outline-offset: -2px;
}
        
        
 .pi-search-highlight { background: #ffe58a; padding: 0 1px; }

#emojiPickerPanel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    width: 260px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-wrap: wrap;
}
.pi-emoji-item {
    display: inline-block;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}
.pi-emoji-item:hover { background: #f0f0f0; }

.pi-toc {
    border: 1px solid #e3e6ea;
    background: #fafbfc;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
}
.pi-toc-title { font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.pi-toc-list { list-style: none; padding-left: 0; margin: 0; }
.pi-toc-list li { margin-bottom: 4px; font-size: 13px; }
.pi-toc-level-1 { margin-left: 0; font-weight: 600; }
.pi-toc-level-2 { margin-left: 15px; }
.pi-toc-level-3 { margin-left: 30px; }
.pi-toc-level-4 { margin-left: 45px; }
.pi-toc-level-5 { margin-left: 60px; }
.pi-toc-level-6 { margin-left: 75px; }
.pi-toc-list a { color: #337ab7; text-decoration: none; }
.pi-toc-list a:hover { text-decoration: underline; }

.pi-callout {
    border-left: 4px solid #999;
    background: #f5f5f5;
    padding: 10px 14px;
    margin: 10px 0;
    border-radius: 4px;
}
.pi-callout-body::before {
    display: block;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.pi-callout-note { border-left-color: #337ab7; background: #eaf2fa; }
.pi-callout-note .pi-callout-body::before { content: "📘 Note"; color: #1c5a8a; }
.pi-callout-tip { border-left-color: #5cb85c; background: #eaf7ed; }
.pi-callout-tip .pi-callout-body::before { content: "💡 Tip"; color: #1e7e34; }
.pi-callout-warning { border-left-color: #f0ad4e; background: #fff8e1; }
.pi-callout-warning .pi-callout-body::before { content: "⚠️ Warning"; color: #b58500; }
.pi-callout-important { border-left-color: #d9534f; background: #fdecea; }
.pi-callout-important .pi-callout-body::before { content: "❗ Important"; color: #c0392b; }
.pi-callout-quote { border-left-color: #777; background: #f5f5f5; font-style: italic; }
.pi-callout-quote .pi-callout-body::before { content: "❝ Quote"; color: #555; }

.pi-removable-block {
    position: relative;
}

.pi-remove-block-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: none;
    z-index: 5;
}

.pi-removable-block:hover .pi-remove-block-btn {
    display: block;
}

.pi-toc, .pi-callout, .pi-code-snippet {
    padding-right: 34px; /* button ke liye jagah */
}

.pi-editor-table {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pi-editor-table th,
.pi-editor-table td {
    border: 1px solid #dfe3e8;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    min-width: 60px;
}

.pi-editor-table th {
    background: #337ab7;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pi-editor-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.pi-editor-table tbody tr:hover {
    background: #eef6fc;
}

.pi-editor-table td:focus,
.pi-editor-table th:focus {
    outline: 2px solid #337ab7;
    outline-offset: -2px;
    background: #fff;
}

/* Wrapper jisse remove button aur horizontal scroll (chhoti screen pe) sahi dikhe */
.pi-table-wrapper {
    position: relative;
    overflow-x: auto;
    margin: 10px 0;
}

        