
/* --- General Body & Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    color: #333;
}

/* --- Layout & Navigation --- */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    color: #0056b3;
    text-decoration: none;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-item a {
    display: block;
    padding: 20px 15px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item a:hover, .nav-item a.active {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

.nav-item a.logout {
    color: #d9534f;
}
.nav-item a.logout:hover {
    color: #c9302c;
    border-bottom-color: #c9302c;
}


/* --- Main Content & Cards --- */
.main-content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
    margin-bottom: 30px;
}

.card-header {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #0056b3;
    outline: none;
}

.form-check-label {
    margin-left: 8px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #d9534f;
}
.btn-danger:hover {
    background-color: #c9302c;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* --- Tables --- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

.action-links a, .action-links button {
    color: #007bff;
    text-decoration: none;
    margin-right: 15px;
    font-size: 0.9em;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.action-links a:hover {
    text-decoration: underline;
}
.action-links button.delete-btn {
    color: #d9534f;
}

/* --- Flashes/Alerts --- */
.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.flashes li {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid transparent;
}
.flashes .sukses {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.flashes .error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.flashes .info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}


/* --- Login Page Specifics --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f7f6;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
