/* Reset dan basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(240, 180, 76, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(52, 152, 219, 0.18), transparent 20%),
        linear-gradient(180deg, #12283c 0%, #17324a 52%, #101f30 100%);
    color: #ecf0f1;
    transition: all 0.3s;
    box-shadow: 18px 0 40px rgba(12, 24, 37, 0.18);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 20;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: none;
    background: rgba(9, 23, 37, 0.42);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 15;
}

body.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.sidebar-collapsed .sidebar {
    width: 108px;
}

body.sidebar-collapsed .sidebar-header {
    padding: 20px 12px 16px;
    text-align: center;
}

body.sidebar-collapsed .sidebar-badge,
body.sidebar-collapsed .sidebar-title,
body.sidebar-collapsed .sidebar-subtitle,
body.sidebar-collapsed .sidebar-header-card,
body.sidebar-collapsed .sidebar-section-title,
body.sidebar-collapsed .menu-label,
body.sidebar-collapsed .menu-arrow,
body.sidebar-collapsed .sidebar-user-meta,
body.sidebar-collapsed .sidebar-footer-note,
body.sidebar-collapsed .sidebar-logout-copy {
    display: none;
}

body.sidebar-collapsed .sidebar-logo img {
    max-width: 54px;
}

body.sidebar-collapsed .sidebar-menu,
body.sidebar-collapsed .sidebar-footer {
    padding-left: 12px;
    padding-right: 12px;
}

body.sidebar-collapsed .sidebar-logo {
    margin-bottom: 0;
}

body.sidebar-collapsed .menu-item a {
    justify-content: center;
    padding: 12px 0;
    min-height: 58px;
}

body.sidebar-collapsed .menu-icon-shell {
    margin-right: 0;
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

body.sidebar-collapsed .sidebar-user-card {
    justify-content: center;
    padding: 12px 10px;
}

body.sidebar-collapsed .sidebar-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0 auto;
    padding: 0;
    font-size: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(224, 86, 72, 0.92), rgba(183, 51, 40, 0.92));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 18px rgba(112, 31, 24, 0.24);
}

body.sidebar-collapsed .sidebar-logout-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

body.sidebar-collapsed .sidebar-logout-icon i {
    font-size: 0.96rem;
    line-height: 1;
}

body.sidebar-collapsed .sidebar-logout-btn:hover {
    transform: translateY(-1px) scale(1.03);
    background: linear-gradient(180deg, rgba(233, 94, 79, 0.98), rgba(193, 56, 44, 0.98));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 24px rgba(112, 31, 24, 0.30);
}

body.sidebar-collapsed .sidebar-footer form {
    display: flex;
    justify-content: center;
}

body.sidebar-collapsed .sidebar-footer {
    gap: 10px;
}

body.sidebar-collapsed .menu-item a:hover {
    transform: none;
}

body.sidebar-collapsed .menu-item.active a::before {
    left: 50%;
    top: auto;
    bottom: 6px;
    width: 22px;
    height: 3px;
    transform: translateX(-50%);
}

body.sidebar-collapsed .sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.sidebar-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(6px);
}

.sidebar-orb.orb-one {
    width: 170px;
    height: 170px;
    top: -72px;
    right: -40px;
    background: radial-gradient(circle, rgba(240, 180, 76, 0.22) 0%, rgba(240, 180, 76, 0) 70%);
}

.sidebar-orb.orb-two {
    width: 200px;
    height: 200px;
    bottom: 90px;
    left: -110px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.18) 0%, rgba(52, 152, 219, 0) 70%);
}

.sidebar-header {
    padding: 26px 24px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f7d37f;
}

.sidebar-logo {
    margin-bottom: 14px;
}

.sidebar-logo img {
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.sidebar-title {
    font-size: 1.22rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(236, 240, 241, 0.78);
}

.sidebar-header-card {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-header-card-label {
    display: block;
    margin-bottom: 4px;
    color: rgba(236, 240, 241, 0.58);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-header-card strong {
    color: #ffffff;
    font-size: 0.96rem;
}

.sidebar-menu {
    padding: 22px 16px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.sidebar-section-title {
    margin: 0 8px 14px;
    color: rgba(236, 240, 241, 0.52);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-item {
    position: relative;
    margin-bottom: 8px;
}

.menu-item a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: rgba(236, 240, 241, 0.88);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.menu-item a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.menu-item.active a {
    background: linear-gradient(135deg, rgba(46, 134, 193, 0.30), rgba(22, 50, 79, 0.32));
    border: 1px solid rgba(112, 184, 234, 0.28);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(4, 14, 24, 0.18);
}

.menu-item.active a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0b44c, #7fd6ff);
    box-shadow: 0 0 16px rgba(127, 214, 255, 0.4);
}

.menu-icon-shell {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item.active .menu-icon-shell {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.12);
}

.menu-icon-shell i {
    margin-right: 0;
    width: auto;
    font-size: 0.95rem;
}

.menu-label {
    flex: 1;
}

.menu-arrow {
    color: rgba(236, 240, 241, 0.40);
    font-size: 0.78rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.menu-item a:hover .menu-arrow,
.menu-item.active .menu-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(2px);
}

.sidebar-footer {
    padding: 20px 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0b44c, #e67e22);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(230, 126, 34, 0.24);
}

.sidebar-user-meta {
    display: grid;
    gap: 2px;
}

.sidebar-user-meta strong {
    color: #ffffff;
    font-size: 0.94rem;
}

.sidebar-user-meta span {
    color: rgba(236, 240, 241, 0.68);
    font-size: 0.82rem;
    text-transform: capitalize;
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(224, 86, 72, 0.96), rgba(183, 51, 40, 0.96));
    color: #fff;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: none;
}

.sidebar-logout-btn:hover {
    background: linear-gradient(180deg, rgba(233, 94, 79, 1), rgba(193, 56, 44, 1));
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(112, 31, 24, 0.24);
}

.sidebar-logout-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffd2cc;
    box-shadow: none;
}

.sidebar-logout-icon i {
    margin-right: 0;
    font-size: 0.9rem;
}

.sidebar-logout-copy {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

.sidebar-footer-note {
    text-align: center;
    color: rgba(236, 240, 241, 0.42);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Content area */
.content {
    flex: 1;
    min-width: 0;
    height: 100vh;
    background-color: #f5f5f5;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 253, 0.96));
    padding: 16px 24px;
    border-bottom: 1px solid rgba(21, 50, 76, 0.08);
    box-shadow: 0 14px 26px rgba(21, 50, 76, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    overflow: visible;
}

header::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(45, 134, 194, 0), rgba(45, 134, 194, 0.28), rgba(43, 182, 115, 0));
}

header::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    right: -70px;
    top: -135px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 121, 83, 0.12), rgba(200, 121, 83, 0));
    pointer-events: none;
}

.header-start {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.menu-toggle {
    flex-shrink: 0;
}

.menu-toggle-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #18344d;
    background: linear-gradient(180deg, #ffffff, #f3f8fb);
    border: 1px solid rgba(21, 50, 76, 0.08);
    box-shadow: 0 10px 20px rgba(21, 50, 76, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.menu-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(21, 50, 76, 0.09);
    border-color: rgba(45, 134, 194, 0.18);
}

.menu-toggle-btn i {
    pointer-events: none;
}

.header-title-block {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 252, 0.96));
    border: 1px solid rgba(21, 50, 76, 0.08);
    box-shadow: 0 12px 24px rgba(21, 50, 76, 0.05);
}

.header-eyebrow {
    color: #8a7a6f;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.header-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.header-title {
    color: #18344d;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-title-dot {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #c8794c, #8a8f64);
}

.header-title-app {
    color: #6f8391;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.user-name {
    color: #5f7382;
    font-weight: 600;
    font-size: 0.92rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-shell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 8px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f6f9fb);
    border: 1px solid rgba(21, 50, 76, 0.08);
    box-shadow: 0 12px 22px rgba(21, 50, 76, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.dropdown-shell:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(21, 50, 76, 0.09);
    border-color: rgba(45, 134, 194, 0.18);
}

.dropdown-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(255, 255, 255, 0.98);
    min-width: 220px;
    box-shadow: 0 18px 30px rgba(21, 50, 76, 0.12);
    z-index: 11;
    border-radius: 18px;
    border: 1px solid rgba(21, 50, 76, 0.08);
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-content a:hover {
    background-color: #f5f9fc;
}

.dropdown-form {
    margin: 0;
}

.dropdown-action {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #333;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
}

.dropdown-action:hover {
    background-color: #f5f9fc;
}

.dropdown-action i {
    margin-right: 10px;
}

.logout-action {
    color: #c0392b;
}

.dropdown-trigger {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(240, 246, 249, 0.9);
    border: 1px solid rgba(21, 50, 76, 0.08);
    cursor: pointer;
    color: #18344d;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dropdown-trigger:hover {
    background: #eef4f8;
    border-color: rgba(45, 134, 194, 0.18);
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2ea7b5, #4cb46a);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(46, 167, 181, 0.22);
    flex-shrink: 0;
}

.header-user-meta {
    display: grid;
    gap: 1px;
    text-align: left;
}

.header-user-meta strong {
    color: #18344d;
    font-size: 0.94rem;
    line-height: 1.2;
}

.header-user-meta small {
    color: #7d8f9d;
    font-size: 0.78rem;
    text-transform: capitalize;
}

.header-chevron {
    color: #6e8290;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    header {
        padding: 14px 16px;
    }

    .container {
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        box-shadow: 18px 0 40px rgba(12, 24, 37, 0.24);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .content {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .header-title-app,
    .header-title-dot {
        display: none;
    }

    .user-name,
    .header-user-meta {
        display: none;
    }

    .dropdown-shell {
        padding-right: 8px;
    }

    .header-title-block {
        padding: 6px 10px;
    }
}

/* Main content */
main {
    padding: 30px;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

h2 {
    margin: 15px 0;
    color: #2c3e50;
}

/* Dashboard statistics */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.stat-icon.blue {
    background-color: #3498db;
}

.stat-icon.green {
    background-color: #2ecc71;
}

.stat-icon.orange {
    background-color: #f39c12;
}

.stat-content h3 {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Recent activity table */
.recent-activity {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.activity-container {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th, .activity-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.activity-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.activity-table tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Forms */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn, button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Tables */
.data-table-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.data-table .actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    max-width: 140px;
    white-space: nowrap;
}

/* Filter section */
.filter-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination .active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d5f5e3;
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.alert-danger {
    background-color: #fadbd8;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.text-danger {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 0.85rem;
}

.alert-warning {
    background-color: #fef9e7;
    color: #d35400;
    border-left: 4px solid #f39c12;
}

.alert-info {
    background-color: #ebf5fb;
    color: #2980b9;
    border-left: 4px solid #3498db;
}

/* Login page */
.login-page {
    min-height: 100vh;
    overflow: auto;
    background:
        radial-gradient(circle at 10% 12%, rgba(240, 184, 74, 0.22), transparent 24%),
        radial-gradient(circle at 92% 88%, rgba(43, 182, 115, 0.22), transparent 28%),
        linear-gradient(135deg, #102235 0%, #17324a 46%, #0f2730 100%);
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
    gap: 28px;
    align-items: center;
    max-width: 1180px;
    padding: 36px;
    margin: 0 auto;
}

.login-brand-panel,
.login-box {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    box-shadow: 0 28px 56px rgba(6, 18, 30, 0.28);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(240, 184, 74, 0.20), transparent 30%),
        linear-gradient(180deg, rgba(20, 55, 77, 0.96), rgba(15, 35, 52, 0.98));
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c8794c, #f2b84a, #78885c);
    pointer-events: none;
}

.login-brand-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(236, 246, 251, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f7d37f;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.login-box {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,249,0.96));
}

.login-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #c8794c, #f2b84a, #2bb673, #2ea7b5);
}

.login-logo {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(247, 211, 127, 0.28);
    box-shadow: 0 18px 32px rgba(5, 16, 28, 0.24);
}

.login-logo img {
    max-width: 62px;
    height: auto;
}

.login-brand-panel h1 {
    margin: auto 0 0;
    color: #ffffff;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1;
}

.login-brand-panel p {
    max-width: 620px;
    margin: 18px 0 0;
    color: rgba(236, 244, 248, 0.80);
    font-size: 1.02rem;
    line-height: 1.7;
}

.login-feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
}

.login-feature-item {
    min-height: 96px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(5, 16, 28, 0.16);
    display: grid;
    align-content: space-between;
    gap: 10px;
    font-weight: 700;
}

.login-feature-item i,
.login-feature-item svg {
    color: #f7d37f;
}

.login-form-head {
    margin-bottom: 24px;
}

.login-form-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #fff7e6, #f6efe7);
    border: 1px solid rgba(200, 121, 76, 0.20);
    color: #775642;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.login-form-head h2 {
    margin: 0;
    color: #17324a;
    font-size: 1.7rem;
    line-height: 1.15;
}

.login-form-head p {
    margin: 8px 0 0;
    color: #728696;
    font-size: 0.94rem;
    line-height: 1.6;
}

.login-box .form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    text-align: left;
}

.login-box label {
    color: #17324a;
    font-weight: 700;
    font-size: 0.92rem;
}

.login-box input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid rgba(24, 52, 77, 0.12);
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
    color: #16344b;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-box input:focus {
    outline: none;
    border-color: rgba(45, 134, 194, 0.46);
    box-shadow: 0 0 0 4px rgba(45, 134, 194, 0.12);
}

.btn-login {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #2bb673, #168b78 58%, #176b82);
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(27, 138, 104, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(27, 138, 104, 0.28);
}

.login-box .alert {
    margin-bottom: 18px;
    border-radius: 16px;
}

.login-box .text-danger {
    font-size: 0.84rem;
    color: #c0392b;
}

@media (max-width: 980px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .login-brand-panel {
        min-height: auto;
    }

    .login-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .login-container {
        padding: 18px;
    }

    .login-brand-panel,
    .login-box {
        border-radius: 24px;
        padding: 22px;
    }

    .login-brand-top {
        flex-direction: column;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: row;
    }
    
    header {
        padding: 15px;
    }
    
    main {
        padding: 15px;
    }
    
    .dashboard-stats {
        flex-direction: column;
    }
    
    .form-col {
        flex: 100%;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* Highlights for changed data */
.highlight {
    background-color: #fffacd;
}

/* History details */
.history-details {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.history-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.history-item:last-child {
    border-bottom: none;
}

.history-field {
    font-weight: 500;
}

.history-change {
    display: flex;
    margin-top: 5px;
}

.history-old, .history-new {
    flex: 1;
    padding: 0 10px;
}

.history-old {
    color: #e74c3c;
    text-decoration: line-through;
}

.history-new {
    color: #2ecc71;
}

/* Tambahan styling untuk halaman detail */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.detail-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-column {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
}

.detail-column.full-width {
    flex: 100%;
}

.detail-group {
    margin-bottom: 15px;
}

.detail-group label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.detail-value {
    padding: 8px 0;
    color: #2c3e50;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 8px 0;
    color: #7f8c8d;
}
