body {
    font-family: Arial, sans-serif;
    max-width: 840px;
    margin: 0 auto;
    padding: 10px;
}
textarea, input {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    box-sizing: border-box;
}
button {
    margin-top: 10px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
.id-container {
    border: 1px dashed #000;
    padding: 10px;
    margin: 10px auto;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}
.left-section, .right-section {
    padding: 5px;
    border: 1px solid #000;
    box-sizing: border-box;
    width: 400px;
    min-height: 250px;
    position: relative;
    border-radius: 5px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}
.header img {
    height: 50px;
}
.header-title {
    text-align: center;
    flex-grow: 1;
}
.header-title h1 {
    margin: 0;
    font-size: 16px;
}
.header-title p {
    margin: 0;
    font-size: 10px;
}
.details p {
    margin: 5px 0;
    font-size: 10px;
}
.qr-section {
    position: absolute;
    right: 5px;
    bottom: 5px;
}
.qr-section img {
    height: 50px;
}
.right-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}
.right-section th, .right-section td {
    border: 1px solid #000;
    padding: 5px;
    text-align: left;
    font-size: 10px;
}
.right-section th {
    background-color: #f2f2f2;
}
.right-section table tr:first-child {
    font-weight: bold;
    background-color: #fff0e6;
}
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.action-buttons button {
    width: 30%;
}
.print-date {
    font-size: 10px;
    margin-top: 10px;
    text-align: right;
}
.drag-drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 10px;
    color: #999;
}
.drag-drop-zone.dragover {
    border-color: #4CAF50;
}
.drag-drop-zone img {
    max-height: 50px;
}
#member-info {
    font-size: 11px;
    text-align: center;
    font-weight: bold;
}
textarea:disabled {
    background-color: #f0f0f0;
    color: #666;
    cursor: not-allowed;
}
/* Responsive Styles */
@media (max-width: 600px) {
    .id-container {
        flex-direction: column;
        align-items: stretch;
    }
    .left-section, .right-section {
        width: 100%;
        margin-bottom: 20px;
    }
    .header img {
        height: 40px;
    }
    .header-title h1 {
        font-size: 14px;
    }
    .header-title p {
        font-size: 8px;
    }
    .details p, .print-date {
        font-size: 8px;
    }
    .right-section th, .right-section td {
        font-size: 8px;
        padding: 4px;
    }
    .action-buttons button {
        width: 100%;
        margin-bottom: 10px;
    }
}
@media print {
    body * {
        visibility: hidden;
    }
    #previewContainer, #previewContainer * {
        visibility: visible;
    }
    #previewContainer {
        position: absolute;
        left: 0;
        top: 0;
    }
    #detail, .action-buttons {
        display: none;
    }
    .right-section {
        margin-left: 5px;
    }
    .right-section, .left-section {
        height: 5.5;
        width: 8.5;
    }
}  