/* ==========================================================================
   1. BASE & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

/* ==========================================================================
   2. REUSABLE BUTTONS & COMPONENTS
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-login,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #16a34a;
    color: white;
}

.btn-primary:hover {
    background: #15803d;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-login {
    background: #16a34a;
    color: white;
    padding: 10px 22px;
}

.btn-login:hover {
    background: #15803d;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   3. NAVBAR & HERO SECTION
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 6%;
    background: #0f172a;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.brand h1 {
    font-size: 22px;
}

.brand span {
    font-size: 13px;
    color: #cbd5e1;
}

.hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 60px 6%;
    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 25, 0.90) 0%,
            rgba(5, 15, 25, 0.72) 42%,
            rgba(5, 15, 25, 0.25) 75%,
            rgba(5, 15, 25, 0.10) 100%
        ),
        url("../images/kompi/hero_807.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: #16a34a;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h2 strong {
    color: #4ade80;
}

.hero p {
    font-size: 17px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 60px 6%;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
    font-size: 35px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 25px;
    background: #0f172a;
    color: white;
}

footer span {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 13px;
}

/* ==========================================================================
   4. LOGIN PAGE
   ========================================================================== */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background:
        linear-gradient(
            rgba(15, 23, 42, 0.55),
            rgba(15, 23, 42, 0.55)
        ),
        url("../images/kompi/mayon.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
}

.login-card h1 {
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 5px;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 30px;
}

.login-button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    background: #16a34a;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background: #15803d;
}

.back-home {
    display: inline-block;
    margin-top: 22px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

/* ==========================================================================
   5. APP LAYOUT, SIDEBAR & TOPBAR
   ========================================================================== */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    border-bottom: 1px solid #1e293b;
}

.sidebar-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sidebar-brand strong {
    display: block;
    font-size: 22px;
}

.sidebar-brand span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 14px;
    margin-bottom: 5px;
    border-radius: 8px;
    font-size: 14px;
}

.menu-item:hover,
.menu-item.active {
    background: #16a34a;
    color: white;
}

.menu-title {
    font-size: 10px;
    color: #64748b;
    font-weight: bold;
    margin: 25px 14px 10px;
}

.sidebar-bottom {
    padding: 15px 12px;
    border-top: 1px solid #1e293b;
}

.logout-button {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fca5a5;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 8px;
}

.logout-button:hover {
    background: #7f1d1d;
    color: white;
}

.main-content {
    width: calc(100% - 260px);
    margin-left: 260px;
    background: #f1f5f9;
    min-height: 100vh;
}

.topbar {
    min-height: 85px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-label {
    color: #16a34a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.topbar h1 {
    font-size: 25px;
    color: #0f172a;
    margin-top: 4px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #16a34a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.user-profile strong,
.user-profile span {
    display: block;
}

.user-profile strong {
    color: #0f172a;
    font-size: 13px;
}

.user-profile span {
    color: #64748b;
    font-size: 11px;
    margin-top: 3px;
}

.app-footer {
    padding: 25px 35px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 11px;
}

/* ==========================================================================
   6. DASHBOARD & WELCOME CARD
   ========================================================================== */
.welcome-card {
    margin: 30px 35px;
    padding: 30px;
    background: linear-gradient(135deg, #14532d, #166534);
    border-radius: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.welcome-label {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #bbf7d0;
}

.welcome-card h2 {
    font-size: 30px;
    margin: 8px 0;
}

.welcome-card p {
    color: #dcfce7;
}

.welcome-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    opacity: 0.9;
}

.statistics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 35px 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #dcfce7;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 23px;
}

.stat-card span,
.stat-card strong,
.stat-card small {
    display: block;
}

.stat-card span {
    color: #64748b;
    font-size: 10px;
    font-weight: bold;
}

.stat-card strong {
    color: #0f172a;
    font-size: 25px;
    margin: 3px 0;
}

.stat-card small {
    color: #94a3b8;
    font-size: 10px;
}

.content-section {
    margin: 0 35px 30px;
}

.section-heading span {
    color: #16a34a;
    font-size: 10px;
    font-weight: bold;
}

.section-heading h2 {
    color: #0f172a;
    margin-top: 5px;
    font-size: 22px;
}

.quick-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 18px;
}

.quick-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
}

.quick-icon {
    width: 45px;
    height: 45px;
    background: #f0fdf4;
    border-radius: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.quick-card strong {
    color: #0f172a;
}

.quick-card p {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.arrow {
    margin-left: auto;
    color: #16a34a;
    font-size: 20px;
}

.admin-notice {
    margin: 0 35px 30px;
    background: white;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-notice-icon {
    font-size: 25px;
}

.admin-notice strong {
    color: #0f172a;
}

.admin-notice p {
    color: #64748b;
    font-size: 12px;
    margin-top: 4px;
}

.admin-notice a {
    margin-left: auto;
    color: #16a34a;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

/* ==========================================================================
   7. FORM COMPONENTS & FORM PAGES
   ========================================================================== */
.form-page {
    min-height: 100vh;
    padding: 40px 20px;
    background: #f1f5f9;
}

.form-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.form-header img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.form-header span {
    color: #16a34a;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.form-header h1 {
    color: #0f172a;
    font-size: 27px;
    margin: 5px 0;
}

.form-header p {
    color: #64748b;
    font-size: 14px;
}

.form-section {
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
}

.form-section h2 {
    color: #0f172a;
    font-size: 18px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #334155;
    font-size: 13px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 10px;
}

.form-group small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 25px;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ==========================================================================
   8. PERSONEL DATA & FILTERING
   ========================================================================== */
.personel-page {
    min-height: 100vh;
    background: #f1f5f9;
}

.personel-header {
    background: white;
    min-height: 85px;
    padding: 15px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.personel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.personel-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.personel-brand span {
    color: #16a34a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.personel-brand h1 {
    color: #0f172a;
    font-size: 24px;
    margin: 3px 0;
}

.personel-brand p {
    color: #64748b;
    font-size: 11px;
}

.personel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.personel-content {
    padding: 35px;
}

.personel-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 26px 28px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 50%, #c8e6c9 100%);
    border: 1px solid #b8d8bd;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(25, 90, 45, 0.08);
}

.personel-title span {
    color: #2e7d32;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1px;
}

.personel-title h2 {
    margin: 6px 0 0;
    color: #174d25;
    font-size: 30px;
    line-height: 1.15;
}

.personel-count {
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.personel-count strong {
    color: #16a34a;
    font-size: 18px;
    margin-left: 5px;
}

.personel-filter {
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.personel-filter label {
    display: block;
    color: #475569;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 6px;
}

.personel-filter input,
.personel-filter select {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: white;
    color: #334155;
    font-size: 12px;
    outline: none;
}

.personel-filter input:focus,
.personel-filter select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 7px;
}

.filter-buttons .btn-primary,
.filter-buttons .btn-secondary {
    height: 40px;
    white-space: nowrap;
}

.personel-name-link {
    color: #174d25;
    text-decoration: none;
    font-weight: bold;
}

.personel-name-link:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* ==========================================================================
   9. TABLES (GENERAL, PERSONEL, ADMIN)
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

#personelTable {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

#personelTable thead {
    background: #0f172a;
}

#personelTable th {
    color: white;
    padding: 14px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

#personelTable td {
    padding: 13px 12px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    vertical-align: middle;
}

#personelTable tbody tr:hover {
    background: #f8fafc;
}

.personel-photo {
    width: 48px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.personel-photo-placeholder {
    width: 48px;
    height: 58px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.education-info span {
    display: block;
    margin: 3px 0;
    color: #64748b;
    font-size: 11px;
}

.empty-data {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* ADMIN TABLE */
.admin-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.admin-table thead th {
    padding: 16px 18px;
    background: #ffffff;
    color: #172033;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 18px;
    background: #ffffff;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table tbody tr:hover td {
    background: #f8fafc;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
    width: 55px;
    text-align: center;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
    width: 150px;
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 280px;
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
    width: 130px;
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
    width: 190px;
}

.admin-table th:nth-child(6),
.admin-table td:nth-child(6) {
    width: 320px;
}

.admin-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-edit {
    background: #e2e8f0;
    color: #33554a;
}

.btn-edit:hover {
    background: #cbd5e1;
}

.btn-pass {
    background: #16a34a;
    color: #ffffff;
}

.btn-pass:hover {
    background: #15803d;
}

.btn-del {
    background: #dc2626;
    color: #ffffff;
}

.btn-del:hover {
    background: #b91c1c;
}

/* KOMPI TABLE */
.kompi-filter-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 10px;
}

.kompi-filter-table thead th {
    padding: 14px 16px;
    background: #e8f5e9;
    color: #205c2d;
    border-top: 1px solid #cfe3d2;
    border-bottom: 1px solid #cfe3d2;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.kompi-filter-table thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.kompi-filter-table thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.kompi-filter-table tbody tr {
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(25, 90, 45, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kompi-filter-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(25, 90, 45, 0.10);
}

.kompi-filter-table tbody td {
    padding: 15px 16px;
    border-top: 1px solid #edf2ee;
    border-bottom: 1px solid #edf2ee;
    color: #344139;
    font-size: 13px;
    vertical-align: middle;
}

.kompi-filter-table tbody td:first-child {
    border-left: 1px solid #edf2ee;
    border-radius: 10px 0 0 10px;
}

.kompi-filter-table tbody td:last-child {
    border-right: 1px solid #edf2ee;
    border-radius: 0 10px 10px 0;
}

.kompi-filter-table .personel-photo {
    width: 46px;
    height: 56px;
    border: 2px solid #d8e9da;
}

.kompi-filter-table .personel-photo-placeholder {
    width: 46px;
    height: 56px;
    background: #edf6ef;
    color: #3f7d4d;
}



/* ==========================================================================
   10. DETAIL PERSONEL PAGE
   ========================================================================== */
.detail-page {
    min-height: 100vh;
    background: #f1f5f9;
}

.detail-header {
    background: white;
    min-height: 80px;
    padding: 15px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
}

.detail-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-brand img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.detail-brand span,
.profile-label,
.detail-section-title span {
    display: block;
    color: #16a34a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.detail-brand strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    margin-top: 3px;
}

.detail-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 35px 20px 50px;
}

.profile-card {
    background: linear-gradient(135deg, #14532d, #166534);
    color: white;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.profile-photo img,
.profile-placeholder {
    width: 130px;
    height: 155px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(255,255,255,0.8);
}

.profile-placeholder {
    background: rgba(255,255,255,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 45px;
}

.profile-main h1 {
    font-size: 30px;
    margin: 8px 0;
}

.profile-main p {
    color: #dcfce7;
    font-size: 15px;
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.profile-badges span {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 11px;
}

.detail-section {
    background: white;
    margin-top: 20px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.detail-section-title {
    margin-bottom: 20px;
}

.detail-section-title h2 {
    color: #0f172a;
    font-size: 20px;
    margin-top: 5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.detail-item {
    background: white;
    padding: 17px;
}

.detail-item span {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-bottom: 6px;
}

.detail-item strong {
    color: #0f172a;
    font-size: 14px;
}

.assignment-box {
    background: #f8fafc;
    border-left: 4px solid #16a34a;
    border-radius: 7px;
    padding: 18px;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
    min-height: 50px;
}

.detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.id-personel-box {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 115px;
    min-height: 62px;
    padding: 9px 18px;
    margin-bottom: 14px;
    background: #f1f8f3;
    border: 1px solid #c9e2cf;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(30, 90, 45, 0.06);
    text-align: center;
}

.id-personel-label {
    display: block;
    margin-bottom: 3px;
    color: #19823b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.id-personel-number {
    display: block;
    color: #123b1d;
    font-size: 20px;
    font-weight: 800;
}

.assignment-preview {
    display: inline-block;
    padding: 8px 12px;
    background: #e8f5e9;
    border: 1px solid #c5e1c9;
    border-radius: 10px;
    color: #216b2f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 320px;
}

.no-assignment {
    color: #999;
    font-size: 13px;
}

/* ==========================================================================
   11. PANGKAT & JABATAN (PJ) SECTION
   ========================================================================== */
.pj-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
    width: 100%;
}

.pj-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #cfe3d2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(25, 90, 45, 0.10);
    transition: all 0.25s ease;
}

.pj-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(20, 70, 35, 0.13);
}

.pj-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #cfe3d2;
    background: linear-gradient(135deg, #f1f8f2 0%, #dff0e2 100%);
}

.pj-card-header > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pj-card-header > div::before {
    content: "★";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(145deg, #155d2b, #2f7d3f);
    color: #f3d45c;
    font-size: 19px;
    box-shadow: 0 5px 12px rgba(21, 93, 43, 0.22);
}

.pj-card:nth-child(2) .pj-card-header > div::before {
    content: "▣";
    color: #ffffff;
}

.pj-card-header span {
    display: block;
    margin-bottom: 3px;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.pj-card-header h3 {
    margin: 0;
    color: #174d25;
    font-size: 23px;
    font-weight: 750;
}

.pj-card-header > strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border-radius: 18px;
    background: #d7ecd9;
    color: #1b6b2a;
    font-size: 14px;
    font-weight: 700;
}

.pj-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 22px;
}

.pj-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid #dceadd;
    border-radius: 13px;
    transition: all 0.2s ease;
}

.pj-item:hover {
    background: #f1f8f2;
    border-color: #a9cdae;
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(25, 90, 45, 0.10);
}

.pj-item > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.pj-item > div::before {
    content: "◆";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dff0e2;
    color: #237b35;
    font-size: 13px;
}

.pj-card:nth-child(2) .pj-item > div::before {
    content: "●";
}

.pj-item strong {
    display: block;
    margin: 0;
    color: #173c20;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.pj-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pj-link:hover {
    color: #27723b;
}

.pj-item span {
    display: block;
    margin-top: 3px;
    color: #6c7d70;
    font-size: 12px;
}

.pj-item > b {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 50%;
    background: #dff0e2;
    color: #237b35;
    font-size: 13px;
    font-weight: 750;
}

.pj-item::after {
    content: "›";
    margin-left: 8px;
    color: #2e7d32;
    font-size: 24px;
    font-weight: 400;
}

/* ==========================================================================
   12. EDUCATION (PENDIDIKAN) SECTION
   ========================================================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.education-card {
    background: #ffffff;
    border: 1px solid #cfe3d2;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(25, 90, 45, 0.10);
    transition: all 0.25s ease;
}

.education-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(25, 90, 45, 0.14);
}

.education-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 26px;
    background: linear-gradient(135deg, #f1f8f2, #dff0e2);
    border-bottom: 1px solid #cfe3d2;
}

.education-card-header > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.education-card-header > div::before {
    content: "🎖️";
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #155d2b;
    font-size: 19px;
    box-shadow: 0 5px 12px rgba(21, 93, 43, 0.22);
}

.education-card.umum .education-card-header > div::before {
    content: "🎓";
}

.education-card-header span {
    display: block;
    color: #357a46;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.education-card-header h3 {
    margin: 4px 0 0;
    color: #174d25;
    font-size: 22px;
}

.education-card-header > strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 34px;
    padding: 0 12px;
    border-radius: 18px;
    background: #d7ecd9;
    color: #1b6b2a;
    font-size: 14px;
}

.education-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 22px;
}

.education-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid #edf1ee;
    border-radius: 13px;
    transition: all 0.2s ease;
}

.education-item:hover {
    background: #f1f8f2;
    border-color: #a9cdae;
    transform: translateX(3px);
    box-shadow: 0 6px 16px rgba(25, 90, 45, 0.09);
}

.education-item > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.education-item > div::before {
    content: "◆";
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dff0e2;
    color: #27723b;
    font-size: 13px;
}

.education-card.umum .education-item > div::before {
    content: "●";
}

.education-item strong {
    display: block;
    color: #173c20;
    font-size: 15px;
}

.education-item span {
    display: block;
    margin-top: 3px;
    color: #7b857e;
    font-size: 12px;
}

.education-item > b {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 50%;
    background: #edf6ef;
    color: #247039;
    font-size: 13px;
}

.education-empty {
    padding: 30px;
    text-align: center;
    color: #7b857e;
    font-size: 13px;
}

/* ==========================================================================
   13. KORPS & KOMPI GRID
   ========================================================================== */
.korps-grid,
.kompi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.korps-card,
.kompi-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 105px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f2 100%);
    border: 1px solid #cfe3d2;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 7px 22px rgba(25, 90, 45, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.korps-card:hover,
.kompi-card:hover {
    transform: translateY(-4px);
    border-color: #8fbd98;
    box-shadow: 0 13px 30px rgba(25, 90, 45, 0.14);
}

.korps-icon,
.kompi-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #155d2b, #2f7d3f);
    color: #f3d45c;
    font-size: 20px;
    box-shadow: 0 5px 12px rgba(21, 93, 43, 0.22);
}

.kompi-icon {
    color: #ffffff;
    font-size: 21px;
}

.korps-info,
.kompi-info {
    min-width: 0;
    flex: 1;
}

.korps-info span,
.kompi-info span {
    display: block;
    margin-bottom: 3px;
    color: #3d7d4d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.korps-info strong,
.kompi-info strong {
    display: block;
    color: #173c20;
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.korps-info small,
.kompi-info small {
    display: block;
    margin-top: 4px;
    color: #7b857e;
    font-size: 11px;
}

.korps-count,
.kompi-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 9px;
    border-radius: 50%;
    background: #dff0e2;
    color: #247039;
    font-size: 13px;
    font-weight: 750;
}

.korps-arrow,
.kompi-arrow {
    color: #2e7d32;
    font-size: 23px;
    transition: transform 0.2s ease;
}

.korps-card:hover .korps-arrow,
.kompi-card:hover .kompi-arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   14. KEMAMPUAN PERSONEL SECTION
   ========================================================================== */
.kemampuan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 18px;
}

.kemampuan-card {
    background: #ffffff;
    border: 1px solid #dce7df;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(20, 70, 35, 0.07);
    transition: all 0.2s ease;
}

.kemampuan-card:hover {
    box-shadow: 0 9px 24px rgba(20, 70, 35, 0.11);
    transform: translateY(-2px);
}

.kemampuan-card-header,
.kemampuan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #f4f9f5, #e7f2e9);
    border-bottom: 1px solid #d9e6dc;
}

.kemampuan-card-header h3,
.kemampuan-card-head h3 {
    margin: 0;
    color: #174d25;
    font-size: 15px;
    font-weight: 700;
}

.kemampuan-card-body,
.kemampuan-body {
    padding: 16px 18px;
}

.kemampuan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid #edf2ee;
}

.kemampuan-row:last-child {
    border-bottom: none;
}

.kemampuan-row span {
    color: #718078;
    font-size: 11px;
}

.kemampuan-row strong {
    color: #183d25;
    font-size: 12px;
    text-align: right;
}

.kemampuan-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.kemampuan-stat {
    padding: 10px;
    background: #f7faf8;
    border: 1px solid #e0e9e2;
    border-radius: 8px;
}

.kemampuan-stat-label {
    display: block;
    margin-bottom: 5px;
    color: #7a867e;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.kemampuan-stat-value {
    display: block;
    color: #214b2d;
    font-size: 13px;
    font-weight: 800;
}

.kemampuan-score {
    background: #e8f4eb;
    border-color: #cce2d1;
    text-align: center;
}

.kemampuan-score strong {
    color: #176432;
    font-size: 20px;
}

.kemampuan-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 5px;
    background: #e7f4ea;
    border: 1px solid #c8e1ce;
    color: #26713a;
    font-size: 9px;
    font-weight: 800;
}

.kemampuan-status.gagal,
.kemampuan-status.tidak {
    background: #faeded;
    border-color: #ebcccc;
    color: #a04444;
}

.kemampuan-empty {
    padding: 18px;
    text-align: center;
    background: #f8faf8;
    border: 1px dashed #ccd8cf;
    border-radius: 8px;
    color: #7b857e;
    font-size: 10px;
}

.kemampuan-card-wide {
    grid-column: 1 / -1;
}

/* ==========================================================================
   15. MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */

/* Laptop / Desktop Kecil (<= 1000px) */
@media (max-width: 1000px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        width: calc(100% - 220px);
        margin-left: 220px;
    }

    .statistics {
        grid-template-columns: repeat(2, 1fr);
    }

    .personel-filter {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search,
    .filter-buttons {
        grid-column: 1 / -1;
    }

    .korps-grid,
    .kompi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet (<= 900px) */
@media (max-width: 900px) {
    .pj-grid,
    .education-grid,
    .kemampuan-grid {
        grid-template-columns: 1fr;
    }

    .kemampuan-card-wide {
        grid-column: auto;
    }

    .kompi-filter-table {
        min-width: 950px;
    }
}

/* HP / Mobile (<= 768px & <= 700px) */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 4%;
    }

    .hero {
        padding: 50px 5%;
    }

    .hero h2 {
        font-size: 34px;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        text-align: center;
    }
}

@media (max-width: 700px) {
    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .app {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-menu,
    .sidebar-bottom {
        display: none;
    }

    .topbar {
        padding: 15px 20px;
    }

    .welcome-card,
    .content-section,
    .admin-notice {
        margin-left: 20px;
        margin-right: 20px;
    }

    .welcome-card {
        padding: 25px;
    }

    .welcome-card img {
        width: 75px;
        height: 75px;
    }

    .statistics {
        grid-template-columns: 1fr;
        margin-left: 20px;
        margin-right: 20px;
    }

    .quick-menu {
        grid-template-columns: 1fr;
    }

    .app-footer {
        padding: 20px;
        flex-direction: column;
        gap: 5px;
    }

    .form-page {
        padding: 20px 12px;
    }

    .form-card {
        padding: 22px;
    }

    .form-header {
        align-items: flex-start;
    }

    .form-header img {
        width: 55px;
        height: 55px;
    }

    .form-header h1 {
        font-size: 21px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }

    .personel-header {
        padding: 15px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .personel-actions {
        width: 100%;
    }

    .personel-actions a {
        flex: 1;
    }

    .personel-content {
        padding: 20px;
    }

    .personel-title {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .personel-title h2 {
        font-size: 22px;
    }

    .personel-count {
        font-size: 11px;
    }

    .detail-header {
        padding: 15px 20px;
    }

    .detail-content {
        padding: 20px 12px 40px;
    }

    .profile-card {
        padding: 22px;
        flex-direction: column;
        text-align: center;
    }

    .profile-badges {
        justify-content: center;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions button {
        width: 100%;
    }
}

/* HP Kecil (<= 650px & <= 600px) */
@media (max-width: 650px) {
    .korps-grid,
    .kompi-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .korps-card,
    .kompi-card {
        min-height: 90px;
        padding: 16px;
    }

    .korps-icon,
    .kompi-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .korps-info strong,
    .kompi-info strong {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .personel-filter {
        grid-template-columns: 1fr;
    }

    .filter-search {
        grid-column: auto;
    }

    .filter-buttons {
        grid-column: auto;
        width: 100%;
    }

    .filter-buttons a,
    .filter-buttons button {
        flex: 1;
    }

    .pj-grid,
    .education-grid {
        gap: 18px;
        margin-top: 20px;
    }

    .pj-card-header,
    .education-card-header {
        padding: 20px;
    }

    .pj-card-header h3,
    .education-card-header h3 {
        font-size: 20px;
    }

    .pj-list,
    .education-list {
        padding: 14px;
    }

    .pj-item,
    .education-item {
        min-height: 62px;
        padding: 10px;
    }

    .pj-item > div::before {
        width: 34px;
        height: 34px;
    }

    .personel-title {
        padding: 20px;
    }

    .personel-title h2 {
        font-size: 25px;
    }

    .kemampuan-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .kemampuan-card-header,
    .kemampuan-card-head {
        padding: 13px 14px;
    }

    .kemampuan-card-body,
    .kemampuan-body {
        padding: 14px;
    }
}

@media (max-width: 400px) {
    .kemampuan-stats {
        grid-template-columns: 1fr;
    }
}