/* =====================================================
   Markdown To PDF - DonePDF Professional Layout
   ===================================================== */

/* Main Layout */

.editor-layout{
    width:100%;
    max-width:1400px;
    margin:30px auto;
}

/* =====================================================
   File Box
   ===================================================== */

.file-box{
    max-width:1000px;
    margin:0 auto 25px;
    padding:16px 20px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:16px;
    box-shadow:0 4px 12px rgba(15,23,42,.05);
}

.file-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.file-name{
    flex:1;
    font-size:15px;
    font-weight:600;
    color:#1e293b;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.file-size{
    color:#64748b;
    font-size:13px;
    white-space:nowrap;
}

.remove-file{
    width:36px;
    height:36px;
    border:none;
    border-radius:10px;
    background:#fef2f2;
    color:#dc2626;
    cursor:pointer;
    transition:.25s;
}

.remove-file:hover{
    background:#fee2e2;
}

/* =====================================================
   Editor Container
   ===================================================== */

.editor-container{
    max-width:1100px;
    margin:0 auto;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(15,23,42,.05);
}

/* =====================================================
   Tabs
   ===================================================== */

.editor-header{
    padding:0;
    background:#ffffff;
    border-bottom:1px solid #e2e8f0;
}

.editor-tabs{
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

.editor-tab{
    padding:14px 22px;
    font-size:14px;
    font-weight:600;
    color:#64748b;
    cursor:pointer;
    transition:.25s;
}

.editor-tab:hover{
    color:#2563eb;
}

.editor-tab.active{
    color:#2563eb;
    border-bottom:3px solid #2563eb;
}

/* =====================================================
   Editor Area
   ===================================================== */

.editor-area{
    display:flex;
    min-height:550px;
}

.editor-column{
    flex:1;
    min-width:0;
}

.editor-column:first-child{
    border-left:1px solid #e2e8f0;
}

.column-header{
    padding:14px 18px;
    background:#f8fafc;
    border-bottom:1px solid #e2e8f0;
    font-weight:600;
    color:#1e293b;
}

/* =====================================================
   Markdown Input
   ===================================================== */

.markdown-input{
    width:100%;
    height:550px;
    border:none;
    resize:none;
    padding:20px;
    background:#ffffff;
    color:#0f172a;
    font-family:Consolas, Monaco, monospace;
    font-size:14px;
    line-height:1.8;
}

.markdown-input:focus{
    outline:none;
}

/* =====================================================
   Preview
   ===================================================== */

.html-preview{
    height:550px;
    overflow-y:auto;
    padding:24px;
    background:#ffffff;
    color:#334155;
    line-height:1.8;
}

/* =====================================================
   PDF Settings
   ===================================================== */

.tool-settings{
    max-width:1000px;
    margin:25px auto;
    padding:24px;
    background:#ffffff;
    border:1px solid #e2e8f0;
    border-radius:18px;
    box-shadow:0 4px 12px rgba(15,23,42,.05);
}

.tool-settings h3{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    margin:0 0 20px;
    font-size:22px;
    font-weight:700;
    color:#1e293b;
}

.tool-settings h3 i{
    color:#2563eb;
}

.options-grid{
    display:grid;
    grid-template-columns:repeat(4,220px);
    justify-content:center;
    gap:14px;
}

.options-grid select,
.options-grid input{
    height:42px;
    font-size:13px;
    padding:0 12px;
}

.options-grid label{
    display:block;
    margin-bottom:8px;
    font-size:13px;
    font-weight:600;
    color:#64748b;
}


.options-grid select:focus,
.options-grid input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

/* =====================================================
   Buttons
   ===================================================== */

.action-buttons{
    display:flex;
    justify-content:center;
    gap:14px;
    margin:30px auto;
    flex-wrap:wrap;
}

.action-buttons .btn{
    min-width:180px;
    height:50px;
    border-radius:999px;
    font-size:15px;
    font-weight:600;
}

.action-buttons .btn-primary{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#fff;
    border:none;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

.action-buttons .btn-primary:hover{
    transform:translateY(-2px);
}

.action-buttons .btn-secondary{
    background:#fff;
    color:#334155;
    border:1px solid #cbd5e1;
}

/* =====================================================
   Responsive
   ===================================================== */

@media(max-width:992px){

    .options-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .file-row{
        flex-wrap:wrap;
    }

    .file-name{
        width:100%;
    }

    .editor-area{
        flex-direction:column;
    }

    .editor-column:first-child{
        border-left:none;
        border-bottom:1px solid #e2e8f0;
    }

    .options-grid{
        grid-template-columns:1fr;
    }

    .markdown-input,
    .html-preview{
        height:350px;
    }

    .action-buttons{
        flex-direction:column;
    }

    .action-buttons .btn{
        width:100%;
    }

}