/* --- GLOBAL STYLES --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6; /* Latar belakang abu-abu muda */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Bayangan lembut */
    border-radius: 12px;
}

h1 {
    color: #007bff; /* Biru cerah untuk header utama */
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

h2, h3 {
    color: #495057;
    margin-top: 20px;
}

hr {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 25px 0;
}

/* --- FORM STYLES (Login, Register, Kasir) --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="month"],
select {
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: #007bff;
    outline: none;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: bold;
    text-transform: uppercase;
}

button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* Tombol WhatsApp (di Kasir) */
a button[style*="background-color: green"] {
    background-color: #25d366 !important;
    font-size: 16px;
    margin-top: 15px;
}
a button[style*="background-color: green"]:hover {
    background-color: #128c7e !important;
}


/* --- NAVIGATION / MENU --- */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

ul li a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.1em;
    padding: 8px 15px;
    display: inline-block;
    border-radius: 4px;
    transition: background-color 0.2s;
}

ul li a:hover {
    background-color: #e9ecef;
}

/* --- KASIR & REKAPITULASI TABLE --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
}

th {
    background-color: #007bff;
    color: white;
    font-weight: 600;
}

/* Style Khusus Rekapitulasi */
.lunas {
    background-color: #d4edda; /* Hijau muda */
}
.belum-lunas {
    background-color: #f8d7da; /* Merah muda */
}

/* Style untuk pesan sukses/error */
.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

p[style*="color:red;"], p[style*="color: blue;"] {
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}
p[style*="color:red;"] {
    background-color: #f8d7da;
    color: #721c24 !important;
}
p[style*="color: blue;"] {
    background-color: #cfe2ff;
    color: #052c65 !important;
}

/* Style tombol aksi di tabel (Hapus) */
#transaksi-table button[type="button"] {
    background-color: #dc3545;
    padding: 5px 10px;
    font-size: 0.9em;
}
#transaksi-table button[type="button"]:hover {
    background-color: #c82333;
}

/* Filter Bulan */
form input[type="month"] {
    width: auto;
    display: inline-block;
    margin-right: 10px;
}