/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:linear-gradient(135deg,#0f172a,#1e3a8a,#dc2626);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.container{
    width:100%;
    max-width:700px;
}

.card{
    background:#ffffff;
    border-radius:18px;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    overflow:hidden;
}

.header{
    background:linear-gradient(90deg,#dc2626,#2563eb);
    color:#fff;
    padding:35px;
    text-align:center;
}

.header h1{
    font-size:32px;
    font-weight:700;
    margin-bottom:8px;
}

.header p{
    opacity:.95;
    font-size:15px;
}

form{
    padding:30px;
}

input{
    width:100%;
    padding:15px;
    border:2px solid #dcdcdc;
    border-radius:10px;
    font-size:16px;
    transition:.3s;
}

input:focus{
    border-color:#2563eb;
    outline:none;
    box-shadow:0 0 8px rgba(37,99,235,.25);
}

button{
    width:100%;
    margin-top:18px;
    padding:15px;
    border:none;
    border-radius:10px;
    background:linear-gradient(90deg,#2563eb,#dc2626);
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

button:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.25);
}

.result{
    margin:0 30px 30px;
    border:1px solid #e5e5e5;
    border-radius:12px;
    overflow:hidden;
}

.result-title{
    background:#10b981;
    color:#fff;
    text-align:center;
    padding:15px;
    font-size:22px;
    font-weight:600;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    width:38%;
    background:#f7f7f7;
    text-align:left;
    padding:15px;
    border-bottom:1px solid #e5e5e5;
}

table td{
    padding:15px;
    border-bottom:1px solid #e5e5e5;
    word-break:break-word;
}

.batch1{
    background:#16a34a;
    color:#fff;
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.batch2{
    background:#ea580c;
    color:#fff;
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.print-btn{
    width:calc(100% - 40px);
    margin:20px;
    background:#0f172a;
}

.print-btn:hover{
    background:#1e293b;
}

.error{
    margin:30px;
    background:#fff5f5;
    border-left:5px solid #dc2626;
    padding:20px;
    border-radius:10px;
    text-align:center;
}

.error h3{
    color:#dc2626;
    margin-bottom:8px;
}

.footer{
    margin-top:20px;
    text-align:center;
    color:#fff;
    font-size:14px;
    line-height:1.8;
}

.footer strong{
    color:#ffd54f;
}

/* ==========================
   Mobile Responsive
========================== */

@media (max-width:768px){

body{
    padding:15px;
    align-items:flex-start;
}

.container{
    max-width:100%;
}

.card{
    border-radius:12px;
}

.header{
    padding:25px 20px;
}

.header h1{
    font-size:24px;
}

.header p{
    font-size:14px;
}

form{
    padding:20px;
}

input{
    padding:14px;
    font-size:16px;
}

button{
    font-size:15px;
    padding:14px;
}

.result{
    margin:20px;
    overflow-x:auto;
}

.result-title{
    font-size:20px;
    padding:14px;
}

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    width:40%;
    padding:12px;
    font-size:14px;
}

table td{
    padding:12px;
    font-size:14px;
    word-break:break-word;
}

.print-btn{
    width:calc(100% - 30px);
    margin:15px;
}

.footer{
    font-size:13px;
    padding:10px;
}

}

/* ==========================
   Print
========================== */

@media print{

body{
    background:#fff;
    padding:0;
}

.header{
    color:#000;
    background:#fff;
    border-bottom:2px solid #000;
}

form,
.footer,
.print-btn{
    display:none;
}

.card{
    box-shadow:none;
}

.result{
    margin:0;
    border:none;
}

.result-title{
    background:#fff;
    color:#000;
    border-bottom:2px solid #000;
}

}