/* ── Shared colour tokens (mirrors styles.css) ── */
:root {
    --bg:           #f4f7f5;
    --surface:      #ffffff;
    --primary:      #11543b;
    --primary-soft: #e9f4ef;
    --text:         #1d2b24;
    --muted:        #4c5a53;
    --border:       #d6e4dc;
    --shadow:       0 10px 30px rgba(17, 84, 59, 0.12);
}

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

/* CSS Reset & Basic styles */
body {
    background-color: var(--bg);
    font-family: 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', serif;
    margin: 0;
    padding: 8px 0;
    color: var(--text);
}

/* A4 Page Container */
.a4-page {
    width: 210mm;
    min-height: 297mm;
    background: var(--surface);
    margin: 0 auto;
    padding: 12mm 15mm;
    box-shadow: var(--shadow);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.a4-page::before {
    content: none;
}

.page-break-before {
    break-before: page;
    page-break-before: always;
}

/* ── Watermark zones (screen) ── */
.watermark-zone {
    position: relative;
}

.watermark-zone-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 84px;
    font-weight: 900;
    color: rgba(200, 0, 0, 0.09);
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    letter-spacing: 10px;
    text-transform: uppercase;
    user-select: none;
}

/* ── Print watermark (repeats on every page) ── */
.print-watermark {
    display: none;
}

/* Header Area */
.header {
    display: flex;
    justify-content: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}
.header-logo {
    height: 80px;
    width: auto;
    flex-shrink: 0;
    mix-blend-mode: multiply;
    background: transparent;
}
.header-text {
    text-align: left;
}
.header h1 {
    color: var(--primary);
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}
.header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

/* Profile Title */
.profile-title {
    text-align: center;
    background-color: var(--primary);
    color: #ffffff;
    padding: 8px 25px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    width: fit-content;
    margin: 0 auto 25px;
    border: 2px solid var(--primary);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* Top Section: Basic Info & Photo */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.basic-info {
    width: 75%;
}
.info-row {
    margin-bottom: 10px;
    font-size: 16px;
}
.info-row span.label {
    font-weight: bold;
    display: inline-block;
    width: 140px;
}
.info-row span.value {
    border-bottom: 1px dotted var(--border);
    display: inline-block;
    width: calc(100% - 150px);
}

/* Photograph Box */
.photo-box {
    width: 35mm;
    height: 45mm;
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    background-color: var(--primary-soft);
}

/* Table Styling for Details */
.section-header {
    background-color: var(--primary-soft);
    font-weight: bold;
    color: var(--primary);
    padding: 8px 10px;
    border: 1px solid var(--border);
    margin-bottom: 0;
    font-size: 16px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table, th, td {
    border: 1px solid var(--border);
}
th, td {
    padding: 10px;
    text-align: left;
    font-size: 15px;
}
th {
    background-color: transparent;
    width: 35%;
    color: var(--text);
    font-weight: 600;
}

/* Nominee Table */
.nominee-table thead th {
    background-color: var(--primary-soft);
    color: var(--primary);
    text-align: center;
    width: auto;
}
.nominee-table td {
    text-align: center;
}
.nominee-table td:nth-child(2) {
    text-align: left;
}

/* Signatures Section */
.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding: 0 10px;
}
.signature-box {
    text-align: center;
    width: 200px;
    font-size: 15px;
    font-weight: bold;
    color: var(--text);
}
.sig-area {
    height: 55px;
    border: 1px dashed var(--border);
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-bottom: 6px;
}
.sig-line {
    border-top: 1px solid var(--text);
    padding-top: 6px;
}

/* Print Media Query */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body {
        background: none;
        padding: 0;
    }
    .a4-page {
        box-shadow: none;
        margin: 0;
        padding: 15mm;
    }
    .watermark-zone-text {
        display: none;
    }
    .print-watermark {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        font-size: 100px;
        font-weight: 900;
        color: rgba(200, 0, 0, 0.09);
        white-space: nowrap;
        pointer-events: none;
        z-index: 9999;
        letter-spacing: 10px;
        text-transform: uppercase;
        font-family: 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', serif;
    }
}
