/* ===== GLOBAL ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ===== LOGIN ===== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 340px;
    background: #fff;
    padding: 30px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
}

.login-box h2 {
    color: #c40000;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-box input {
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.login-box input:focus {
    outline: none;
    border-color: #c40000;
    box-shadow: 0 0 0 2px rgba(196,0,0,0,0.15);
}

/* ===== BUTTON ===== */
.btn-red,
.btn-ind,
.btn-small,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: #c40000;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s ease;
}

.btn-small {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-red:hover,
.btn-ind:hover,
.btn-small:hover,
.btn-danger:hover {
    background: #a60000;
    transform: translateY(-1px);
}

/* ===== ALERT ===== */
.alert {
    background: #ffb3b3;
    color: #850000;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== NAVBAR ADMIN ===== */
.nav-admin {
    background: #c40000;
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.nav-admin h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.nav-action {
    display: flex;
    gap: 12px;
}

/* ===== CONTAINER ===== */
.container {
    padding: 25px;
}

/* ===== TITLE ===== */
h3 {
    margin: 35px 0 15px;
    font-size: 20px;
    font-weight: 600;
    color: #c40000;
}

/* ===== TABLE ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.table th {
    background: #c40000;
    color: white;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
}

.table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: middle;
}

.table tr:nth-child(even) td {
    background: #fafafa;
}

.table tr:hover td {
    background: #fdf1f1;
}

/* ===== IMAGE ===== */
.table img {
    max-width: 90px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== FORM EDIT / TAMBAH ===== */
.form-box {
    width: 380px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.form-box h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #c40000;
}

.form-box form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-box label {
    font-weight: 600;
    font-size: 14px;
}

.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
    outline: none;
    border-color: #c40000;
    box-shadow: 0 0 0 2px rgba(196,0,0,0,0.15);
}

.form-box button {
    margin-top: 18px;
}

/* ===== NAVBAR TITLE FIX ===== */
.nav-admin h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}
