.pd-label-wrap{
    max-width:1200px;
    margin:auto;
    padding:20px;
    font-family:Arial,sans-serif;
}

.pd-label-header{
    text-align:center;
    margin-bottom:30px;
}

.pd-label-header h2{
    font-size:34px;
    margin-bottom:10px;
    color:#222;
}

.pd-label-header p{
    color:#777;
}

.pd-label-form{
    background:#fff;
    padding:25px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    margin-bottom:30px;
}

.pd-form-group{
    margin-bottom:20px;
}

.pd-form-group label{
    display:block;
    font-weight:bold;
    margin-bottom:8px;
}

.pd-form-group input,
.pd-form-group textarea,
.pd-form-group select{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #ddd;
    font-size:15px;
    box-sizing:border-box;
}

.pd-form-group textarea{
    min-height:140px;
    resize:vertical;
}

.pd-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

#pd_generate_label,
.pd-print-btn{
    border:none;
    padding:14px 22px;
    border-radius:14px;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
    margin-right:10px;
}

#pd_generate_label{
    background:#6c63ff;
    color:#fff;
}

.pd-print-btn{
    background:#222;
    color:#fff;
}

.pd-label-preview{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:20px;

}

#pd_export_area{

    width:1123px;
    min-height:1587px;

    margin:auto;

    background:#fff;

    padding:25px;

    box-sizing:border-box;

}

.pd-book-label{

    position:relative;

    aspect-ratio:2.25/1;

    width:100%;

    padding:18px;

    border-radius:22px;

    overflow:hidden;

    color:#fff;

    box-sizing:border-box;

    display:flex;

    flex-direction:column;

}

.pd-book-label::before{
    content:'';
    position:absolute;
    top:-40px;
    right:-40px;
    width:120px;
    height:120px;
    border-radius:50%;
    background:rgba(255,255,255,0.15);
}

.pd-book-label::after{
    content:'';
    position:absolute;
    bottom:-30px;
    left:-30px;
    width:90px;
    height:90px;
    border-radius:50%;
    background:rgba(255,255,255,0.12);
}

.pd-label-title{
    font-size:22px;
    font-weight:bold;
    margin-bottom:15px;
    position:relative;
    z-index:2;
}

.pd-label-item{
    margin-bottom:8px;
    position:relative;
    z-index:2;
}

.pd-pink{
    background:linear-gradient(135deg,#ff9ecf,#ff6fa5);
}

.pd-blue{
    background:linear-gradient(135deg,#4facfe,#00c6fb);
}

.pd-green{
    background:linear-gradient(135deg,#43e97b,#38f9d7);
}

.pd-purple{
    background:linear-gradient(135deg,#a18cd1,#fbc2eb);
}

/* TEMPLATE KIDS */

.pd-template-kids{
    background:
    linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)),
    linear-gradient(135deg,#ff9a9e,#fad0c4);
}

.pd-template-kids::before{
    background:url('https://cdn-icons-png.flaticon.com/512/3468/3468377.png');
    background-size:cover;
    opacity:0.15;
}

/* TEMPLATE ANIME */

.pd-template-anime{
    background:
    linear-gradient(rgba(0,0,0,0.2),rgba(0,0,0,0.2)),
    linear-gradient(135deg,#a18cd1,#fbc2eb);
}

.pd-template-anime::before{
    background:url('https://cdn-icons-png.flaticon.com/512/742/742751.png');
    background-size:cover;
    opacity:0.15;
}

/* TEMPLATE CARTOON */

.pd-template-cartoon{
    background:
    linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)),
    linear-gradient(135deg,#f6d365,#fda085);
}

.pd-template-cartoon::before{
    background:url('https://cdn-icons-png.flaticon.com/512/4140/4140048.png');
    background-size:cover;
    opacity:0.15;
}

/* TEMPLATE UNICORN */

.pd-template-unicorn{
    background:
    linear-gradient(rgba(0,0,0,0.15),rgba(0,0,0,0.15)),
    linear-gradient(135deg,#ffecd2,#fcb69f);
}

.pd-template-unicorn::before{
    background:url('https://cdn-icons-png.flaticon.com/512/616/616554.png');
    background-size:cover;
    opacity:0.15;
}

/* TEMPLATE SPACE */

.pd-template-space{
    background:
    linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.3)),
    linear-gradient(135deg,#667eea,#764ba2);
}

.pd-template-space::before{
    background:url('https://cdn-icons-png.flaticon.com/512/3212/3212608.png');
    background-size:cover;
    opacity:0.15;
}

/* =========================
ESTETIC LABEL STYLE
========================= */

.pd-book-label{

    position:relative;

    overflow:hidden;

    border-radius:32px;

    padding:18px 20px;

    min-height:260px;

    color:#fff;

    box-shadow:0 20px 40px rgba(0,0,0,.18);

    transition:.3s;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

}

.pd-book-label:hover{

    transform:translateY(-5px);

}

/* =========================
HEADER
========================= */

.pd-label-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    position:relative;

    z-index:3;

    margin-bottom:8px;

}

.pd-badge{

    background:rgba(255,255,255,.25);

    backdrop-filter:blur(10px);

    padding:7px 16px;

    border-radius:999px;

    font-size:13px;

    font-weight:bold;

    letter-spacing:.5px;

}

.pd-stars{

    font-size:14px;

    opacity:.9;

}

/* =========================
TENGAH
========================= */

.pd-label-center{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    position:relative;

    z-index:3;

    padding:4px 0;

}

.pd-avatar{

    width:58px;

    height:58px;

    border-radius:50%;

    background:rgba(255,255,255,.2);

    backdrop-filter:blur(10px);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:28px;

    border:3px solid rgba(255,255,255,.3);

    margin-bottom:10px;

}

.pd-label-name{

    font-size:18px;

    font-weight:800;

    line-height:1.25;

    text-align:center;

    text-shadow:0 3px 10px rgba(0,0,0,.25);

    max-width:100%;

    word-break:break-word;

    margin:0;

}

/* =========================
INFO
========================= */

.pd-label-info{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

    position:relative;

    z-index:3;

    margin-top:12px;

    margin-bottom:10px;

}

.pd-info-box{

    background:rgba(255,255,255,.20);

    backdrop-filter:blur(8px);

    border-radius:16px;

    padding:10px 8px;

    text-align:center;

}

.pd-info-box span{

    display:block;

    font-size:12px;

    opacity:.9;

    margin-bottom:4px;

}

.pd-info-box strong{

    display:block;

    font-size:16px;

    font-weight:700;

    line-height:1.2;

    word-break:break-word;

}

/* =========================
SEKOLAH
========================= */

.pd-school-name{

    position:relative;

    z-index:3;

    text-align:center;

    font-size:15px;

    font-weight:700;

    line-height:1.3;

    margin:0;

    padding-top:2px;

    padding-bottom:4px;

    word-break:break-word;

}

/* DECORATIONS */

.pd-decor{
    position:absolute;
    border-radius:50%;
    z-index:1;
}

.decor-1{
    width:180px;
    height:180px;
    background:rgba(255,255,255,0.12);
    top:-60px;
    right:-60px;
}

.decor-2{
    width:120px;
    height:120px;
    background:rgba(255,255,255,0.08);
    bottom:-40px;
    left:-40px;
}

.decor-3{
    width:70px;
    height:70px;
    background:rgba(255,255,255,0.1);
    top:50%;
    left:80%;
}

/* TEMPLATE MODERN */

.pd-template-kids{
    background:
    linear-gradient(135deg,#ff758c,#ff7eb3);
}

.pd-template-anime{
    background:
    linear-gradient(135deg,#a18cd1,#fbc2eb);
}

.pd-template-cartoon{
    background:
    linear-gradient(135deg,#f6d365,#fda085);
}

.pd-template-unicorn{
    background:
    linear-gradient(135deg,#ff9a9e,#fecfef);
}

.pd-template-space{
    background:
    linear-gradient(135deg,#667eea,#764ba2);
}

@media(max-width:768px){

    .pd-form-grid{
        grid-template-columns:1fr;
    }

    .pd-label-preview{
        grid-template-columns:1fr;
    }

}

@media print{

    body *{
        visibility:hidden;
    }

    .pd-label-preview,
    .pd-label-preview *{
        visibility:visible;
    }

    .pd-label-preview{
        position:absolute;
        left:0;
        top:0;
        width:100%;
        grid-template-columns:repeat(3,1fr);
        gap:10px;
        padding:10px;
    }

    .pd-book-label{
        min-height:150px;
        box-shadow:none;
    }

}