.sidebar {
    position: fixed;
    top: 50px;  /* persis setelah navbar */
    left: 0;
    width: 220px;
    height: calc(100vh - 50px);
    background: #2c3e50;
    color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;     /* pastikan tidak ada margin */
    padding: 0;    /* pastikan tidak ada padding */
}

.sidebar-header {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    background: #1a252f;
    border-bottom: 1px solid #444;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar-menu li a:hover {
    background: #34495e;
    color: #fff;
}

.sidebar-menu li.active a {
    background: #16a085;
    color: #fff;
}

.main-container {
    margin-left: 220px; 
    margin-top: 60px;
    padding: 40px;
    background: #f5f5f5;
    min-height: calc(100vh - 50px);
}

.container {
    margin-top: 60px;
}

body {
    margin: 0;
    padding: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px; 
    z-index: 1050;
}

.footer {
    background: #2c3e50;
    color: #fff;
    padding: 15px 0;
    font-size: 13px;
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #fff;
}

.logo-header {
    height: 35px;         /* tinggi logo */
    width: auto;          /* biar proporsional */
    margin-right: 8px;    /* jarak dengan teks */
    border-radius: 4px;   /* opsional, biar sudut agak halus */
}

.brand-text {
    font-size: 16px;
    color: #fff;          /* pastikan sesuai warna navbar */
    white-space: nowrap;  /* biar teks nggak kepotong */
}

/* ===== STYLE CRUD HUNIAN ===== */
.table-hunian {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table-hunian th, 
.table-hunian td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.table-hunian th {
    background-color: #4CAF50;
    color: white;
}

.table-hunian tr:nth-child(even) {
    background-color: #f2f2f2;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
}

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-add {
    background-color: #28a745;
    color: white;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.info-box {
    display: flex;
    align-items: center;
    background: #fff;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-box-icon {
    font-size: 26px;
    margin-right: 12px;
}

.info-box-number {
    font-size: 20px;
    font-weight: bold;
}

.content-wrapper {
    margin-left: 240px;  
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

.content-wrapper h2 {
    margin-bottom: 20px;
    font-weight: bold;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}


/* Responsif */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-container {
        margin-left: 200px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .main-container {
        margin-left: 0;
    }

}

.berita-item{

    border:1px solid #ddd;
    border-radius:8px;

    padding:20px;

    margin-bottom:20px;

    background:#fff;

    transition:.3s;

}

.berita-item:hover{

    box-shadow:0 3px 12px rgba(0,0,0,.15);

}



.berita-title{

    margin-top:0;

    font-weight:bold;

}

.berita-text{

    text-align:justify;

    margin-top:15px;

    line-height:1.8;

}

.berita-button{

    margin-top:20px;

}

.berita-button .btn{

    margin-right:8px;

    margin-bottom:8px;

}

@media (max-width:768px){

    .berita-item{

        padding:15px;

    }

    .berita-img{

        height:auto;

        margin-bottom:15px;

    }

    .berita-title{

        font-size:22px;

        text-align:center;

    }

    .berita-button .btn{

        width:100%;

    }

}
