/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family: Arial, Helvetica, sans-serif;
background:#f3f5f9;
}

/* ===== HEADER THANH XANH ===== */

.topbar{
background:#2b76c2;
padding:10px 30px;
color:white;
}

.logo-area{
display:flex;
align-items:center;
gap:12px;
}

.logo{
height:40px;
}

.title{
font-size:18px;
font-weight:bold;
}

/* ===== TIÊU ĐỀ TRANG ===== */

.page-title{
background:white;
text-align:center;
padding:25px 10px;
margin-bottom:20px;
}

.page-title h1{
font-size:32px;
color:#222;
margin-bottom:8px;
}

.page-title p{
font-size:16px;
color:#555;
}

/* ===== LAYOUT CHÍNH ===== */

.container{
display:flex;
gap:30px;
padding:30px;
}

/* ===== KHUNG BÊN TRÁI ===== */

.left{
width:30%;
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.left h3{
margin-bottom:15px;
}

/* ===== KHUNG NHẬP LIỆU ===== */

.search-box{
display:flex;
gap:10px;
margin-bottom:20px;
}

.search-box input{
flex:1;
padding:10px;
font-size:16px;
border:1px solid #ccc;
border-radius:5px;
height:45px;
}

.search-box button{
padding:10px 20px;
background:#2b76c2;
color:white;
border:none;
border-radius:5px;
cursor:pointer;
font-size:14px;
height:45px;
}

.search-box button:hover{
background:#1f5fa0;
}

/* ===== TEXT KẾT QUẢ ===== */

.left p{
margin-top:10px;
font-size:16px;
}

/* ===== KHUNG BÊN PHẢI ===== */

.right{
width:70%;
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.right h3{
margin-bottom:15px;
}

/* ===== PDF VIEWER ===== */

iframe{
width:100%;
height:800px;
border:none;
border-radius:6px;
overflow:auto;
}

/* ===== RESPONSIVE ===== */

@media (max-width:900px){

.container{
flex-direction:column;
}

.left{
width:100%;
}

.right{
width:100%;
}

}

.kp-image{
width:100%;
margin-top:15px;
border-radius:8px;
border:1px solid #ddd;
}

.message{
margin-top:12px;
margin-bottom:20px;
padding:10px;
border-radius:6px;
font-size:14px;
display:none;
width:fit-content;
margin-left:auto;
margin-right:auto; 
}

.message.error{
background:#ffe5e5;
color:#b30000;
border:1px solid #ffb3b3;
}

.message.success{
background:#e6f7ff;
color:#005580;
border:1px solid #b3e0ff;
}

.footer{
margin-top:40px;
padding:20px;
text-align:center;
background:#2b76c2;
color:white;
font-size:14px;
line-height:1.6;
}

@media (max-width:600px){

.search-box{
flex-direction:column;
}

.search-box button{
width:100%;
}

iframe{
height:450px;
}

}

@media (max-width:600px){

.page-title h1{
font-size:22px;
}

.search-box{
flex-direction:row;
}

.search-box input{
font-size:18px;
}

.search-box button{
font-size:15px;
padding:10px;
}

.left{
padding:20px;
}

iframe{
height:420px;
}

}

@media (max-width:600px){

iframe{
height:100vh;
}

}

#mobilePDF{
text-align:center;
margin-top:20px;
}

#mobilePDF a{
display:inline-block;
padding:12px 18px;
background:#2b76c2;
color:white;
text-decoration:none;
border-radius:6px;
font-size:16px;
}

#mobilePDF a:hover{
background:#1f5fa0;
}