/* ================================
   STYLE UMUM WEBSITE THALASSEMIA
   ================================ */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}

/* ================================
   HEADER
   ================================ */
.header {
    background: #b80000;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 28px;
    font-weight: bold;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    text-align: center;
    background: #ffffff;
    padding: 15px;
    border-bottom: 2px solid #ccc;
}

.navbar a {
    margin: 0 15px;
    text-decoration: none;
    color: #b80000;
    font-size: 16px;
    font-weight: bold;
}

.navbar a:hover {
    color: #ff0000;
}

/* ================================
   LAYOUT CONTAINER HALAMAN UTAMA
   ================================ */
.container {
    display: flex;
    padding: 30px;
}

.container img {
    width: 350px;
    border-radius: 10px;
    margin-right: 30px;
}

/* ================================
   TOMBOL
   ================================ */
.tombol-daftar,
.tombol-kembali {
    display: inline-block;
    background: #b80000;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
}

.tombol-daftar:hover,
.tombol-kembali:hover {
    background: #ff0000;
}

/* ================================
   FORM
   ================================ */
form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 480px;
    margin: auto;
    box-shadow: 0px 0px 10px #ddd;
}

label {
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
}

textarea {
    height: 80px;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 12px;
    margin-top: 40px;
    font-size: 14px;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* HEADER */
.header {
    background: #d32f2f;
    color: #fff;
    padding: 18px;
    text-align: center;
}

/* CONTENT */
.content {
    width: 90%;
    max-width: 900px;
    background: #fff;
    margin: 30px auto;
    padding: 25px;
    border-radius: 8px;
}

/* TABLE */
.tabel {
    width: 100%;
    border-collapse: collapse;
}

.tabel th {
    background: #d32f2f;
    color: white;
    padding: 10px;
}

.tabel td {
    padding: 8px;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
}

/* BUTTON */
.btn-edit {
    padding: 5px 10px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn-hapus {
    padding: 5px 10px;
    background: #c62828;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.btn-edit:hover,
.btn-hapus:hover {
    opacity: .8;
}

.tombol-daftar {
    background: #d32f2f;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.tombol-daftar:hover {
    opacity: .8;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 15px;
    background: #d32f2f;
    color: white;
    margin-top: 40px;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center; /* Tengah horizontal */
    align-items: center;      /* Tengah vertical jika tinggi cukup */
    flex-direction: column;
}

/* ================================
   LOGIN PAGE
================================ */
.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f4f8;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* =============== LOGIN BOX =============== */
.login-box {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 22px;
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

/* =============== FORM GROUP =============== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 11px;
    margin-top: 5px;
    border: 1.6px solid #cfcfcf;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #8ab4f8;
    outline: none;
}

/* =============== BUTTON =============== */
button {
    width: 100%;
    padding: 12px;
    background: #b80000;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: .3px;
    transition: 0.2s ease;
}

button:hover {
    background: #8d0000;
}

/* =============== ERROR MESSAGE =============== */
.error-msg {
    background: #ffe5e5;
    color: #b80000;
    padding: 10px;
    border-left: 4px solid #b80000;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* =============== BACK LINK =============== */
.back {
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
    color: #b80000;
    font-weight: 600;
    font-size: 14px;
}

.back:hover {
    text-decoration: underline;
}
