:root {
    --green: #5c940d;
    --orange: #ff922b;
    --blue: #0c8599;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: var(--light);
}

/* ===== LAYOUT ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

.sidebar h2 {
    padding: 20px;
    margin: 0;
    background: var(--green);
    text-align: center;
}

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

.sidebar ul li a {
    display: block;
    padding: 14px 20px;
    color: #cbd5e1;
    text-decoration: none;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: var(--blue);
    color: var(--white);
}

/* ===== MAIN ===== */
.main {
    margin-left: 240px;
    width: calc(100% - 240px);
}

/* ===== TOPBAR ===== */
.topbar {
    height: 60px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
}

.topbar .user {
    font-weight: bold;
}

/* ===== CONTENT ===== */
.content {
    padding: 25px;
}

/* ===== CARD ===== */
.card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat {
    padding: 20px;
    border-radius: 10px;
    color: white;
}

.stat.green { background: var(--green); }
.stat.orange { background: var(--orange); }
.stat.blue { background: var(--blue); }

.stat h3 {
    margin: 0;
    font-size: 28px;
}

.stat p {
    margin: 5px 0 0;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 15px;
    color: #777;
}

/* =========================
   IMAGE ALIGN (WordPress-like)
========================= */

.detail-content img.alignleft {
    float: left;
    margin: 5px 20px 15px 0;
    max-width: 45%;
    height: auto;
}

.detail-content img.alignright {
    float: right;
    margin: 5px 0 15px 20px;
    max-width: 45%;
    height: auto;
}

.detail-content img.aligncenter {
    display: block;
    margin: 20px auto;
    max-width: 80%;
}

/* Clear float setelah paragraf */
.detail-content::after {
    content: "";
    display: block;
    clear: both;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .detail-content img.alignleft,
    .detail-content img.alignright {
        float: none;
        display: block;
        margin: 15px auto;
        max-width: 100%;
    }
}

