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

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

.pd-jadwal-header h2{
    font-size:36px;
    margin-bottom:10px;
}

.pd-jadwal-header p{
    color:#666;
}

.pd-jadwal-form{
    background:#fff;
    border-radius:30px;
    padding:25px;
    box-shadow:0 15px 40px rgba(0,0,0,0.08);
}

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

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

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

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

.pd-mapel-wrap{
    margin-top:20px;
}

.pd-mapel-wrap h3{
    margin-bottom:15px;
}

.pd-table-wrap{
    overflow:auto;
}

.pd-table-wrap table{
    width:100%;
    border-collapse:collapse;
}

.pd-table-wrap th{
    background:#6c63ff;
    color:#fff;
    padding:14px;
}

.pd-table-wrap td{
    border:1px solid #eee;
    padding:10px;
}

.pd-table-wrap td input{
    width:100%;
    border:none;
    outline:none;
}

#pd_tambah_baris{
    margin-top:15px;
    background:#222;
    color:#fff;
    border:none;
    padding:12px 18px;
    border-radius:14px;
    cursor:pointer;
}

.pd-btn-group{
    margin-top:30px;
}

.pd-btn-group button{
    border:none;
    padding:14px 22px;
    border-radius:14px;
    margin-right:10px;
    cursor:pointer;
    font-weight:bold;
}

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

#pd_preview_jadwal{
    margin-top:40px;
}

/* FORM ESTHETIC */

.pd-glass-form{
    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,0.95),
        rgba(255,255,255,0.88)
    );
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,0.4);
}

.pd-form-group input,
.pd-form-group select{
    background:#fff;
    border:none;
    box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.05);
}

.pd-table-wrap{
    background:#fff;
    border-radius:25px;
    padding:15px;
}

.pd-table-wrap table{
    overflow:hidden;
    border-radius:20px;
}

/* =====================================
PREVIEW ESTHETIC FULL
===================================== */

.pd-jadwal-card{
    position:relative;
    overflow:hidden;
    width:1000px;
    min-height:1400px;
    border-radius:45px;
    padding:40px;
    min-height:850px;
    color:#fff;
    box-shadow:
    0 30px 60px rgba(0,0,0,0.18);
}

/* BACKGROUND DECOR */

.pd-jadwal-card::before{
    content:'';
    position:absolute;
    width:420px;
    height:420px;
    border-radius:50%;
    background:rgba(255,255,255,0.12);
    top:-140px;
    right:-120px;
}

.pd-jadwal-card::after{
    content:'';
    position:absolute;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(255,255,255,0.08);
    bottom:-90px;
    left:-90px;
}

/* TEMPLATE */

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

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

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

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

/* TOP */

.pd-card-top{
    position:relative;
    z-index:5;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:45px;
}

.pd-student{
    display:flex;
    align-items:center;
    gap:22px;
}

.pd-student img{
    width:110px;
    height:110px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid rgba(255,255,255,0.35);
    box-shadow:
    0 10px 25px rgba(0,0,0,0.12);
}

.pd-student-info h3{
    margin:0;
    font-size:42px;
    line-height:1;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;
}

.pd-student-info p{
    margin:6px 0;
    font-size:18px;
    font-weight:600;
}

.pd-title{
    font-size:46px;
    font-weight:800;
    text-align:right;
    line-height:1.2;
    max-width:350px;
}

/* GRID */

.pd-jadwal-grid{
    position:relative;
    z-index:5;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

/* DAY CARD */

.pd-day-card{
    position:relative;
    overflow:hidden;
    border-radius:35px;
    padding:20px;
    background:rgba(255,255,255,0.16);
    backdrop-filter:blur(16px);
    box-shadow:
    0 15px 30px rgba(0,0,0,0.08);
    border:1px solid rgba(255,255,255,0.12);
}

/* INNER DECOR */

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

/* DAY TITLE */

.pd-day-title{
    position:relative;
    z-index:3;
    font-size:28px;
    font-weight:800;
    text-align:center;
    padding:14px;
    border-radius:22px;
    margin-bottom:18px;
    background:rgba(255,255,255,0.18);
    backdrop-filter:blur(8px);
}

/* SUBJECT CARD */

.pd-mapel-card{
    position:relative;
    z-index:3;
    background:rgba(255,255,255,0.18);
    border-radius:24px;
    padding:16px;
    margin-bottom:14px;
    backdrop-filter:blur(8px);
    transition:0.3s;
    border:1px solid rgba(255,255,255,0.15);
}

.pd-mapel-card:hover{
    transform:translateY(-3px);
}

.pd-jam{
    font-size:14px;
    font-weight:700;
    margin-bottom:10px;
    opacity:0.95;
}

.pd-mapel-nama{
    font-size:22px;
    font-weight:800;
    line-height:1.3;
    text-transform:uppercase;
}

/* TEXT SHADOW */

.pd-title,
.pd-student-info h3,
.pd-student-info p,
.pd-day-title,
.pd-mapel-nama,
.pd-jam,
.pd-motivasi{
    text-shadow:
    0 3px 10px rgba(0,0,0,0.35);
}

/* GLASS OVERLAY */

.pd-jadwal-card::after{
    content:'';
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.03)
    );
    backdrop-filter:blur(2px);
    pointer-events:none;
}
/* FLOATING STICKERS */

.pd-floating{
    position:absolute;
    font-size:50px;
    opacity:0.18;
    z-index:1;
}

.float-1{
    top:120px;
    right:120px;
}

.float-2{
    bottom:120px;
    right:70px;
}

.float-3{
    bottom:200px;
    left:120px;
}

@media(max-width:768px){

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

    .pd-card-top{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

}

/* GRID HARI */

.pd-jadwal-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-top:25px;
}

.pd-day-card{
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(16px);
    border-radius:24px;
    padding:20px;
    min-height:220px;
    box-shadow:
    0 10px 20px rgba(0,0,0,0.08);
}

.pd-day-title{
    font-size:24px;
    font-weight:700;
    margin-bottom:15px;
    text-align:center;
    background:rgba(255,255,255,0.2);
    padding:10px;
    border-radius:14px;
}

.pd-day-content{
    line-height:2;
    font-size:16px;
}

.pd-day-content br{
    margin-bottom:10px;
}

.pd-table-wrap textarea{
    width:100%;
    min-height:120px;
    border:none;
    resize:vertical;
    outline:none;
    font-family:inherit;
}

.pd-table-wrap select{
    width:100%;
    padding:12px;
    border:none;
    border-radius:12px;
}

@media(max-width:768px){

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

}

/* INPUT MAPEL */

.pd-jadwal-item{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    width:100%;
}

.pd-jam-awal,
.pd-jam-akhir{
    width:120px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
}

.pd-mapel{

    flex:1;

    min-width:220px;

    padding:10px 12px;

    border:1px solid #ddd;

    border-radius:8px;

    box-sizing:border-box;

}

.pd-hapus-mapel{

    width:40px;

    height:40px;

    border:none;

    border-radius:10px;

    background:#ef4444;

    color:#fff;

    cursor:pointer;

    flex-shrink:0;

}

.pd-col-hari{
    width:160px;
    vertical-align:top;
}

.pd-col-hari select{
    width:100%;
}

.pd-tools{
    display:flex;
    justify-content:flex-end;
    margin-bottom:12px;
}

.pd-hapus-hari{

    background:#ef4444;
    color:#fff;

    border:none;

    border-radius:10px;

    padding:8px 14px;

    cursor:pointer;

    font-weight:bold;

}

.pd-jadwal-item{

    display:grid;

    grid-template-columns:
    110px
    30px
    110px
    1fr
    45px;

    gap:10px;

    align-items:center;

    margin-bottom:10px;

}

.pd-mapel{

    width:100%;

    min-width:220px;

}

.pd-hapus-mapel{

    width:40px;
    height:40px;

    border:none;

    border-radius:8px;

    background:#ef4444;

    color:#fff;

    cursor:pointer;

}

.pd-hapus-mapel,
.pd-hapus-hari{

    width:38px;
    height:38px;

    border:none;
    border-radius:10px;

    background:#ef4444;
    color:#fff;

    cursor:pointer;

    font-size:16px;
    font-weight:bold;

    flex-shrink:0;

    display:flex;
    justify-content:center;
    align-items:center;

}

.pd-hapus-mapel:hover,
.pd-hapus-hari:hover{
    background:#dc2626;
}

/* HASIL PREVIEW */

.pd-mapel-card{
    background:rgba(255,255,255,0.15);
    border-radius:18px;
    padding:12px;
    margin-bottom:12px;
    border:1px solid rgba(255,255,255,0.15);
}

.pd-jam{
    font-size:13px;
    font-weight:bold;
    margin-bottom:6px;
    opacity:0.9;
}

.pd-mapel-nama{
    font-size:17px;
    font-weight:700;
}

@media(max-width:768px){

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

}

@media(max-width:768px){

    .pd-jadwal-card{
        padding:25px;
        border-radius:30px;
    }

    .pd-title{
        font-size:32px;
        text-align:center;
    }

    .pd-student{
        flex-direction:column;
        text-align:center;
    }

    .pd-student-info h3{
        font-size:30px;
    }

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

}

/* MOTIVASI */

.pd-motivasi{
    position:relative;
    z-index:5;
    margin-bottom:30px;
    padding:18px 24px;
    border-radius:24px;
    background:rgba(255,255,255,0.16);
    backdrop-filter:blur(10px);
    font-size:20px;
    font-weight:700;
    line-height:1.6;
    text-align:center;
    box-shadow:
    0 10px 20px rgba(0,0,0,0.08);
}

.pd-jadwal-card{
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

@media print{

    body *{
        visibility:hidden;
    }

    #pd_preview_jadwal,
    #pd_preview_jadwal *{
        visibility:visible;
    }

    #pd_preview_jadwal{
        position:absolute;
        left:0;
        top:0;
        width:100%;
    }

}

.pd-hari-box{
    display:flex;
    gap:8px;
    align-items:center;
}

.pd-hari-box select{
    flex:1;
}

.pd-jadwal-item{
    display:flex;
    gap:8px;
    align-items:center;
    margin-bottom:10px;
}

.pd-jadwal-item input[type="text"]{
    flex:1;
}

.pd-hapus-mapel,
.pd-hapus-hari{

    width:38px;
    height:38px;

    border:none;
    border-radius:10px;

    cursor:pointer;

    background:#ef4444;
    color:#fff;

    font-size:16px;
    font-weight:bold;

    flex-shrink:0;

}

.pd-hapus-mapel:hover,
.pd-hapus-hari:hover{
    background:#dc2626;
}