/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f6f8;
}

/* HEADER */
.header {
    background: #5e1b1b;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 18px;
}

.header .user {
    font-size: 14px;
}

/* LAYOUT */
.container {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #7d2e2e;
    min-height: 100vh;
    padding-top: 20px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
}

.sidebar a:hover {
    background: #8e3838;
}

/* CONTENT */
.content {
    flex: 1;
    padding: 25px;
}

/* CARD */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-left: 5px solid #7d2e2e;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 14px;
    color: #555;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    margin-top: 5px;
}

/* TABEL RAPAT */
.table-rapat {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.table-rapat th {
    background: #5e1b1b;
    color: white;
    padding: 10px;
    text-align: left;
}

.table-rapat td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table-rapat tr:hover {
    background: #f2f2f2;
}

.table-rapat .aksi a {
    margin-right: 8px;
    padding: 4px 8px;
    background: #db343c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.table-rapat .aksi a:hover {
    background: #911f25;
}

.btn-detail {
    display: inline-block;
    padding: 6px 12px;
    background-color: #db343c;   /* merah senada sistem */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background-color: #b92a31;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/*detail rapat*/
.card {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.table-detail {
    width: 100%;
}

.table-detail td {
    padding: 8px;
}

.table-detail td:first-child {
    font-weight: bold;
    width: 150px;
}

.aksi-rapat a {
    display: inline-block;
    margin-right: 10px;
    padding: 8px 14px;
    background: #ae2727;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.aksi-rapat a:hover {
    background: #841e1e;
}

/* Logo Ngaliyan*/
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 45px;
    height: auto;
}

/*button buat rapat*/
.btn-primary {
    display: inline-block;
    background: #7d2e2e;
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #5e1b1b;
}

/** tombol cetak dan hapus di undangan**?
/* kolom aksi */
td.aksi {
    text-align: center;
    white-space: nowrap;
}

/* supaya form sejajar dengan link */
.form-inline {
    display: inline-block;
    margin: 0;
}

/* base button */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2px;
}

/* tombol cetak */
.btn-cetak {
    background-color: #1976d2;
    color: #fff;
}

.btn-cetak:hover {
    background-color: #125aa0;
}

/* tombol hapus */
.btn-hapus {
    background-color: #d32f2f;
    color: #fff;
}

.btn-hapus:hover {
    background-color: #b71c1c;
}

/**Tombol edit dan cetak Notulensi**/
/* kolom aksi */
td.aksi {
    text-align: center;
    white-space: nowrap;
}

/* base button */
.btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 2px;
}

/* tombol edit */
.btn-edit {
    background-color: #f9a825;
    color: #000;
}

.btn-edit:hover {
    background-color: #f57f17;
    color: #fff;
}

/* tombol cetak */
.btn-cetak {
    background-color: #1976d2;
    color: #fff;
}

.btn-cetak:hover {
    background-color: #125aa0;
}

/**Tombol Edit di Absensi**/
/* kolom aksi */
td.aksi {
    text-align: center;
    white-space: nowrap;
}

/* tombol edit */
.btn-edit {
    background-color: #f9a825;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.btn-edit:hover {
    background-color: #f57f17;
    color: #fff;
}
