/* File: css/style.css */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #e9ecef;
    display: flex;
    flex-direction: column; /* Mengubah menjadi kolom untuk footer */
    justify-content: space-between; /* Menempatkan konten di atas dan footer di bawah */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1; /* Mengisi ruang yang tersedia */
    width: 100%;
}

.container {
    background-color: #ffffff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px; /* Tambahkan margin atas untuk sedikit ruang */
}

.logo-container {
    margin-bottom: 25px;
}

.logo-container img {
    max-width: 150px; /* Sesuaikan ukuran logo */
    height: auto;
    display: block; /* Menghilangkan spasi bawah pada gambar */
    margin: 0 auto; /* Tengah gambar */
}

h1 {
    color: #004085;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 600;
}

p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 15px;
}

form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #343a40;
    font-size: 1.1em;
}

input[type="text"] {
    width: calc(100% - 40px);
    padding: 12px 18px;
    margin-bottom: 25px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1.05em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.tagihan-info {
    text-align: left;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

.tagihan-info p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #343a40;
}

.tagihan-info strong {
    color: #212529;
}

.amount {
    font-weight: bold;
    color: #28a745;
    font-size: 1.15em;
}

.status-belum-lunas {
    color: #dc3545;
    font-weight: bold;
    background-color: #f8d7da;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block; /* Agar padding diterapkan dengan baik */
}

.status-lunas {
    color: #28a745;
    font-weight: bold;
    background-color: #d4edda;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.error {
    color: #dc3545;
    font-weight: bold;
    margin-top: 25px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px;
}

.back-link {
    display: inline-block;
    margin-top: 35px;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.footer {
    margin-top: 40px; /* Jarak dari konten utama */
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9em;
    width: 100%;
    border-top: 1px solid #e0e0e0;
}

/* Media Queries untuk responsif */
@media (max-width: 600px) {
    .container {
        padding: 25px;
        margin: 15px; /* Sesuaikan margin */
    }

    h1 {
        font-size: 1.8em;
    }

    input[type="text"], button[type="submit"] {
        width: 100%;
    }

    .footer {
        padding: 15px;
        font-size: 0.85em;
    }
}