/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-top {
    width: 100%;
}

.sidebar-bottom {
    width: 100%;
}

.sidebar h2,
.sidebar img {
    text-align: center;
    margin: 0 auto 30px;
    display: block;
    max-width: 80%;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 12px 15px;
    border-bottom: 1px solid #34495e;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.sidebar ul li:hover {
    background-color: #34495e;
}

/* Content Area */
.main-content {
    margin-left: 250px;
    padding: 30px;
    width: 100%;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Form Styling */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #27ae60;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #219150;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Badge Status */
.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.badge-pending {
    background-color: #f39c12;
}

.badge-approved {
    background-color: #27ae60;
}

.badge-rejected {
    background-color: #e74c3c;
}

/* Header Card (Judul + Profile) */
.header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Profile (Sekarang ada di dalam Header Card) */
.profile-nav {
    display: flex;
    align-items: center;
}

.profile-info {
    text-align: right;
}

.profile-info strong {
    display: block;
    color: #2c3e50;
}

.profile-info small {
    color: #7f8c8d;
}

.profile-icon {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    border-radius: 50%;
    margin-left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
}

/* Login Container */
.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 450px;
}