body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('https://pdln.plus.web.id/simulator-pdln.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: rgba(248, 249, 250, 0.9);
}

.container {
    max-width: 900px;
    margin-top: 30px;
    margin-bottom: 50px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 150px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px;
}

.card {
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
}

.card-header {
    font-weight: 600;
    background-color: rgba(13, 110, 253, 0.1);
}

.form-label {
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 10px 25px;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    padding: 10px 25px;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

/* Table Styles */
.table-dark th {
    color: black !important;
    background-color: #f8f9fa !important;
}

.table-primary {
    background-color: #e7f1ff;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th, 
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr:last-child td {
    border-bottom-width: 2px;
}

#exportPdf {
    transition: all 0.3s ease;
}

#exportPdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Untuk hasil PDF yang optimal */
.card {
    width: 100%;
    max-width: 210mm; /* Lebar A4 */
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 12pt;
}

table {
    width: 100% !important;
    border-collapse: collapse;
    table-layout: fixed;
}

td, th {
    word-break: break-word;
    padding: 8px;
    border: 1px solid #ddd;
}

/* Pastikan konten tidak melebihi lebar */
* {
    max-width: 100%;
    overflow-wrap: break-word;
}

@media print {
    .card {
        padding: 0;
        box-shadow: none;
    }
    
    .no-print {
        display: none !important;
    }
    
    body {
        background-image: none;
        background-color: white;
    }
}