/* ===== VARIABLES ===== */
:root{
    --primary:#036534;
    --primary-dark:#024d28;
}

/* ===== GLOBAL ===== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}
body{
    background:#f4f8f6;
    color:#222;
}

/* Hidden input class */
.hidden-input {
    display: none;
}

/* ===== LOGO BANNER ===== */
.logo-banner {
    background: #fff;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo-banner img{
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* ===== HERO SECTION ===== */
.hero{
    background: linear-gradient(135deg,var(--primary-dark),var(--primary));
    color:#fff;
    text-align:center;
    padding:120px 20px 80px;
    position: relative;
}
.hero h1{
    font-size:42px;
    margin-bottom:20px;
}
.hero p{
    font-size:18px;
    opacity:0.9;
}

/* ===== QR CARD FLOATING ===== */
.qr-section{
    display:flex;
    justify-content:center;
    margin-top:-80px;
    padding:0 20px 60px;
    position: relative;
    z-index:2;
}
.card{
    background:#fff;
    width:100%;
    max-width:420px;
    padding:35px;
    border-radius:20px;
    box-shadow:0 25px 60px rgba(0,0,0,0.2);
    text-align:center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
    opacity:0;
    transform: translateY(20px);
}
.card.show{
    opacity:1;
    transform: translateY(0);
}
.card:hover{
    transform: translateY(-8px);
    box-shadow:0 35px 70px rgba(0,0,0,0.25);
}

/* ===== INPUTS ===== */
input{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #ddd;
    margin-bottom:15px;
    transition:0.3s;
}
input:focus{
    border-color:var(--primary);
    outline:none;
    box-shadow:0 0 0 3px rgba(3,101,52,0.15);
}

/* ===== FILE INPUT ===== */
input[type="file"] {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    margin-bottom: 15px;
    transition: 0.3s;
}
input[type="file"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(3,101,52,0.15);
}
input[type="file"]::-webkit-file-upload-button {
    visibility: visible;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
    transition: 0.3s;
}
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary-dark);
}

/* ===== COLOR PICKER ===== */
.color-row {
    display:flex;
    justify-content: space-between;
    align-items:center;
    margin-bottom:15px;
}
.color-row label{
    font-size:14px;
    font-weight:500;
}
.color-row input[type="color"]{
    appearance: none;
    -webkit-appearance:none;
    border:none;
    width:50px;
    height:32px;
    border-radius:8px;
    cursor:pointer;
    padding:0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.color-row input[type="color"]:hover,
.color-row input[type="color"]:focus{
    transform:scale(1.1);
    box-shadow:0 0 6px rgba(3,101,52,0.6);
    outline:none;
}
.color-row input[type="color"]::-webkit-color-swatch-wrapper{padding:0;border-radius:8px;}
.color-row input[type="color"]::-webkit-color-swatch{border-radius:8px;}

/* ===== BUTTONS WITH RIPPLE ===== */
button{
    position:relative;
    overflow:hidden;
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:#fff;
    font-weight:600;
    cursor:pointer;
    margin-top:10px;
    transition:0.3s;
}
button:hover{background:var(--primary-dark);}
button span{
    position:absolute;
    background:rgba(255,255,255,0.5);
    transform:scale(0);
    border-radius:50%;
    animation:ripple 600ms linear;
}
@keyframes ripple{to{transform:scale(4);opacity:0;}}

/* ===== LOGO OPTION ===== */
.logo-option {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.logo-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
    transition: 0.3s;
}
.logo-option input[type="checkbox"]:hover {
    border-color: var(--primary-dark);
}
.logo-option input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.logo-option input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
.logo-option label {
    cursor: pointer;
    font-weight: 500;
}

/* ===== BATCH BUTTON THEME ===== */
#generateBatchBtn {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
#generateBatchBtn:hover {
    background: var(--primary-dark);
}

/* ===== QR DISPLAY ===== */
/* ===== QR LOGO ===== */
#qr-wrapper {
    margin-top:25px;
    position:relative;
    width:220px;
    height:220px;
    margin-left:auto;
    margin-right:auto;
    opacity:0;
    transform:scale(0.8);
    transition: all 0.5s ease;
}
#qr-wrapper.show {
    opacity:1;
    transform:scale(1);
}

/* Logo scales with QR wrapper */
#logo {
    position:absolute;
    top:50%;
    left:50%;
    width:27%;        /* percentage of QR wrapper width */
    height:27%;       /* maintain square */
    max-width:60px;   /* optional max size */
    max-height:60px;
    transform:translate(-50%,-50%);
    border-radius:14px;
    background:#fff;
    padding:6px;
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

/* ===== FEATURES SECTION ===== */
.features{
    padding:80px 20px;
    text-align:center;
}
.features h2{
    margin-bottom:40px;
    color:var(--primary);
}
.feature-grid{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}
.feature{
    width:250px;
}
.feature h3{
    margin-bottom:10px;
    color:var(--primary);
}

/* ===== FOOTER ===== */
footer{
    text-align:center;
    padding:30px;
    background:#eaf3ef;
    font-size:14px;
}

/* ===== RESPONSIVE ===== */
@media(max-width:480px){
    .hero h1{font-size:32px;}
    .hero p{font-size:16px;}
    .card{padding:25px;}
    #qr-wrapper{width:180px;height:180px;}
    #logo{width:50px;height:50px;}
    .qr-section{margin-top:-40px;}
}
/* Batch QR Section */
.batch-section {
    margin-top: 30px;
    text-align: left;
}

.batch-section h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.batch-results {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.batch-results .batch-card {
    position: relative;
    width: 150px;
    height: 150px;
}
