/* GENERAL */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #1e272e;
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 1000;
}

.sidebar.closed {
    left: -240px;
}

.sidebar h2 {
    text-align: center;
    padding: 20px;
    margin: 0;
    font-size: 22px;
    background-color: #2f3640;
    border-bottom: 1px solid #3e4b5b;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.sidebar ul li {
    margin: 0;
}

.sidebar ul li a {
    display: block;
    padding: 14px 20px;
    color: #dcdde1;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s, color 0.3s;
}

.sidebar ul li a i {
    margin-right: 10px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #00a8ff;
    color: white;
}

/* HEADER */
.header {
    height: 60px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: margin-left 0.3s ease;
    margin-left: 240px;
    z-index: 999;
    position: relative;
}

.header.expanded {
    margin-left: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* TOGGLE BUTTON */
.sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.judul-aplikasi {
    margin: 0;
    font-size: 20px;
}

/* CONTENT */
.content {
    margin-left: 240px;
    padding: 30px;
    background: #fff;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.content.expanded {
    margin-left: 0;
}

/* Jika sidebar ditutup, header & content ikut bergeser */
.sidebar.closed ~ .header {
    margin-left: 0;
}

.sidebar.closed ~ .content {
    margin-left: 0;
}

/* FRONTLINER */
.frontliner-container {
    margin-top: 0;
}

.judul-halaman {
    margin: 0;
    padding-bottom: 10px;
    font-size: 24px;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
}

/* DATATABLES */
.datatable-custom {
    margin-top: 10px !important;
}

#tabelRisiko thead {
    background-color: #e74c3c;
    color: white;
}

#tabelRisiko thead th {
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

/* CARD */
.table-header h1,
.judul-halaman {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: 1px solid #ccc;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
}

.btn-info {
    background-color: #17a2b8;
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-info:hover {
    background-color: #138496;
}

.table thead th {
    text-align: center;
}
