/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.invoice-container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

input, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important */
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #007bff;
}

/* Header */
.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.invoice-header h1 {
    margin: 0;
    color: #333;
}
.store-details input {
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    padding-left: 0;
}
.store-details textarea {
    border: none;
    padding-left: 0;
}


/* Meta Info */
.invoice-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.invoice-meta div {
    width: 48%;
}
.invoice-meta label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Disclaimer */
.disclaimer {
    background-color: #fffbe6;
    border: 1px solid #ffe58f;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Item Table */
.item-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.item-table th, .item-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.item-table th {
    background-color: #f8f8f8;
}
.item-table input {
    border: none;
    background: transparent;
}
.item-table .total-label {
    text-align: right;
    font-weight: bold;
}
.item-table .total-value {
    font-weight: bold;
    font-size: 1.2em;
}
.item-table .delete-row {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Buttons */
.btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
.btn:hover {
    background-color: #0056b3;
}
.print-button-container {
    text-align: center;
    margin-top: 20px;
}
.btn-print {
    background-color: #28a745;
}
.btn-print:hover {
    background-color: #218838;
}

/* Footer & Signature */
.signature-area {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}
.signature-column {
    width: 45%;
    text-align: center;
}
.signature-space {
    height: 80px;
    border-bottom: 1px solid #333;
    margin: 10px 0;
}
.signature-column input {
    border: none;
    text-align: center;
    font-weight: bold;
}

/* Print-specific Styles */
@media print {
    body {
        background-color: #fff;
        padding: 0;
    }
    .invoice-container {
        box-shadow: none;
        border: none;
        max-width: 100%;
    }
    .btn, .print-button-container, .disclaimer, .item-table .delete-row {
        display: none;
    }
    input, textarea {
        border: none !important;
        resize: none;
        box-shadow: none;
    }
    .signature-column input {
        border-bottom: 1px solid transparent !important; /* Keep the space but hide the input look */
    }
}

.disclaimer ul {
    padding-left: 20px; /* Memberi sedikit ruang di kiri untuk bullet points */
    margin-top: 5px;
    margin-bottom: 0;
}

.disclaimer li {
    margin-bottom: 5px; /* Memberi jarak antar poin */
}

/* ========================================= */
/* STYLING UNTUK HEADER DAN FOOTER SITUS    */
/* ========================================= */

.site-header {
    text-align: center;
    margin: 0 auto 30px auto;
    padding: 0 20px;
    max-width: 800px;
}

.site-header h1 {
    margin-bottom: 5px;
    font-size: 1.8em;
    color: #333;
}

.site-header p {
    margin-top: 0;
    color: #666;
    font-style: italic;
}

.site-footer {
    text-align: center;
    margin: 40px auto 20px auto;
    padding: 20px;
    border-top: 1px solid #eee;
    max-width: 800px;
    font-size: 0.9em;
    color: #555;
}

.site-footer .footer-links {
    margin-bottom: 15px;
    line-height: 1.6;
}

.site-footer a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer p {
    margin: 0;
}


/* ========================================= */
/* ATURAN CETAK (PRINT) - SANGAT PENTING   */
/* ========================================= */

@media print {
    /* Sembunyikan semua elemen yang tidak relevan dengan invoice */
    .site-header,
    .site-footer,
    .disclaimer,
    .print-button-container,
    .btn,
    .item-table .delete-row {
        display: none !important;
    }

    /* Pastikan layout invoice optimal saat dicetak */
    body {
        background-color: #fff;
        padding: 0;
        margin: 0;
    }
    .invoice-container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
}

#install-banner {
        display: none; /* Sembunyi secara default */
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #2c3e50; /* Warna gelap agar kontras */
        color: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        z-index: 1000;
        padding: 1rem;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
    }

    #install-banner.show {
        display: block;
        transform: translateY(0);
    }

    .install-banner-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1100px;
        margin: 0 auto;
    }

    .install-banner-text p {
        margin: 0;
        font-size: 0.9rem;
    }

    .install-banner-buttons button {
        border: 1px solid white;
        background-color: transparent;
        color: white;
        padding: 8px 16px;
        border-radius: 5px;
        font-weight: 500;
        cursor: pointer;
        margin-left: 10px;
        white-space: nowrap;
    }

    .install-banner-buttons .install-button {
        background-color: #3498db; /* Warna tombol utama */
        border-color: #3498db;
    }