/* General Styles */
body {
            font-family: 'Noto Sans', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #EFF2F9;
        }
        @font-face {
    font-family: 'Noto Sans';
    src: url('https://oneclickpvccard.com/ashim/Kishan_bhanu/font/NotoSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 2. LOAD YATRA ONE (For the Hindi Heading) */
@font-face {
    font-family: 'Yatra One';
    src: url('https://oneclickpvccard.com/ashim/Kishan_bhanu/font/YatraOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
        
        #front-preview, #back-preview {
            width: 1016px;
            position: relative;
            background-color: #3caf56; /* New background color */
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        
        .preview-container {
            display: flex;
            gap: 20px;
            margin: 20px 0;
        }
        
        .preview-content {
            position: absolute;
            color: #000;
            text-align: center;
            font-size: 14px;
        }
        
        .container {
            max-width: 1200;
            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 */
            border: 1px solid #000;
            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: #ffffff;
            
        }
        
        .card-content img.photo {
    width: 105px;
    height: 113px;
    border-radius: 0;
    object-fit: cover;
    position: absolute;
    top: 202px;
    right: 188px;
    border: 2px solid #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}
        #logo1-preview {
            width: 60px;
            height: 60px;
            border-radius: 0;
            object-fit: cover;
            position: absolute;
            top: 28px;
            right: 13px;
        }
        
        #logo2-preview {
            width: 60px;
            height: 60px;
            border-radius: 0;
            object-fit: cover;
            position: absolute;
            top: 28px;
            left: 13px;
        }

        #sign-preview {
    width: 60px;
    height: 60px;
    border-radius: 0;
    object-fit: cover;
    position: absolute;
    top: 268px;
    left: 312px;
}
        /* Text Styles for Front Preview */
        #front-preview .card-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        
        
        /* Logos */
        .logo {
            width: 80px;
            height: 80px;
            margin-bottom: 10px;
        }
        
        /* Additional Texts */
        .additional-text {
            text-align: center;
            margin-top: 10px;
            font-size: 0.9rem;
            color: #000;
            font-weight: 500;
        }
        
        /* Specific Texts */
        #front-preview .card-content .text-1 {
            font-size: 1.2rem;
            font-weight: 700;
            color: #000;
        }
        
        #front-preview .card-content .text-2 {
            font-size: 1rem;
            font-weight: 600;
            color: #000;
        }
        
        #front-preview .card-content .text-3 {
            font-size: 0.9rem;
            font-weight: 500;
            color: #000000;
        }
        
        /* QR Code Styles */
        #qrcode {
            position: absolute;
            top: 223px;
            left: 85%;
            transform: translateX(-50%);
            width: 116px;
            height: 120px;
        }
        
        
        /*user input text*/
        #bhanu_id-preview,
        #name-preview,
        #father-name-preview,
        #post-preview,
        #address-preview,
        #aadhar-preview,
        #mobile-preview,
        #date-preview
         {
            font-size: 0.8rem; /* Larger font size for emphasis */
            font-weight: 200; /* Make it bold */
            position: absolute;
            color: #000000; /* Text color */
            font-weight: 600;
        }
        #bhanu_id-preview { top: 97px; left:153px; font-size: 1.8rem; color:#ffffff; border-style: solid;
        border-radius: 10px; border-width: 2px; padding: 5px;}
        #name-preview { top: 186px; left:25px;}
        #father-name-preview { top: 208px; left:25px;} 
        #post-preview { top: 229px; left:25px; }
        #address-preview { top: 251px; left:25px; } 
        #aadhar-preview { top: 273px; left:25px; }
        #mobile-preview { top: 295px; left:25px; }
        #date-preview { top:319px; left:25px; }
        
        /* background text style */
        #union,
        #jinda,
        #radhe,
        #jaban,
        #up,
        #regis,
        #sangathan,
        #mathura,
        #sign-text {
            font-size: 0.8rem; /* Larger font size for emphasis */
            font-weight: 200; /* Make it bold */
            position: absolute;
            color: #ffffff; /* Text color */
            font-weight: 600;
        }
        
        #union{ top: 4px; left: 112px; font-size: 1.8rem; }
        #jinda { top: 1px; left: 15px; color:#eaec64; word-spacing: -1.5px; }
        #radhe { top: 1px; left: 243px; color:#eaec64; }
        #jaban{ top: 1px; left: 415px; color:#eaec64;}
        #up { top: 85px; left: 208px; color:#eaec64; word-spacing: -1.5px; }
        #regis { top: 98px; left: 256px; color:#c90821; }
        #sangathan { top: 57px; left: 238px;color:#eaec64; }
        #mathura { top: 73px; left: 177px;color:#eaec64; }
        #sign-text {
            top: 311px;
            left: 215px;
            white-space: pre-wrap;
            word-wrap: break-word;
            max-width: 161px;
            LINE-HEIGHT: 11PX;
            text-align: center;
            color:#000000;
        }
        
        .white-box {
    background-color: white;
    padding: 76px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 207px;
    margin: 133px;
    margin-right: 255px;
    margin-left: 109px;
    margin-top: 184px;
}
        
        
        /* 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%;
            }
        }
        
        /* 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;
    margin-bottom: 20px;
}

/* Database Buttons */
.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;
}

/* Responsive Design */
@media (max-width: 767px) {
    form {
        grid-template-columns: 1fr;
    }

    .card-preview {
        width: 100%;
    }
}