:root {
    --primary-color: #28a745;
    --secondary-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.hero {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.hero h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.hero p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Card */
.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    text-align: center;
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    margin-top: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.input-group button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.input-group button:hover {
    background-color: #218838;
}

/* Tabel Hasil */
.result-card table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.result-card table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.result-card table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.result-card table tr:last-child td {
    border-bottom: none;
}

/* Error */
.error {
    text-align: center;
    padding: 40px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 10px;
    margin: 20px 0;
}

.error h3 {
    margin-bottom: 10px;
}

/* Action Buttons */
.action-buttons {
    text-align: center;
    margin: 30px 0;
}

.btn-print, .btn-back {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-print {
    background-color: var(--primary-color);
    color: white;
}

.btn-back {
    background-color: #6c757d;
    color: white;
}

.btn-print:hover {
    background-color: #218838;
}

.btn-back:hover {
    background-color: #5a6268;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* Media Print */
@media print {
    body * {
        visibility: hidden;
    }
    #cetak, #cetak * {
        visibility: visible;
    }
    #cetak {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
        box-shadow: none;
    }
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}