* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: 
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
        url("../img/minecraft_bg.jfif") no-repeat center center fixed;
    background-size: cover;
    color: #f1f5f9;
}

/* NAVBAR */
nav {
    background: rgba(17, 24, 39, 0.95);
    padding: 15px 25px;
}

nav a {
    color: #e5e7eb;
    margin-right: 20px;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: #38bdf8;
}

/* CONTAINER */
.container {
    width: 85%;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 10px;
    color: #111827;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* TITLE */
h1, h2 {
    margin-top: 0;
    color: #0f172a;
}

/* BUTTON */
.btn, button {
    padding: 10px 18px;
    border: none;
    background: #16a34a;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn:hover, button:hover {
    background: #15803d;
}

/* FORM */
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
    font-size: 14px;
    background: #f8fafc;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.4);
    background: #ffffff;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th {
    background: #111827;
    color: white;
}

table th, table td {
    padding: 10px;
    border: 1px solid #e5e7eb;
    text-align: center;
}

table tr:nth-child(even) {
    background: #f1f5f9;
}

/* ACTION LINK */
.action a {
    margin-right: 10px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.action a:hover {
    text-decoration: underline;
}

/* LOGIN CARD */
.login-box {
    width: 350px;
    margin: 120px auto;
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 10px;
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

/* FORM WRAPPER */
.form-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* TABLE FIX (ANTI TEMBUS) */
table {
    background: #ffffff;
}

table td {
    background: #ffffff;
    color: #111827;
}

table th {
    background: #0f172a;
    color: #ffffff;
}

/* ACTION BUTTONS */
.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    margin-right: 6px;
    display: inline-block;
}

.btn-edit {
    background: #16a34a; /* hijau */
}

.btn-edit:hover {
    background: #15803d;
}

.btn-delete {
    background: #dc2626; /* merah */
}

.btn-delete:hover {
    background: #991b1b;
}

/* ALERT */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}