* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    /* background: linear-gradient(135deg, #71b7e6, #9b59b6); */
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

body.claim-bonus-page {
    background: #f8f9fa !important;
}

.dashboard {
    position: relative;
    width: 100%;
    z-index: 1;
}

.navbar {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #9b59b6;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding-top: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.35s ease-in-out;
    z-index: 1002;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    color: #333;
}

.close-sidebar {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    padding: 0 20px;
}

.nav-links li {
    margin: 15px 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s, background-color 0.3s;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-links li a:hover {
    color: #fff;
    background-color: #9b59b6;
}

.logout-btn {
    background: #e74c3c;
    color: white !important;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-block;
}

.logout-btn:hover {
    background: #c0392b !important;
}

.content {
    padding: 20px;
    transition: margin-left 0.35s ease-in-out;
    z-index: 999;
    pointer-events: auto; /* Pastikan konten menerima klik */
}

.content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.role-info {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.2rem;
    color: #9b59b6;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 20px auto;
}

.form-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #9b59b6;
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.btn {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    transform: translateY(-2px);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
}

table thead tr {
    background-color: #f4f6f8;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

table th {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tbody tr:hover {
    background-color: #f1f1f1;
    transition: background-color 0.2s ease-in-out;
}

.actions a.action-btn, .actions span.action-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px;
    transition: transform 0.2s, opacity 0.2s;
    text-align: center;
    min-width: 60px;
}

.actions a.action-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.action-btn.ban { background-color: #f39c12; }
.action-btn.unban { background-color: #27ae60; }
.action-btn.delete { background-color: #e74c3c; }
.action-btn.disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.role-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.role-tag.role-admin { background-color: #8e44ad; }
.role-tag.role-user { background-color: #3498db; }
.role-tag.role-banned { background-color: #7f8c8d; }

.maintenance-panel {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.maintenance-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 15px;
    display: block;
}

.status-box {
    background-color: #f4f6f8;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.status-box span {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.status-indicator {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    min-width: 120px;
}

.status-indicator.active {
    background-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.status-indicator.inactive {
    background-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.maintenance-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-enable {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.btn-enable:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.btn-disable {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-disable:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.btn:disabled {
    background: #bdc3c7 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-page {
    background: linear-gradient(135deg, #71b7e6, #9b59b6);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.auth-box .form-group {
    margin-bottom: 20px;
}

.auth-box .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.auth-box .btn {
    margin-top: 10px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.auth-footer a {
    color: #9b59b6;
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-box .alert {
    margin-top: 0;
    margin-bottom: 20px;
}

.admin-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
    align-items: start;
}

.logged-in-list-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.logged-in-list-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.logged-in-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.logged-in-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #495057;
}

.logged-in-list li:last-child {
    border-bottom: none;
}

.logged-in-list li i {
    color: #9b59b6;
}

.logged-in-list li.empty-list {
    color: #7f8c8d;
    text-align: center;
    padding: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    transition: opacity 0.35s ease-in-out;
}

.sidebar.active ~ .overlay {
    display: block;
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .sidebar {
        left: 0;
        box-shadow: none;
        background: transparent;
        z-index: 1;
        padding-top: 80px;
    }
    .content {
        margin-left: 280px;
    }
    .close-sidebar {
        display: none;
    }
    .overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }
    .close-sidebar {
        display: block;
    }
}

@media (max-width: 1200px) {
    .admin-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
  .card {
    max-width: 98vw !important;
    padding: 8px 2vw !important;
    box-sizing: border-box;
  }
  .member-item {
    grid-template-columns: 1fr !important;
    padding: 10px 2vw !important;
    word-break: break-word;
    box-sizing: border-box;
  }
}