/* ==============================
   DASAR HALAMAN
   ============================== */
body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 20px;
}

h2 {
    text-align: center;
}

/* ==============================
   FORM INPUT
   ============================== */
form {
    display: flex;
    justify-content: center;
}

table.form-table {
    border-collapse: collapse;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

td {
    padding: 8px 10px;
}

td.label {
    text-align: right;
    font-weight: bold;
    background-color: #f2f2f2;
    width: 180px;
}

input[type=text],
input[type=date],
select {
    width: 250px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ==============================
   TABEL DATA
   ============================== */
table {
    border-spacing: 0;
}

th {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
    background-color: #007bff;
    color: white;
}

td {
    border: 1px solid #ccc;
    padding: 8px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* ==============================
   TOMBOL DAN LINK
   ============================== */
a.btn,
button {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    margin: 2px;
}

a.btn:hover,
button:hover {
    background: #0056b3;
}

/* Tombol kembali */
a.btn-kembali {
    text-decoration: none;
    color: white;
    background: #6c757d;
    padding: 8px 15px;
    border-radius: 4px;
    margin-left: 5px;
}

a.btn-kembali:hover {
    background: #5a6268;
}


/* Tombol hijau (misal untuk filter cari) */
button.btn-green,
.filter-form button {
    background-color: #28a745;
}

button.btn-green:hover,
.filter-form button:hover {
    background-color: #218838;
}

/* ==============================
   FILTER FORM
   ============================== */
.filter-form {
    text-align: center;
    margin-bottom: 15px;
}

.filter-form select,
.filter-form input[type=text] {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-form .btn-reset {
    text-decoration: none;
    background: #6c757d;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    margin-left: 5px;
}

.filter-form .btn-reset:hover {
    background: #5a6268;
}

/* ==============================
   LAYOUT TAMBAHAN
   ============================== */
.topbar {
    margin-bottom: 15px;
    text-align: right;
}

/* ==============================
   PAGINATION
   ============================== */
.pagination {
    text-align: center;
    margin-top: 15px;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    background: #e9ecef;
    text-decoration: none;
    border-radius: 4px;
    color: black;
}

/* ==============================
   HALAMAN BERITA & KEGIATAN RW 12
   ============================== */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.top-bar h2 {
    margin: 0;
    color: #333;
}

.btn-tambah {
    background: #28a745;
    color: #fff;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 6px;
}

.btn-tambah:hover {
    background: #218838;
}

/* Kartu Berita */
.berita-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.berita-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px 20px;
    transition: 0.3s;
}

.berita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.berita-card h3 {
    color: #007BFF;
    margin-bottom: 8px;
}

.berita-card small {
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.berita-card p {
    color: #333;
    font-size: 14px;
    margin-bottom: 12px;
}

.baca-link {
    background: #007BFF;
    color: #fff;
    border-radius: 5px;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 13px;
}

.baca-link:hover {
    background: #0056b3;
}

.no-data {
    text-align: center;
    color: red;
    font-weight: bold;
    margin-top: 50px;
}
