@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #1e3a8a;
    --font-bn: 'SolaimanLipi', 'Kalpurush', sans-serif;
    --font-en: 'Arial', 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-bn);
    background-color: #f1f5f9;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

body.lang-en {
    font-family: var(--font-en);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background: #0f172a;
    color: #fff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 25px;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
}
.navbar a.active {
    color: #38bdf8;
}

/* Card & Forms */
.card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.col-3 { flex: 1 1 calc(25% - 15px); min-width: 200px; }
.col-4 { flex: 1 1 calc(33.333% - 15px); min-width: 250px; }
.col-6 { flex: 1 1 calc(50% - 15px); min-width: 300px; }
.col-12 { flex: 1 1 100%; }

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-success { background: #16a34a; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* Dynamic Rows Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.table th, .table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
}
.table th { background: #f8fafc; }

/* Print & CV Sheet Area */
.cv-paper {
    background: #fff;
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
    margin: 20px auto;
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    position: relative;
}

/* Bengali & English Typography */
.cv-paper.lang-bn { font-family: var(--font-bn); font-size: 15pt; line-height: 1.45; }
.cv-paper.lang-en { font-family: var(--font-en); font-size: 14pt; line-height: 1.4; }

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.cv-title {
    font-size: 22pt;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.cv-candidate-name {
    font-size: 18pt;
    font-weight: bold;
}
.cv-photo {
    width: 32mm;
    height: 38mm;
    border: 1px solid #94a3b8;
    object-fit: cover;
}

.cv-section-title {
    font-size: 14pt;
    font-weight: bold;
    margin: 15px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
}

.cv-details-table {
    width: 100%;
    border-collapse: collapse;
}
.cv-details-table td {
    padding: 4px 6px;
    vertical-align: top;
}
.cv-details-table td.label-col {
    width: 25%;
    font-weight: bold;
}
.cv-details-table td.colon-col {
    width: 3%;
}

.cv-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}
.cv-data-table th, .cv-data-table td {
    border: 1px solid #334155;
    padding: 6px 8px;
    font-size: 11pt;
    text-align: center;
}
.cv-data-table th {
    background-color: #f1f5f9;
    font-weight: bold;
}

.cv-signature-area {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.signature-box {
    text-align: center;
    width: 200px;
}
.signature-box img {
    max-height: 50px;
    max-width: 150px;
}

/* Print CSS Configurations */
@media print {
    html, body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .no-print {
        display: none !important;
    }
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .cv-paper {
        margin: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 0 !important; /* নির্দিষ্ট কোনো প্যাডিং ফিক্স করা থাকল না */
    }
    
    /* এখানে মার্জিন অটো বা ডিফল্ট রাখা হলো, যা প্রিন্ট ডায়ালগ থেকে কাস্টম করা যাবে */
    @page {
        size: A4;
        margin: 0.4in; /* ডিফল্টভাবে .4 থাকবে, তবে ব্রাউজার প্রিন্ট উইন্ডো থেকে পরিবর্তন করা যাবে */
    }
}