/* =====================================================
   OMR ARTICLE MANAGER 4.0
   Module 1
   Reset + Theme + Layout
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --primary:#0A2F5C;
    --primary-light:#174A87;
    --accent:#F4B400;

    --background:#EEF3F9;

    --card:#FFFFFF;

    --border:#D9E2EC;

    --text:#1F2937;

    --muted:#6B7280;

    --radius:10px;

    --shadow:
    0 4px 14px rgba(0,0,0,.08);

}


    body{
        
    margin:0;
    background:#f3f5f7;
    font-family:Arial, Helvetica, sans-serif;

}

.wrapper{

    display:grid;

    grid-template-columns:
    380px
    1fr;

    gap:24px;

    padding:25px;

    min-height:100vh;

}

.editor-panel{

    background:
    var(--card);

    border-radius:
    var(--radius);

    box-shadow:
    var(--shadow);

    padding:20px;

    overflow-y:auto;

    max-height:100vh;

    position:sticky;

    top:20px;

}

.panel-header{

    text-align:center;

    margin-bottom:25px;

}

.panel-header h1{

    color:
    var(--primary);

    font-size:28px;

}

.panel-header p{

    color:
    var(--muted);

    margin-top:6px;

}

.card{

    background:#fff;

    border:1px solid
    var(--border);

    border-radius:
    8px;

    padding:18px;

    margin-bottom:22px;

}

.card h2{

    color:
    var(--primary);

    margin-bottom:15px;

    font-size:18px;

}

.card label{

    display:block;

    margin-top:14px;

    margin-bottom:6px;

    font-weight:600;

}

.card input,
.card textarea{

    width:100%;

    border:1px solid
    var(--border);

    border-radius:6px;

    padding:10px 12px;

    font-size:14px;

    outline:none;

    transition:.25s;

    resize:vertical;

}

.card input:focus,
.card textarea:focus{

    border-color:
    var(--primary);

    box-shadow:
    0 0 0 3px
    rgba(10,47,92,.12);

}

button{

    cursor:pointer;

    border:none;

    border-radius:6px;

    padding:10px 16px;

    background:
    var(--primary);

    color:#fff;

    font-weight:600;

    transition:.25s;

}

button:hover{

    background:
    var(--primary-light);

}

/* ===========================================
   ARTICLE CANVAS
=========================================== */

.article-canvas{

    background:#fff;

    border-radius:10px;

    box-shadow:0 4px 14px rgba(0,0,0,.08);

    padding:40px;

    min-height:100vh;

}


.article-header{

    margin-bottom:35px;

}


.journal-name{
    font-size:30px;
    font-weight:700;
    color:#0A2F5C;
    text-align:left;
    margin-bottom:10px;
}

.journal-name a{
    color:#0A2F5C;
    text-decoration:none;
}

.journal-name a:hover{
    color:#D4AF37;
}

/* ===========================
   BREADCRUMB
=========================== */

.breadcrumb{

    font-size:17px;

    font-weight:600;

    color:#0A2F5C;

    margin-bottom:28px;

    line-height:1.6;

}

.breadcrumb a{

    color:#0A2F5C;

    text-decoration:none;

    font-weight:600;

}

.breadcrumb a:hover{

    color:#D4AF37;

    text-decoration:underline;

}

.breadcrumb a:visited{

    color:#0A2F5C;

}

.breadcrumb a:active{

    color:#0A2F5C;

}

.breadcrumb a:focus{

    color:#0A2F5C;

    outline:none;

}

.breadcrumb span{

    color:#555;

    font-weight:600;

}

.article-type{

    display:inline-block;

    background:#EEF4FB;

    color:#0A2F5C;

    padding:6px 14px;

    border-radius:4px;

    font-size:13px;

    font-weight:600;

    margin-bottom:20px;

}


#canvas-title{

    font-size:33px;

    line-height:1.3;

    color:#111;

    margin-bottom:35px;

}

.article-layout{

    display:grid;

    grid-template-columns:
    2.3fr
    320px;

    gap:40px;

    margin-top:35px;

}

.article-sidebar{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.sidebar-card{

    background:#fff;

    border:1px solid #E5E7EB;

    border-radius:8px;

    padding:22px;

    box-shadow:0 2px 8px rgba(0,0,0,.05);

}

.content-section{

    margin-bottom:40px;

    background:#fff;

    padding:25px;

    border:1px solid #E5E7EB;

    border-radius:8px;

}

.content-section h2{

    font-size:28px;

    color:#0A2F5C;

    margin-bottom:18px;

    padding-bottom:10px;

    border-bottom:2px solid #E8EDF5;

}

/* ===========================================
   AUTHORS
=========================================== */

.canvas-authors{

    margin-bottom:35px;

}

.author-preview{

    margin-bottom:30px;

}

.author-preview strong{

    display:block;

    font-size:24px;

    color:#111;

    margin-bottom:10px;

}

.author-preview p{

    color:#666;

    font-size:16px;

    line-height:1.8;

}

/* ===========================================
   ARTICLE META
=========================================== */

.article-meta{

    background:#F8FAFC;

    border:1px solid #E5E7EB;

    border-radius:8px;

    padding:18px 20px;

    margin-bottom:35px;

}

.article-meta p{

    margin:8px 0;

    font-size:14px;

    color:#555;

}

.article-meta strong{

    color:#0A2F5C;

}

.sidebar-card h3{

    font-size:18px;

    color:#0A2F5C;

    margin-bottom:18px;

    border-bottom:1px solid #eee;

    padding-bottom:10px;

}

.sidebar-card p{

    margin-bottom:12px;

    color:#555;

}


#sidebar-license{

    width:120px;

    margin:10px 0 15px;

}

.license-text{

    font-size:13px;

    color:#666;

    line-height:1.8;

    text-align:justify;

}

.related-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:20px;

}

.related-card{

    background:#fff;

    border:1px solid #ddd;

    border-radius:8px;

    padding:20px;

    transition:.3s;

}

.related-card:hover{

    transform:translateY(-4px);

    box-shadow:0 6px 18px rgba(0,0,0,.08);

}

.article-footer{

    margin-top:50px;

    padding-top:25px;

    border-top:1px solid #ddd;

    text-align:center;

    color:#777;

    font-size:14px;

}

.author-buttons{

    margin-top:20px;

}

#addAuthorBtn{

    width:100%;

}

.remove-author{

    margin-top:15px;

    width:100%;

    background:#C62828;

}

.remove-author:hover{

    background:#B71C1C;

}

/* First author ko remove nahi karenge */

.author-block:first-child .remove-author{

    display:none;

}

/* ===========================================
   REFERENCES
=========================================== */

.reference-list{

    line-height:2;

    font-size:16px;

    color:#444;

    word-break:break-word;

}

.reference-list a{

    color:#0A2F5C;

    text-decoration:none;

    font-weight:600;

}

.reference-list a:hover{

    text-decoration:underline;

}

#sidebar-citation{

    min-height:120px;

    line-height:1.8;

    font-size:14px;

    color:#444;

    word-break:break-word;

    margin-bottom:18px;

}

.citation-placeholder{

    color:#888;

    font-style:italic;

}

#sidebar-citation{

    min-height:120px;

    line-height:1.8;

    font-size:14px;

    color:#444;

    margin-bottom:15px;

}

.citation-placeholder{

    color:#888;

    font-style:italic;

}

#copyCitationBtn{

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    border-radius:6px;

    cursor:pointer;

    background:#0A2F5C;

    color:#fff;

    transition:.2s;

}

#copyCitationBtn:hover{

    opacity:.9;

}

/* ===========================================
   SIMILAR ARTICLES
=========================================== */

.similar-block{

    border:1px solid #d9d9d9;

    border-radius:8px;

    padding:15px;

    margin-bottom:15px;

    background:#fafafa;

}

.similar-block label{

    display:block;

    margin-top:10px;

    font-weight:600;

    font-size:13px;

}

.similar-block input{

    width:100%;

    margin-top:5px;

}

#addSimilarBtn{

    width:100%;

    margin-top:10px;

}

.remove-similar{

    margin-top:15px;

    width:100%;

    background:#c62828;

    color:#fff;

    border:none;

    padding:10px;

    border-radius:6px;

    cursor:pointer;

}

.remove-similar:hover{

    background:#a61d1d;

}

/* ===========================================
   PREVIEW
=========================================== */

#canvas-similar{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.similar-preview{

    padding-bottom:15px;

    border-bottom:1px solid #e5e5e5;

}

.similar-preview:last-child{

    border-bottom:none;

}

.similar-preview .author{

    font-weight:700;

    color:#222;

    margin-bottom:6px;

}

.similar-preview .title{

    display:block;

    font-weight:600;

    color:#0A58CA;

    text-decoration:none;

    margin-bottom:8px;

}

.similar-preview .title:hover{

    text-decoration:underline;

}

.similar-preview .journal{

    font-size:14px;

    color:#555;

    line-height:1.6;

}

.article-pdf-link .pdf-icon {
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;
    max-width: none !important;
    max-height: none !important;
}

.article-pdf-link .pdf-icon {
    transition: transform 0.2s ease !important;
}

.article-pdf-link:hover .pdf-icon {
    transform: scale(1.08) !important;
}

.citation-format{

    margin-top:18px;

}

.citation-format label{

    display:block;

    margin-bottom:8px;

    font-size:13px;

    font-weight:600;

    color:#444;

}

#citationStyle{

    width:100%;

    padding:10px 14px;

    border:1px solid #D4DCE8;

    border-radius:6px;

    background:#fff;

    font-size:14px;

    color:#222;

    outline:none;

    transition:.25s;

}

#citationStyle:hover{

    border-color:#0A58CA;

}

#citationStyle:focus{

    border-color:#0A58CA;

    box-shadow:0 0 0 3px rgba(10,88,202,.12);

}

#generateHTMLBtn{

    width:100%;

    padding:14px;

    font-size:16px;

    font-weight:700;

    background:#0A2F5C;

    color:#fff;

    border:none;

    border-radius:8px;

    cursor:pointer;

    transition:.25s;

}

#generateHTMLBtn:hover{

    background:#174A87;

}


.article-wrapper{

    max-width:1100px;

    margin:40px auto;

    background:#ffffff;

    border-radius:8px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);

    overflow:hidden;

}

.journal-article{

    padding:40px;

}

.site-header{

    margin-bottom:30px;

}

.journal-name a,
.journal-name a:visited{
    color:#0A2F5C;
}

/* ===========================
   LICENSE LINK
=========================== */

.license-text a,
.license-text a:link,
.license-text a:visited,
.license-text a:hover,
.license-text a:active,
.license-text a:focus{

    color:#0A2F5C;
    text-decoration:none;
    font-weight:700;
    outline:none;

}

#sidebar-license{

    cursor:pointer;

}

.reference-list p{

    margin:0 0 22px;

    line-height:1.9;

    font-size:16px;

    color:#444;

}

.reference-list p:last-child{

    margin-bottom:0;

}

.article-footer{

    margin-top:70px;

    background:linear-gradient(135deg,#0A2F5C,#123F73);

    color:#fff;

    text-align:center;

    padding:50px 20px;

}

.footer-content{

    max-width:900px;

    margin:auto;

}

.footer-content h3{

    margin:0;

    font-size:28px;

    font-weight:700;

    letter-spacing:.5px;

}

.footer-tagline{

    margin:15px auto 25px;

    max-width:700px;

    line-height:1.8;

    color:#d7e5f6;

    font-size:16px;

}

.footer-meta{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:30px;

    font-size:15px;

    color:#f4f4f4;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.25);

    padding-top:20px;

    font-size:14px;

    color:#d7e5f6;

}

