@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f6f9;
}

.login-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
}

.login-card h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
    text-align: center;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}

/* Styling Sidebar */
.sidebar {
    width: 250px;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
}

.sidebar .brand {
    padding: 0 20px 20px 20px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #334155;
    color: #38bdf8;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
    flex-grow: 1;
}

.sidebar-menu li a, 
.sidebar-menu li button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover, 
.sidebar-menu li button:hover {
    background-color: #334155;
    color: #ffffff;
}

.sidebar-menu li a.active {
    background-color: #0284c7;
    color: #ffffff;
    font-weight: bold;
}

/* Styling Khusus Tombol Logout */
.logout-item {
    border-top: 1px solid #334155;
    padding-top: 10px;
}

.logout-btn {
    color: #f87171 !important;
}

.logout-btn:hover {
    background-color: #991b1b !important;
    color: #ffffff !important;
}

/* Area Konten Utama */
.main-content {
    margin-left: 250px; /* Lebar seimbang dengan sidebar */
    padding: 30px;
    flex-grow: 1;
}

.main-content h1 {
    color: #1e293b;
    margin-bottom: 10px;
}

.main-content p {
    color: #64748b;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
}

/* Header Atas dengan Hamburger Button */
.top-header {
    background-color: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: #38bdf8;
}

/* Styling Sidebar dengan Animasi Slide */
.sidebar {
    width: 250px;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    position: fixed;
    top: 60px; /* Di bawah top header */
    bottom: 0;
    left: -250px; /* Sembunyikan sidebar di luar layar kiri */
    transition: left 0.3s ease-in-out; /* Animasi bergeser */
    z-index: 999;
}

/* Class aktif saat hamburger diklik */
.sidebar.active {
    left: 0; /* Geser masuk ke dalam layar */
}

.sidebar .brand {
    padding: 0 20px 20px 20px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #334155;
    color: #38bdf8;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
    flex-grow: 1;
}

.sidebar-menu li a, 
.sidebar-menu li button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover, 
.sidebar-menu li button:hover {
    background-color: #334155;
    color: #ffffff;
}

.sidebar-menu li a.active {
    background-color: #0284c7;
    color: #ffffff;
    font-weight: bold;
}

/* Styling Khusus Tombol Logout */
.logout-item {
    border-top: 1px solid #334155;
    padding-top: 10px;
}

.logout-btn {
    color: #f87171 !important;
}

.logout-btn:hover {
    background-color: #991b1b !important;
    color: #ffffff !important;
}

/* Area Konten Utama */
.main-content {
    margin-top: 60px; /* Diberi jarak agar tidak tertutup header */
    padding: 30px;
    flex-grow: 1;
    transition: margin-left 0.3s ease-in-out;
}

.main-content h1 {
    color: #1e293b;
    margin-bottom: 10px;
}

.main-content p {
    color: #64748b;
}

/* Overlay Transparan (Opsional: untuk menutup menu saat area luar diklik) */
.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.overlay.active {
    display: block;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f6f9;
}

/* Header Atas */
.top-header {
    background-color: #1e293b;
    color: white;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
}

.hamburger-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: #38bdf8;
}

/* Animated Sidebar */
.sidebar {
    width: 250px;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    position: fixed;
    top: 60px;
    bottom: 0;
    left: -250px;
    transition: left 0.3s ease-in-out;
    z-index: 999;
}

.sidebar.active {
    left: 0;
}

.sidebar-menu {
    list-style: none;
    margin-top: 20px;
    flex-grow: 1;
}

.sidebar-menu li a, 
.sidebar-menu li button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-menu li a:hover, 
.sidebar-menu li button:hover {
    background-color: #334155;
    color: #ffffff;
}

.sidebar-menu li a.active {
    background-color: #0284c7;
    color: #ffffff;
    font-weight: bold;
}

.logout-item {
    border-top: 1px solid #334155;
    padding-top: 10px;
}

.logout-btn {
    color: #f87171 !important;
}

.logout-btn:hover {
    background-color: #991b1b !important;
    color: #ffffff !important;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* --- KONTEN UTAMA DIBUAT DENGAN TEPAT DI TENGAH LAYAR --- */
.main-content {
    margin-top: 60px; /* Menyesuaikan tinggi top-header */
    width: 100%; /* Memastikan lebar memenuhi konteks layar */
    min-height: calc(100vh - 60px); /* Memenuhi tinggi layar minus header */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Mengetengahkan secara vertikal */
    align-items: center;     /* Mengetengahkan secara horizontal */
    text-align: center;
    padding: 20px;
}

.welcome-box {
    max-width: 600px; /* Batas lebar konten agar rapi */
    width: 100%;
}

.main-content h1 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 32px;
}

.main-content p {
    color: #64748b;
    font-size: 16px;
}