body {
    background: #f7f7f7;
    font-family: Tahoma, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.form-container {
    background: #fff;
    margin: 20px auto;
    padding: 20px;
    width: 210mm; /* A4 width */
//min-height: 297mm; /* A4 height */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #000;

}


/* 🧩 جداول اصلی */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    page-break-inside: avoid;
}

td {
    border: 1px solid black;
    padding: 6px;
    vertical-align: top;
}

textarea,
input[type="text"],
input[type="number"],
input[type="date"] {
    width: 100%;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    padding: 4px;
}

textarea:focus,
input:focus {
    outline: none;
    background: #fffbe8;
}

/* 🏷️ Header Section */
.header-table img {
    width: 70%;
}

.header-table td {
    text-align: center;
    font-weight: bold;
}

/* 🧾 Title */
.header-title {
    font-size: 20px;
    font-weight: 600;
}

/* ✅ Checkboxes */
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 4px;
}

/* 🧱 Footer */
.footer-table td {
    text-align: center;
    font-size: 12px;
}

/* 🎛️ Buttons Section */
.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.form-buttons button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin: 0 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.form-buttons button:hover {
    background: #0056b3;
}



.a4-page {
    width: 210mm;
    height: 297mm; /* ← ارتفاع دقیق A4 */
    background: white;
    padding-top: 10mm;
    padding: 5mm 10mm 10mm 10mm;
    margin: auto;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* محتوا بالا و فوتر پایین */
    font-family: sans-serif;
}

header {
    text-align: center;
}

main {
    flex: 1;
    padding: 10mm 0;
}

footer {
    text-align: center;
    font-size: 12px;
    color: gray;
    //border-top: 1px solid #ccc;
    padding-top: 5px;
}

#home{
    position: relative;
    z-index: 0;
    background-image: url("./img/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
#home::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;  /* same effect as inset: 0 but scoped */
    background-color: rgba(255, 255, 255, 0.5);
// backdrop-filter: blur(1px);
// -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
    z-index: 0;
}
#home > * {
    position: relative;
    z-index: 1; /* Ensure content stays on top */
}


.form-wrap {
    margin: 5px auto;
    min-height: 550px;
    max-width: 450px;
    min-width: 350px;
    padding: 50px;


//background-color:#e1e2f0;
}

.form-wrap button:hover{
    color: #0a152b !important;
    border: 1px solid #b71c1c !important;
}

.row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.row label {
    font-size: 13px;
    color: #8086a9;
}

.row input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d6d8e6;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease-out;
    color: #696767;
}

.row input:focus {
    outline: none;
//box-shadow: inset 2px 2px 5px 0 rgba(42, 45, 48, 0.12);
}

.row input::placeholder {
    color: #C8CDDF;
}

.productEdit {
    background-color: #3b8d3b;
    margin-left: 15px;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}