:root {
    --primary: #2563eb;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;   /* Tambahkan padding agar di HP tidak nempel pinggir kaca */
}

header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 0;      /* Memastikan header nempel ke atas */
    padding-top: 10px;  /* Jarak tipis saja agar tidak terlalu mepet kaca */
}
header h1 {
    margin-top: 0;      /* INI KUNCINYA: Menghapus gap bawaan di atas judul */
    margin-bottom: 5px; /* Jarak antara judul dan sub-judul */
    font-size: 2rem;
    color: var(--text-dark);
}
h2 { margin-bottom: 20px; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }

/* Section Card */
.section-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Tabel Cantik */
.table-container { overflow-x: auto; }
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.styled-table thead tr {
    background-color: var(--primary);
    color: #ffffff;
    text-align: left;
}
.styled-table th, .styled-table td { padding: 12px 15px; border-bottom: 1px solid #e2e8f0; }
.styled-table tbody tr:nth-of-type(even) { background-color: #f8fafc; }

/* Spesifikasi Sensor Grid */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.inner-spec {
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.mini-table { width: 100%; font-size: 0.9rem; }
.mini-table td { padding: 5px 0; border-bottom: 1px dotted #cbd5e1; }

/* Gallery 4 Card */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.caption { padding: 10px; text-align: center; font-weight: 600; font-size: 0.9rem; }

/* Tombol Kembali */
.nav-buttons { text-align: center; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #475569;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}
.btn-back:hover { background: #1e293b; }

/* Tombol GitHub */
.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #24292e; /* Warna Hitam Khas GitHub */
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-github:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mengatur posisi kedua tombol agar sejajar */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

/* Responsif: Di HP tombol jadi susun ke bawah */
@media (max-width: 480px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn-back, .btn-github {
        width: 100%; /* Tombol melebar penuh di HP */
        justify-content: center;
    }
}
