/* ===== Reset & Font ===== */
* { box-sizing: border-box; margin:0; padding:0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

/* ===== Body umum ===== */
body {
    background: #f4f6f9;
    padding: 20px;
    color: #0f172a;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: auto;
}

/* ===== Headings ===== */
h1, h2 {
    margin-bottom: 10px;
}

/* ===== Logout Button ===== */
.logout {
    float: right;
    padding: 8px 15px;
    background: #ff5252;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

/* ===== Card ===== */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* ===== Input / Textarea ===== */
input, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

textarea {
    height: 80px;
}

/* ===== Button submit ===== */
.btn-submit {
    background: #007bff;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    border: none;
    cursor: pointer;
}

/* ===== Produk grid ===== */
.produk-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
}

.produk-item {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.produk-item img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ===== Actions ===== */
.actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.edit {
    background: #28a745;
    padding: 8px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

.hapus {
    background: #e63946;
    padding: 8px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    flex: 1;
    text-align: center;
}

/* ===== Halaman Login ===== */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0a47a3, #4a90e2);
}

.login-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #0a47a3;
}

.alert {
    background: #f87171;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.form-login label {
    font-size: 14px;
    margin-bottom: 4px;
    color: #0f172a;
}

.form-login input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    width: 100%;
}

.btn-primary {
    padding: 12px;
    background: #0a47a3;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #073b8f;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    .produk-list {
        grid-template-columns: 1fr;
    }
}
