:root {
    --jt-red: #ff0000;
    --jt-dark: #222;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f4f4; margin: 0; }
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background: var(--jt-red); }

/* Login Card */
.login-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); text-align: center; width: 300px; }
.input-group input { width: 90%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; }
.login-card button { width: 100%; padding: 10px; background: var(--jt-red); color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* Dashboard Styles */
nav { background: white; padding: 15px 50px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.container { padding: 30px; max-width: 900px; margin: auto; }
.form-container { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.row { display: flex; gap: 20px; }
.col { flex: 1; display: flex; flex-direction: column; }
input, textarea { padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; }
textarea { height: 80px; resize: none; }
.gen-btn { background: var(--jt-red); color: white; border: none; padding: 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.logout-btn { background: #555; color: white; border: none; padding: 5px 15px; border-radius: 4px; cursor: pointer; }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); }
.modal-content { background: white; margin: 5% auto; padding: 20px; border-radius: 8px; width: 500px; position: relative; }
.alert-content { width: 300px; text-align: center; margin-top: 20%; }
.close { position: absolute; right: 20px; font-size: 28px; cursor: pointer; }

/* Waybill Print Style */
.jnt-waybill { border: 2px solid #000; padding: 10px; color: black; background: #fff; width: 100%; box-sizing: border-box; }
.wb-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #000; padding-bottom: 5px; }
.wb-title { font-size: 20px; font-weight: bold; }
.wb-barcode-sec { text-align: center; padding: 10px 0; border-bottom: 1px solid #000; }
.wb-info { display: flex; border-bottom: 1px solid #000; font-size: 12px; }
.wb-half { flex: 1; padding: 10px; border-right: 1px solid #000; }
.wb-half:last-child { border-right: none; }
.wb-details { display: flex; justify-content: space-around; padding: 10px; font-size: 14px; }
.det-box { border: 1px solid #000; padding: 5px 15px; font-weight: bold; }
.modal-actions { margin-top: 20px; text-align: center; }
.print-btn { background: #28a745; color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; }

@media print {
    body * { visibility: hidden; }
    .waybill-print-area, .waybill-print-area * { visibility: visible; }
    .waybill-print-area { position: absolute; left: 0; top: 0; width: 100%; }
    .modal-actions, .close { display: none; }
}