/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f8; color: #333; line-height: 1.6; }

/* Header */
header { background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%); color: white; text-align: center; padding: 3rem 1rem; }
header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; letter-spacing: 1px; }
header p { font-style: italic; opacity: 0.9; margin-bottom: 1.5rem; }
.btn-admin { display: inline-block; padding: 10px 20px; background: #FFD700; color: #8B0000; text-decoration: none; border-radius: 6px; font-weight: bold; transition: 0.3s; }
.btn-admin:hover { background: #e6c200; }

/* Layout */
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.btn-kecil { padding: 8px 15px; background: #2c3e50; color: white; text-decoration: none; border-radius: 4px; font-size: 0.9rem; }
.btn-kecil.sekunder { background: #7f8c8d; }
.btn-kecil.bahaya { background: #c0392b; }

/* Forms */
form { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; margin-top: 1rem; font-weight: 600; color: #2c3e50; font-size: 0.95rem; }
input, select, textarea { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; }
.highlight-box { background: #fff8e1; padding: 15px; border-radius: 6px; border: 1px solid #ffecb3; margin-top: 15px; }
.highlight-box small { color: #856404; display: block; margin-top: 5px; font-size: 0.85rem; }
button[type="submit"] { margin-top: 1.5rem; padding: 14px; background: #8B0000; color: white; border: none; border-radius: 6px; cursor: pointer; width: 100%; font-size: 1.1rem; font-weight: bold; transition: 0.3s; }
button[type="submit"]:hover { background: #6d0000; }
.alert { padding: 12px; border-radius: 6px; text-align: center; margin-bottom: 15px; font-weight: 500; }
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Login Page */
.bg-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #8B0000; }
.login-box { background: white; padding: 2.5rem; border-radius: 10px; width: 100%; max-width: 400px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.login-box h2 { text-align: center; color: #8B0000; margin-bottom: 1.5rem; }

/* Cards Grid */
.grid-silsilah { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card-anggota { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform 0.2s; border-top: 5px solid #8B0000; }
.card-anggota:hover { transform: translateY(-5px); }
.foto-container { height: 220px; background: #ecf0f1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.foto-container img { width: 100%; height: 100%; object-fit: cover; }
.no-foto { width: 80px; height: 80px; background: #8B0000; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #FFD700; font-weight: bold; }
.info-anggota { padding: 1.2rem; }
.gelar { color: #8B0000; font-weight: bold; margin: 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.info-anggota h3 { margin: 5px 0 10px 0; color: #2c3e50; font-size: 1.3rem; }
.suku-badge { background: #8B0000; color: #FFD700; padding: 4px 10px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; display: inline-block; margin-bottom: 10px; }
.detail { color: #7f8c8d; font-size: 0.9rem; margin-bottom: 10px; }
.garis-ibu { background: #fdf2e9; border-left: 4px solid #d35400; padding: 10px; margin-top: 10px; font-size: 0.9rem; border-radius: 0 4px 4px 0; }
.bio { font-size: 0.9rem; color: #555; margin-top: 12px; line-height: 1.5; font-style: italic; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin-top: 15px; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.data-table th, .data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
.data-table th { background: #2c3e50; color: white; font-weight: 600; }
.btn-hapus { color: #c0392b; text-decoration: none; font-weight: bold; font-size: 0.9rem; }
.btn-hapus:hover { text-decoration: underline; }

/* Footer */
footer { text-align: center; padding: 2rem; color: #7f8c8d; font-size: 0.9rem; margin-top: 3rem; border-top: 1px solid #ddd; }