body {
            font-family: 'Noto Sans', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #EFF2F9;
        }

        #front-preview, #back-preview {
            position: relative;
            background-size: cover;
            background-position: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        #front-preview {
            background-image: url('https://oneclickpvccard.com/ashim/media/union_font.png');
        }

        #back-preview {
            background-image: url('https://oneclickpvccard.com/ashim/media/union_back_qr.png');
        }

        .preview-container {
            display: flex;
            gap: 20px;
            margin: 20px 0;
        }

        .preview-content {
            position: absolute;
            color: #000;
            text-align: center;
            font-size: 14px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        h1, h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #1e2532;
        }

        h2 {
            font-size: 1.5rem;
            margin-top: 40px;
        }

        /* Navbar Styles */
        .navbar {
            background-color: #fff;
            padding: 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .navbar-brand-text {
            font-size: 1.8rem;
            font-weight: bold;
            color: #1A91F0;
            text-decoration: none;
        }

        .navbar-brand-text span {
            color: #1e2532;
        }

        /* Form Styles */
        form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        label {
            font-weight: 500;
            margin-bottom: 8px;
            color: #1e2532;
        }

        input, textarea {
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 6px;
            font-size: 1rem;
            font-family: inherit;
            background-color: #fff;
            transition: all 0.3s ease;
        }

        input:focus, textarea:focus {
            border-color: #1A91F0;
            box-shadow: 0 0 5px rgba(26, 145, 240, 0.3);
            outline: none;
        }

        textarea {
            resize: none;
        }

        .form-text {
            color: #ca0b00;
            font-size: 0.875rem;
            margin-top: 5px;
        }

        /* Preview Container */
        .preview-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            margin-top: 40px;
        }

        .card-preview {
            width: 100%;
            max-width: 500px;
            aspect-ratio: 3.375 / 2.125; /* CR80 card ratio */
            
            background-color: #fff;
            position: relative;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .card-content {
            position: absolute;
            width: 100%;
            height: 100%;
            padding: 15px;
            box-sizing: border-box;
            color: #000;
        }

        .card-content img.photo {
            width: 100px;
            height: 120px;
            border-radius: 0;
            object-fit: cover;
            position: absolute;
            top: 160px;
            right: 20px;
            border: 2px solid #fff;
            box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
        }

        #DL-preview {
            font-family: "Poetsen One", serif;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 1.8px;
            font-size: 1.2rem; /* Larger font size for emphasis */
            position: absolute;
            display: block;
            top: 119px; /* Vertical positioning */
            left: 125px; /* Horizontal positioning */
            color: #f2b949; /* Lighter color to enhance the emboss effect */
            font-weight: 800;
            text-shadow: 1px 0px 0 #c8c8d3, -1px -1px 0 #636466, 1px -1px 0 #1e2532, -1px 1px 0 rgba(255, 255, 255, 0.6);
        }

        #name-preview {
            font-size: 1.0rem; /* Larger font size for emphasis */
            font-weight: 200; /* Make it bold */
            position: absolute;
            top: 157px; /* Vertical positioning */
            left: 60px; /* Horizontal positioning */
            color: #000; /* Text color */
            font-weight: 600;
        }

        /* Father's Name Text */
 #father-name-preview {
    font-size: 1.0rem;
    position: absolute;
    top: 194px; /* Fixed position for the first line */
    left: 60px;
    color: #000000;
    font-weight: 600;
    max-width: 300px; /* Adjust based on your layout */
    line-height: 0.8; /* Adjust line height as needed */
    word-wrap: break-word; /* Break long words if necessary */
}
        /* Date of Birth (DOB) Text */
        #dob-preview {
            font-size: 1.0rem; /* Smaller text size */
            position: absolute;
            top: 234px; /* Position below father's name */
            left: 60px; /* Align with the others */
            color: #000000; /* Subtle color for less emphasis */
            font-weight: 600;
        }

        #nt-preview {
            font-family: "Poetsen One", serif;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 1.8px;
            font-size: 1.0rem; /* Smaller text size */
            position: absolute;
            display: block;
            top: 265px; /* Position below father's name */
            left: 60px; /* Align with the others */
            color: #f2b949; /* Lighter color to enhance the emboss effect */
            text-shadow: 1px 0px 0 #c8c8d3, -1px -1px 0 #636466, 1px -1px 0 #1e2532, -1px 1px 0 rgba(255, 255, 255, 0.6);
        }

        #tr-preview {
            font-family: "Poetsen One", serif;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 1px;
            font-size: 1.0rem; /* Smaller text size */
            position: absolute;
            top: 120px; /* Position below father's name */
            left: 341px; /* Align with the others */
            color: #f2b949; /* Lighter color to enhance the emboss effect */
            text-shadow: 1px 0px 0 #c8c8d3, -1px -1px 0 #636466, 1px -1px 0 #1e2532, -1px 1px 0 rgba(255, 255, 255, 0.6);
        }

        #dl-no-preview {
            font-size: 1.0rem; /* Smaller text size */
            position: absolute;
            top: 244px; /* Position below father's name */
            left: 200px; /* Align with the others */
            color: #000000; /* Subtle color for less emphasis */
            font-weight: 600;
        }
       #sign-preview {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    position: absolute;
    top: 229px;
    left: 439px;
}

        #phone-preview {
            font-family: "Poetsen One", serif;
            font-weight: 400;
            font-style: normal;
            letter-spacing: 1.8px;
            font-size: 1.1rem;
            position: absolute;
            display: block;
            top: 220px;
            left: 323px;
            color: #c4bbb2;
            transform: rotate(180deg);
            z-index: 2;
            text-shadow: 1px 0px 0 #c8c8d3, -1px -1px 0 #636466, 1px -1px 0 #1e2532, -1px 1px 0 rgba(255, 255, 255, 0.6);
        }

        /* QR Code Styles */
        #qrcode {
    position: absolute;
    top: 182px;
    left: 52%;
    transform: translateX(-50%);
    width: 116px;
    height: 120px;
}

        /* Download Button */
        #download-pdf {
            display: block;
            margin: 30px auto;
            padding: 12px 25px;
            font-size: 1rem;
            background-color: #1A91F0;
            color: #fff;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #download-pdf:hover {
            background-color: #1170CD;
        }

        /* Responsive Design */
        @media (max-width: 767px) {
            form {
                grid-template-columns: 1fr;
            }

            .card-preview {
                width: 100%;
            }
        }
        
        /* Your existing CSS remains the same */
/* Add these new styles at the end */

/* Database buttons styles */
.database-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.db-btn {
    padding: 12px 25px;
    font-size: 1rem;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#save-data {
    background-color: #4CAF50;
}

#save-data:hover {
    background-color: #3e8e41;
}

#load-data {
    background-color: #2196F3;
}

#load-data:hover {
    background-color: #0b7dda;
}

#name-selector {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    margin-top: 20px;
}