body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: #232946;
    color: #fff;
    padding-top: 60px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 20px 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 30px;
    display: block;
    transition: background 0.2s;
}

.sidebar ul li a:hover {
    background: #393e6a;
    border-radius: 4px;
}

.main-content {
    margin-left: 0;
    transition: margin-left 0.3s;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    background: #232946;
    color: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    margin: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.dashboard {
    margin-top: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-start;
}

.stat-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 14px 14px;
    display: flex;
    align-items: center;
    min-width: 120px;
    flex: 1 1 120px;
    max-width: 170px;
    transition: box-shadow 0.2s;
    background: #fff;
}

.stat-card.user {
    background: #e0f7fa;
}
.stat-card.points {
    background: #fff3e0;
}
.stat-card.withdraw {
    background: #fce4ec;
}
.stat-card.payment {
    background: #e8f5e9;
}

.stat-card:hover {
    box-shadow: 0 4px 16px rgba(35,41,70,0.13);
}

.stat-icon {
    width: 36px;
    height: 36px;
    background: #eebbc3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.95rem;
    color: #232946;
    opacity: 0.7;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: bold;
    color: #232946;
}

@media (min-width: 700px) {
    .sidebar {
        transform: translateX(0);
    }
    .sidebar.active {
        transform: translateX(-100%);
    }
    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 900px) {
    .stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .stat-card {
        max-width: 48%;
        min-width: 140px;
        flex: 1 1 48%;
    }
}

@media (max-width: 600px) {
    .stats-container {
        flex-direction: column;
        gap: 8px;
    }
    .stat-card {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    justify-content: flex-start;
}

.chart-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 12px 16px 8px 16px;
    min-width: 160px;
    max-width: 220px;
    flex: 1 1 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chart-title {
    font-size: 0.98rem;
    color: #232946;
    margin-bottom: 8px;
    font-weight: 500;
}

.chart-svg {
    width: 100%;
    height: 48px;
    margin-bottom: 2px;
}

@media (max-width: 900px) {
    .charts-container {
        gap: 10px;
    }
    .chart-card {
        max-width: 48%;
        min-width: 120px;
        flex: 1 1 48%;
    }
}

@media (max-width: 600px) {
    .charts-container {
        flex-direction: column;
        gap: 8px;
    }
    .chart-card {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

.charts-section {
    margin-top: 32px;
}

.chart-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
}

.chart-info {
    margin-top: 6px;
    background: #f7f7ff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.95rem;
    color: #232946;
    box-shadow: 0 1px 4px rgba(35,41,70,0.06);
}

.chart-date-input {
    width: 100%;
    margin-bottom: 8px;
    padding: 5px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #232946;
    background: #f7f7ff;
    box-sizing: border-box;
}

.chart-value {
    margin-top: 6px;
    background: #eaf0fa;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.97rem;
    color: #232946;
    box-shadow: 0 1px 4px rgba(35,41,70,0.04);
}

.user-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 24px 18px 18px 18px;
}

.user-search-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.user-search-input {
    width: 100%;
    max-width: 340px;
    flex: 2 1 220px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7f7ff;
    color: #232946;
    box-sizing: border-box;
}

.user-table-container {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98rem;
}

.user-table th, .user-table td {
    padding: 10px 12px;
    text-align: left;
}

.user-table th {
    background: #eaf0fa;
    color: #232946;
    font-weight: 600;
}

.user-table tr:nth-child(even) {
    background: #f7f7ff;
}

.user-table tr:hover {
    background: #e0f7fa;
}

.user-filter-select {
    padding: 6px 24px 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.97rem;
    background: #f7f7ff url('data:image/svg+xml;utf8,<svg fill="%23232946" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 8px center/16px 16px;
    color: #232946;
    margin-left: 8px;
    min-width: 90px;
    max-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border 0.2s;
}
.user-filter-select:focus {
    border: 1.5px solid #232946;
    outline: none;
}

.user-table th.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}
.user-table th.sortable .sort-arrow {
    font-size: 1em;
    margin-left: 4px;
    color: #4caf50;
    transition: color 0.2s;
}
.user-table th.sortable.active .sort-arrow {
    color: #e91e63;
}

.aksi-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}

.aksi-btn {
    background: #232946;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.97rem;
    transition: background 0.2s;
}

.aksi-btn:hover {
    background: #393e6a;
}

.aksi-btn span {
    font-size: 1.15em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aksi-btn.aksi-tambah { background: #4caf50; }
.aksi-btn.aksi-tambah:hover { background: #388e3c; }
.aksi-btn.aksi-kurang { background: #ff9800; }
.aksi-btn.aksi-kurang:hover { background: #f57c00; }
.aksi-btn.aksi-blokir { background: #e91e63; }
.aksi-btn.aksi-blokir:hover { background: #ad1457; }
.aksi-btn.aksi-hapus { background: #232946; }
.aksi-btn.aksi-hapus:hover { background: #393e6a; }

.payment-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 24px 18px 18px 18px;
}

.payment-table-container {
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98rem;
}

.payment-table th, .payment-table td {
    padding: 10px 12px;
    text-align: left;
}

.payment-table th {
    background: #eaf0fa;
    color: #232946;
    font-weight: 600;
}

.payment-table tr:nth-child(even) {
    background: #f7f7ff;
}

.payment-table tr:hover {
    background: #e0f7fa;
}

.payment-table td:nth-child(3), .payment-table th:nth-child(3) {
    min-width: 80px;
    max-width: 110px;
    text-align: left;
    white-space: nowrap;
}

.popup-penolakan {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(35,41,70,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px 16px 20px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.13);
    min-width: 300px;
    max-width: 90vw;
}
.popup-content h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #232946;
}
.popup-content textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
    resize: vertical;
    min-height: 60px;
}
.popup-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.aksi-btn.aksi-setuju { background: #4caf50; }
.aksi-btn.aksi-setuju:hover { background: #388e3c; }
.aksi-btn.aksi-tolak { background: #e91e63; }
.aksi-btn.aksi-tolak:hover { background: #ad1457; }
.aksi-btn.aksi-hapus { background: #232946; }
.aksi-btn.aksi-hapus:hover { background: #393e6a; }

.payment-filter-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7f7ff url('data:image/svg+xml;utf8,<svg fill="%23232946" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center/18px 18px;
    color: #232946;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border 0.2s;
}
.payment-filter-select:focus {
    border: 1.5px solid #232946;
    outline: none;
}

.withdraw-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 24px 18px 18px 18px;
}

.withdraw-table-container {
    overflow-x: auto;
}

.withdraw-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98rem;
}

.withdraw-table th, .withdraw-table td {
    padding: 10px 12px;
    text-align: left;
}

.withdraw-table th {
    background: #eaf0fa;
    color: #232946;
    font-weight: 600;
}

.withdraw-table tr:nth-child(even) {
    background: #f7f7ff;
}

.withdraw-table tr:hover {
    background: #e0f7fa;
}

.withdraw-table td:nth-child(4), .withdraw-table th:nth-child(4) {
    min-width: 90px;
    max-width: 140px;
    text-align: left;
    white-space: nowrap;
}

.withdraw-table td:nth-child(6), .withdraw-table th:nth-child(6) {
    min-width: 130px;
    max-width: 180px;
    text-align: left;
    white-space: nowrap;
}

.redeem-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 24px 18px 18px 18px;
}

.redeem-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.redeem-input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7f7ff;
    color: #232946;
    min-width: 120px;
    box-sizing: border-box;
}

.redeem-form .aksi-btn {
    padding: 8px 18px;
    font-size: 1rem;
    margin-left: 8px;
}

.redeem-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 0;
    margin: 0;
}

.redeem-table {
    min-width: 700px;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.98rem;
}

.redeem-table th, .redeem-table td {
    padding: 10px 12px;
    text-align: left;
}

.redeem-table th {
    background: #eaf0fa;
    color: #232946;
    font-weight: 600;
}

.redeem-table tr:nth-child(even) {
    background: #f7f7ff;
}

.redeem-table tr:hover {
    background: #e0f7fa;
}

@media (max-width: 900px) {
    .redeem-table {
        min-width: 600px;
    }
}

@media (max-width: 600px) {
    .redeem-table {
        font-size: 0.89rem;
        min-width: 520px;
    }
    .redeem-table th, .redeem-table td {
        padding: 6px 6px;
    }
    .redeem-table th:nth-child(5),
    .redeem-table td:nth-child(5),
    .redeem-table th:nth-child(6),
    .redeem-table td:nth-child(6) {
        display: none;
    }
    .redeem-table th:last-child,
    .redeem-table td:last-child {
        min-width: 60px;
    }
}

.settings-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.07);
    padding: 24px 18px 18px 18px;
}

.settings-form {
    width: 100%;
}

.settings-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.settings-card {
    background: #f7f7ff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(35,41,70,0.04);
    padding: 24px 18px 18px 18px;
    min-width: 270px;
    max-width: 320px;
    flex: 1 1 270px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-card label {
    font-weight: 600;
    margin-bottom: 2px;
    color: #232946;
}

.settings-card input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #232946;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.settings-form .aksi-btn {
    padding: 12px 32px;
    font-size: 1.15em;
    font-weight: bold;
    border-radius: 8px;
}

.popup-points-kupon {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(35,41,70,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}
.popup-points-kupon .popup-content {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px 16px 20px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.13);
    min-width: 300px;
    max-width: 95vw;
    width: 100%;
}
@media (max-width: 600px) {
    .popup-points-kupon .popup-content {
        min-width: 0;
        width: 98vw;
        padding: 16px 8vw 12px 8vw;
        font-size: 0.98rem;
    }
    .popup-points-kupon label {
        font-size: 0.97rem;
    }
    .popup-points-kupon input[type="number"] {
        font-size: 1rem;
        padding: 8px 10px;
    }
}

.aksi-btn.aksi-edit {
    background: #ff9800;
}
.aksi-btn.aksi-edit:hover {
    background: #f57c00;
}
.user-membership-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(35,41,70,0.13);
    padding: 16px 18px;
    min-width: 220px;
    max-width: 95vw;
    font-size: 1rem;
    margin-top: 0;
}
.user-membership-dropdown select {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    background: #f7f7ff;
    color: #232946;
}
.user-membership-dropdown .dropdown-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.user-membership-dropdown button {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.97rem;
    border: none;
    cursor: pointer;
}
.user-membership-dropdown .btn-simpan {
    background: #4caf50;
    color: #fff;
}
.user-membership-dropdown .btn-batal {
    background: #e91e63;
    color: #fff;
}
@media (max-width: 600px) {
    .user-membership-dropdown {
        min-width: 90vw;
        left: 50% !important;
        right: auto !important;
        margin: 0 auto;
        font-size: 0.97rem;
        padding: 12px 4vw;
    }
}

/* Status badge styling */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95em;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}
.status-sukses {
    background: #217a3a;
}
.status-ditolak {
    background: #d32f2f;
}
.status-pending {
    background: #fbc02d;
    color: #232946;
}

.metode-icon {
    vertical-align: middle;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    object-fit: contain;
}

/* Membership badge styling */
.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95em;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}
.membership-free {
    background: #bdbdbd;
    color: #232946;
}
.membership-silver {
    background: #b71c5c;
}
.membership-gold {
    background: #ff9800;
}
.membership-diamond {
    background: #1a237e;
}

.membership-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    object-fit: contain;
} 