/* ===== Base Layout ===== */
body {
    font-family: Arial, sans-serif;
    background:#f5f5f5;
    margin:0;
}

/* ===== Headings ===== */
h1 {
    color: #333;
}

/* ===== add article ===== */

/* add language popup start */

/* ===== Modal ===== */
.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
    z-index:9999;
}
.modal-content{
    background:white;
    width:350px;
    padding:25px;
    border-radius:10px;
    position:relative;
}
.close-modal{
    position:absolute;
    top:10px;
    right:15px;
    font-size:24px;
    cursor:pointer;
}
.modal-content h3{
    margin-top:0;
}
.modal-content input{
    margin-bottom:15px;
}

/* add language popup end */

.toolbar{
    position:sticky;
    top:0;
    background:#f5f5f5;
    padding:10px 0;
    z-index:100;
}
form{
    width:60%;
    margin:20px auto;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 30px;
    box-sizing: border-box;
}
select {
    width: 200px;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
}
#editor{
    height:500px;
    overflow-y:auto;
    border:1px solid #ccc;
    background:#fff;
    scroll-behavior:smooth;
}
#editor_area{
    min-height:100%;
    border:1px solid #ffffff;
    background:#ffffff;
    margin:0 auto;
    padding:15px;
    box-sizing:border-box;
    transition:0.2s;
    word-break:break-word;
}

#editor_area:focus{
    outline:none;
    border:1px solid #009dff;
}
.publish_btn{
    margin-top: 15px;
}

/* ===== Button ===== */
button {
    padding: 10px 15px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}

/* ===== Article Box ===== */
.article-box {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* ===== Article Content (WYSIWYG output) ===== */
.article-content {
    margin-top: 15px;
    line-height: 1.8;
}

/* Images inside article */
.article-content img {
    max-width: 100%;
    height: auto;
}

/* Quotes */
.article-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 10px;
    color: #555;
    margin: 15px 0;
}

/* Code blocks */
.article-content pre {
    background: #f4f4f4;
    padding: 10px;
    overflow-x: auto;
}

/* ===== Actions ===== */
.article-actions {
    margin-top: 20px;
}

.article-actions a {
    text-decoration: none;
    color: blue;
}

.article-actions a:hover {
    text-decoration: underline;
}
.toolbar{
    margin-bottom:10px;
}

.toolbar button{
    padding:8px 12px;
    margin-right:5px;
    margin-bottom:5px;
}