:root {
    --primary: #4f46e5;
    --success: #10b981;
    --bg: #f8fafc;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--bg);
    margin: 0; padding: 0;
}

.navbar {
    background: #1e293b; color: white;
    padding: 15px 50px; display: flex;
    justify-content: space-between; align-items: center;
}

.container {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 40px; padding: 40px 20px;
}

.form-wrapper {
    background: white; padding: 30px; border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); width: 400px;
}

.card-header-title {
    font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #334155;
    border-bottom: 2px solid #e2e8f0; padding-bottom: 10px;
}

.grid-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input {
    padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px;
    transition: 0.3s;
}
input:focus { border-color: var(--primary); outline: none; }

.upload-group, .sig-group { margin-top: 15px; }
canvas { background: #f1f5f9; border-radius: 10px; border: 1px dashed #94a3b8; width: 100%; }

.action-buttons { display: flex; gap: 10px; margin-top: 20px; }
button { flex: 1; padding: 12px; border-radius: 8px; border: none; font-weight: bold; cursor: pointer; }
.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }

/* কার্ডের আসল ডিজাইন */
.nid-main-card {
    width: 500px; height: 312px;
    background: url('images/20260207_210620.jpg') no-repeat center;
    background-size: 100% 100%;
    position: relative; border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-content-flex {
    display: flex; padding-top: 105px; /* আপনার ইমেজে তথ্য যেখান থেকে শুরু */
    padding-left: 20px;
}

.left-side { width: 110px; text-align: center; }
.photo-container {
    width: 105px; height: 125px; border: 1px solid #000;
    background: #fff; overflow: hidden;
}
.photo-container img { width: 100%; height: 100%; object-fit: cover; }

.signature-container { margin-top: 10px; }
#cardSig { width: 90px; height: 30px; object-fit: contain; }
.sign-text { font-size: 9px; border-top: 1px solid #000; margin-top: 2px; }

.right-side {
    margin-left: 20px; line-height: 1.8;
    color: #000; font-weight: bold; font-size: 14px;
}
.right-side p { margin: 4px 0; }
.label { display: inline-block; width: 90px; } /* লেবেলগুলো সাইডে রাখার জন্য */
.red { color: #d32f2f; }
.val-red { color: #d32f2f; }
.id-bold { font-size: 18px; font-family: monospace; letter-spacing: 1px; }
