<style>
/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.3s, color 0.3s;
}

/* Header */
.header {
    background: #ff6600;
    color: #fff;
    padding: 30px 20px 10px;
    text-align: center;
}

.header h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Layout Container */
.container {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Sidebar Menu */
.menu {
    list-style: none;
    width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.menu li {
    margin-bottom: 15px;
}

.menu li a {
    text-decoration: none;
    font-weight: 600;
    color: #ff6600;
    padding: 10px;
    border-radius: 6px;
    display: block;
    transition: background 0.3s ease;
}

.menu li a:hover {
    background-color: #ffe1cc;
}

/* Main content area */
.main {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 500px;
}

.container {
    display: flex;
    flex-direction: row; /* pastikan ini tetap ada */
    align-items: flex-start;
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Footer */
.copy {
    padding: 20px;
    background: #ff6600;
    font-size: 0.875em;
    color: #fff;
    text-align: center;
    border-radius: 0 0 8px 8px;
    margin-top: 20px;
}

/* Content styles */
h2.title {
    border-bottom: 2px solid #ccc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    color: #333;
    font-size: 1.5em;
}

/* Form styling */
form {
    margin: 20px 0;
}

form input[type="text"],
form select {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fdfdfd;
    transition: border 0.3s;
}

form input[type="text"]:focus,
form select:focus {
    border-color: #ff6600;
    outline: none;
}

form input[type="submit"],
form button {
    background-color: #ff6600;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

form input[type="submit"]:hover,
form button:hover {
    background-color: #e95d00;
}

/* Table styling */
table.data {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table.data th,
table.data td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
}

table.data th {
    background-color: #f1f1f1;
    font-weight: 600;
}

table.data tr:nth-child(even) {
    background-color: #fafafa;
}

table.data img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .menu {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .menu li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .menu {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
    }

    .menu li {
        margin-bottom: 0;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .header {
        background: #ff6600;
        color: #fff;
    }

    .main {
        background-color: #1e1e1e;
        box-shadow: none;
    }

    .menu {
        background: #222;
        box-shadow: none;
    }

    .menu li a {
        color: #ffb366;
    }

    .menu li a:hover {
        background-color: #333;
    }

    .copy {
        background: #ff6600;
        color: #fff;
    }

    h2.title {
        border-bottom: 2px solid #444;
        color: #ffb366;
    }

    form input[type="text"],
    form select {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border: 1px solid #444;
    }

    form input[type="text"]:focus,
    form select:focus {
        border-color: #ffb366;
    }

    table.data th,
    table.data td {
        border-color: #444;
    }

    table.data th {
        background-color: #2a2a2a;
    }

    table.data tr:nth-child(even) {
        background-color: #1a1a1a;
    }
}
</style>