.desktop-restriction-view {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    min-height: 80vh;
}

.restriction-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(250, 204, 21, 0.1);
    border: 1px solid var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-yellow);
}

.restriction-icon i {
    font-size: 2.25rem;
    color: var(--color-yellow);
}

.restriction-title {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 0.65rem;
}

.restriction-desc {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--color-text-muted);
    max-width: 320px;
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.btn-back-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-yellow);
    color: #000000;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.admin-desktop-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: #080809;
}

.admin-sidebar {
    width: 250px;
    background-color: #121214;
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    min-height: 100vh;
}

.sidebar-header {
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.sidebar-logo {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.sidebar-brand-text h3 {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--color-text-main);
    line-height: 1.3;
    margin-bottom: 0.2rem;
}

.sidebar-brand-text p {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem 0.85rem;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-menu-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar-menu-group-header {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    color: var(--color-text-main);
    font-size: 0.86rem;
    font-weight: 400;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: left;
}

.sidebar-menu-group-header:hover {
    background-color: #1a1b1f;
}

.group-title-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.group-title-left i {
    font-size: 0.95rem;
    color: var(--color-yellow);
}

.group-caret {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.sidebar-menu-group.open .group-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0.85rem;
    margin-top: 0.2rem;
}

.sidebar-submenu-item {
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.sidebar-submenu-link {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 400;
    border-radius: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-submenu-link i {
    font-size: 0.85rem;
    color: inherit;
}

.sidebar-submenu-item.active .sidebar-submenu-link {
    background-color: var(--color-yellow);
    color: #000000;
    font-weight: 400;
    box-shadow: 0 3px 10px rgba(250, 204, 21, 0.25);
}

.sidebar-submenu-item:not(.active) .sidebar-submenu-link:hover {
    background-color: #1a1b1f;
    color: var(--color-text-main);
}

.badge-pending {
    margin-left: auto;
    background-color: var(--color-yellow);
    color: #000000;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0.05rem 0.4rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(250, 204, 21, 0.4);
}

.sidebar-submenu-item.active .badge-pending {
    background-color: #000000;
    color: var(--color-yellow);
}

.sidebar-menu-item {
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
}

.sidebar-menu-link {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 400;
    border-radius: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sidebar-menu-link i {
    font-size: 0.95rem;
    color: inherit;
}

.sidebar-menu-item.active .sidebar-menu-link {
    background-color: var(--color-yellow);
    color: #000000;
    font-weight: 400;
    box-shadow: 0 3px 10px rgba(250, 204, 21, 0.25);
}

.sidebar-menu-item:not(.active) .sidebar-menu-link:hover {
    background-color: #1a1b1f;
    color: var(--color-text-main);
}

.admin-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #080809;
}

.admin-top-navbar {
    width: 100%;
    height: 54px;
    background-color: #121214;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 50;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-page-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-text-main);
}

.profile-dropdown-wrapper {
    position: relative;
}

.profile-trigger-btn {
    background-color: #17181c;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.3rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text-main);
    transition: all 0.2s ease;
}

.profile-trigger-btn:hover, .profile-trigger-btn.active {
    border-color: var(--color-yellow);
    background-color: #1f2026;
}

.profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(250, 204, 21, 0.15);
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.profile-name {
    font-size: 0.82rem;
    font-weight: 400;
}

.profile-caret {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    transition: transform 0.2s ease;
}

.profile-trigger-btn.active .profile-caret {
    transform: rotate(180deg);
    color: var(--color-yellow);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 150px;
    background-color: #16171a;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    padding: 0.3rem;
    display: none;
    flex-direction: column;
    z-index: 100;
    animation: dropdown-fade-in 0.15s ease;
}

.profile-dropdown-menu.open {
    display: flex;
}

@keyframes dropdown-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item.logout-item {
    color: #ef4444;
}

.dropdown-item.logout-item:hover {
    background-color: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.admin-main-area {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.admin-panel-card {
    background-color: #121214;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.panel-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.panel-card-title h3 {
    font-size: 1.02rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 0.2rem;
}

.panel-card-title p {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.65rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
}

.status-ready {
    background-color: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-waiting {
    background-color: rgba(156, 163, 175, 0.12);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.25);
}

.status-disconnected {
    background-color: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.status-inactive {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-approved {
    background-color: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-rejected {
    background-color: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(250, 204, 21, 0.15);
    color: var(--color-yellow);
    border: 1px solid rgba(250, 204, 21, 0.3);
    padding: 0.15rem 0.55rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 400;
}

.badge-nickname {
    color: var(--color-yellow);
    font-weight: 400;
    font-size: 0.82rem;
}

.text-line-id {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 400;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-field.full {
    grid-column: span 2;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.form-input {
    background-color: #0b0b0d;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--color-yellow);
}

.form-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.form-actions-bar.full {
    grid-column: span 2;
}

.btn-primary-yellow {
    background-color: var(--color-yellow);
    color: #000000;
    border: none;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-primary-yellow:hover {
    opacity: 0.92;
}

.btn-primary-yellow:active {
    transform: scale(0.98);
}

.btn-secondary-dark {
    background-color: #1c1d22;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-secondary-dark:hover {
    border-color: var(--color-yellow);
    color: var(--color-yellow);
}

.table-actions-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.btn-approve-action {
    background-color: var(--color-yellow);
    color: #000000;
    border: none;
    padding: 0.38rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-approve-action:hover {
    opacity: 0.92;
}

.btn-approve-action:active {
    transform: scale(0.98);
}

.btn-reject-action {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.38rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.btn-reject-action:hover {
    background-color: rgba(239, 68, 68, 0.15);
}

.ios-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
    margin: 0 auto;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #27282d;
    border: 1px solid #3a3c42;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 22px;
}

.ios-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.ios-switch input:checked + .ios-slider {
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
}

.ios-switch input:checked + .ios-slider:before {
    transform: translateX(18px);
    background-color: #000000;
}

.btn-icon-delete {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.btn-icon-delete:hover {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.06);
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.custom-table th {
    background-color: #0e0f12;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 400;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    text-align: center;
}

.custom-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #1f2126;
    font-size: 0.84rem;
    font-weight: 400;
    color: var(--color-text-main);
    vertical-align: middle;
    text-align: center;
}

.custom-table tr:hover td {
    background-color: #191b1f;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-yellow);
    box-shadow: 0 2px 6px rgba(250, 204, 21, 0.25);
    display: block;
    margin: 0 auto;
}

.table-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(250, 204, 21, 0.15);
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1.5px solid var(--color-yellow);
    margin: 0 auto;
}

.text-highlight-yellow {
    color: var(--color-yellow);
    font-weight: 400;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modal-fade-in 0.2s ease;
}

.admin-modal-backdrop.open {
    display: flex;
}

.admin-modal-card {
    background-color: #121214;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(250, 204, 21, 0.12);
    overflow: hidden;
    animation: modal-scale-up 0.2s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--color-text-main);
}

.btn-modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-user-preview {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background-color: #0c0d0e;
    border: 1px solid var(--color-border);
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
}

.modal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-yellow);
}

.modal-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(250, 204, 21, 0.15);
    color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1.5px solid var(--color-yellow);
}

.modal-user-text h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-main);
    margin-bottom: 0.1rem;
}

.modal-user-text p {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-muted);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-border);
    background-color: #0d0e10;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-scale-up {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 991px) {
    .desktop-restriction-view {
        display: flex;
    }
    .admin-desktop-layout {
        display: none;
    }
}
