html,
body {
    background: transparent !important;
    background-color: rgba(0, 0, 0, 0) !important;
}

:root {
    /* --primary-color يضبط من الكونفنق عبر JS عند فتح القائمة */
    --primary-hover: #0056b3;
    --bg-color: rgba(6, 6, 8, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 12, 0.765);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --padding-val: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Custom Hardware-Accelerated Cursor */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    user-select: none;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path d='M1 1v12l3.41-3.41L7.3 15h1.4l-2.9-5.4L10 9z' fill='white' stroke='black' stroke-width='1.5'/></svg>") 1 1, auto;
}

/* Custom Styled Select Dropdown */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(10, 10, 12, 0.9) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    outline: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
    background-size: 14px !important;
    background-repeat: no-repeat !important;
    background-position: left 12px center !important;
    /* RTL Arrow */
    padding-left: 36px !important;
}

select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.25) !important;
}

select option {
    background: #0d0d0f !important;
    color: #ffffff !important;
    padding: 10px !important;
    font-family: 'Cairo', sans-serif !important;
}

/* Custom Styled Textareas */
textarea {
    background: rgba(10, 10, 12, 0.7) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    color: #ffffff !important;
    font-family: 'Cairo', sans-serif !important;
    outline: none !important;
    transition: var(--transition) !important;
    resize: none;
}

textarea:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.25) !important;
}

/* Premium Page Transitions */
.page-fade-in {
    animation: pageFadeIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button & Alignment Utilities */
.editor-top-btn {
    width: auto !important;
    padding: 8px 14px !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 34px !important;
    line-height: 1 !important;
}

.panel-top-btn {
    width: auto !important;
    padding: 10px 20px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
}

input,
textarea,
select,
button {
    color: #ffffff !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

button,
a,
input[type="submit"],
input[type="button"],
.sidebar-item,
.card,
.action-btn,
.close-btn,
.header-btn,
.context-item,
.toggle-switch,
.slider,
.dropdown-selected,
.dropdown-option {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path d='M1 1v12l3.41-3.41L7.3 15h1.4l-2.9-5.4L10 9z' fill='white' stroke='black' stroke-width='1.5'/><circle cx='8' cy='8' r='1.5' fill='white' stroke='black' stroke-width='0.5'/></svg>") 1 1, pointer;
}

html,
body {
    background: transparent !important;
    background-color: rgba(0, 0, 0, 0) !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

body {
    background: transparent !important;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.45);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--primary-color-rgb), 0.75);
}

.app-container {
    width: 96vw;
    height: 93vh;
    max-width: 1800px;
    max-height: 980px;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65) !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-main);
    opacity: 0;
    transform: scale(0.95);
}

/* Header */
.header {
    height: 60px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15) !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    cursor: grab;
}

.header:active {
    cursor: grabbing;
}

.header-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.header-title span {
    color: var(--primary-color);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.header-btn svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    transition: color 0.3s ease;
}

.header-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.25);
    transform: translateY(-2px);
}

.header-btn.close-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #ff4d4d;
    border-color: rgba(220, 53, 69, 0.25);
}

.header-btn.close-btn:hover {
    color: #ffffff;
    border-color: #ff4d4d;
    background: rgba(220, 53, 69, 0.4);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

/* Main Body Layout */
.main-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 250px;
    border-left: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-left-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    overflow-y: auto;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border) 20%, var(--glass-border) 80%, transparent);
    margin: 15px 10px;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-item svg {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.sidebar-item.pinned {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(var(--primary-color-rgb), 0.2);
}

.sidebar-item.pinned svg.pin-icon {
    margin-right: auto;
    width: 14px;
    height: 14px;
    color: var(--primary-color);
    opacity: 0.85;
}

.sidebar-item:hover {
    background: var(--glass-bg-hover);
    color: var(--text-main);
    padding-right: 18px;
    /* subtle shift using padding instead of translation */
}

.sidebar-item.active {
    background: linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.1) 0%, transparent 100%);
    border-right: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.sidebar-item.drag-over {
    border-top: 2px solid var(--primary-color) !important;
    background: rgba(var(--primary-color-rgb), 0.08) !important;
    transform: translateY(2px);
}

.sidebar-item.dragging {
    background: rgba(var(--primary-color-rgb), 0.15) !important;
    border: 1px dashed var(--primary-color) !important;
    opacity: 0.75;
    transform: scale(0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.content-area {
    flex: 1;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-right-radius: 20px;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

#content-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
}

.welcome-screen h2 {
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Common Page Styles */
.page-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.page-icon {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.page-icon svg {
    width: 24px;
    height: 24px;
}

.page-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.page-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.2rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 10px;
}

.action-btn:hover {
    background: var(--primary-hover);
}

/* Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.setting-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.setting-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    border-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(22px);
    background-color: var(--primary-color);
}

/* Inputs & Forms */
input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    background: none;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 150px;
    background: transparent;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    margin-top: -6px;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.context-menu {
    position: absolute;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 5px;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.context-item {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.2s;
}

.context-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.context-item:hover {
    background: var(--glass-bg-hover);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
}

.modal.show {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: #ef4444 !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: none !important;
    transition: none !important;
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-close:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    transform: none !important;
    transition: none !important;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* Guide Content */
.guide-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
}

.guide-block h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.guide-block p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Compact Mode adjustments */
body.compact-mode .app-container {
    height: 65vh;
}

body.compact-mode .sidebar-item {
    padding: 8px 12px;
}

body.compact-mode .card {
    padding: 15px;
}

/* Simulated Select Dropdown */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-selected {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.dropdown-selected::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    margin-right: 10px;
    /* Space in RTL */
}

.custom-dropdown.open .dropdown-selected::after {
    transform: rotate(180deg);
}

.custom-dropdown.open .dropdown-selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.2);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.open .dropdown-options {
    display: block;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-option {
    padding: 10px 15px;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-option:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: var(--text-main);
}

.dropdown-option.selected {
    background: rgba(var(--primary-color-rgb), 0.25);
    color: var(--primary-color);
    font-weight: 600;
}

/* Suggestions section in settings */
.settings-divider {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
    letter-spacing: 0.5px;
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.suggestion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: var(--transition);
}

.suggestion-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    transform: translateY(-2px);
}

.suggestion-icon {
    width: 32px;
    height: 32px;
    background: rgba(var(--primary-color-rgb), 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.suggestion-icon svg {
    width: 16px;
    height: 16px;
}

.suggestion-details h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.suggestion-details p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ====================================== [ Settings Dashboard & Redesign ] ====================================== -- */
.settings-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.4s ease;
}

.settings-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.settings-card-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
}

.settings-card-section:hover {
    border-color: rgba(var(--primary-color-rgb), 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.settings-card-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.settings-card-section .section-title svg {
    width: 20px;
    height: 20px;
}

.settings-card-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-card-item:last-child {
    border-bottom: none;
}

.item-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 3px;
}

.item-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-control {
    flex-shrink: 0;
}

/* Keybind badge selector */
.keybind-badge {
    background: rgba(var(--primary-color-rgb), 0.15);
    border: 1px solid var(--primary-color);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 80px;
    text-align: center;
    transition: var(--transition);
    text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.5);
}

.keybind-badge:hover {
    background: rgba(var(--primary-color-rgb), 0.25);
    box-shadow: 0 0 12px rgba(var(--primary-color-rgb), 0.4);
    transform: scale(1.05);
}

.keybind-badge.listening {
    animation: pulseKeybind 1s infinite alternate;
    background: rgba(220, 53, 69, 0.2);
    border-color: #ff4d4d;
    text-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
}

@keyframes pulseKeybind {
    from {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
        opacity: 0.7;
    }

    to {
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.8);
        opacity: 1;
    }
}

.settings-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    background: rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-top: 10px;
}

.settings-info-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 70%;
    line-height: 1.5;
}

.settings-info-notice svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.reset-danger-btn {
    background: rgba(220, 53, 69, 0.15) !important;
    border: 1px solid #ff4d4d !important;
    color: #ff4d4d !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.reset-danger-btn:hover {
    background: #ff4d4d !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

/* ====================================== [ Style 2: Direct Inline Ban Cards ] ====================================== -- */
.style2-card {
    padding: 20px !important;
    gap: 15px !important;
}

.style2-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.style2-card-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.style2-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.style2-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.style2-input:focus {
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.15);
}

.style2-btn {
    margin-top: 5px !important;
    padding: 8px !important;
    font-size: 0.9rem;
}

/* ====================================== [ Style 3: Unified Admin Console ] ====================================== -- */
.unified-panel {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    height: calc(75vh - 160px);
    overflow: hidden;
}

.panel-tabs {
    width: 200px;
    background: rgba(255, 255, 255, 0.01);
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 15px 10px;
    gap: 8px;
    overflow-y: auto;
}

.panel-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: right;
    width: 100%;
}

.panel-tab-btn svg {
    width: 18px;
    height: 18px;
    color: currentColor;
    flex-shrink: 0;
}

.panel-tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    padding-right: 18px;
    /* subtle padding shift */
}

.panel-tab-btn.active {
    background: linear-gradient(90deg, rgba(var(--primary-color-rgb), 0.12) 0%, transparent 100%);
    border-right: 3px solid var(--primary-color);
    color: var(--primary-color);
}

.panel-tab-btn.tab-danger {
    color: #ff4d4d;
}

.panel-tab-btn.tab-danger:hover {
    background: rgba(220, 53, 69, 0.05);
    color: #ffffff;
}

.panel-tab-btn.tab-danger.active {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.12) 0%, transparent 100%);
    border-right: 3px solid #ff4d4d;
    color: #ff4d4d;
}

.panel-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-pane h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.pane-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pane-submit {
    margin-top: 15px !important;
    padding: 12px 25px !important;
    align-self: flex-start;
}

/* ====================================== [ Style 4: Split screen console ] ====================================== -- */
.style4-container {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    height: calc(75vh - 160px);
    overflow: hidden;
}

.style4-preview-pane {
    flex: 1.3;
    padding: 25px;
    overflow-y: auto;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.style4-menu-pane {
    flex: 0.7;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    overflow-y: auto;
}

.style4-menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.style4-menu-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: right;
    width: 100%;
    outline: none;
}

.style4-menu-btn svg {
    width: 20px;
    height: 20px;
    color: currentColor;
    flex-shrink: 0;
}

.style4-menu-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.style4-menu-btn.active {
    background: rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.15);
    text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.3);
}

.style4-menu-btn.menu-danger-btn {
    color: #ff4d4d;
    border-color: rgba(220, 53, 69, 0.2);
}

.style4-menu-btn.menu-danger-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #ff4d4d;
    border-color: #ff4d4d;
}

.style4-menu-btn.menu-danger-btn.active {
    background: rgba(220, 53, 69, 0.2);
    border-color: #ff4d4d;
    color: #ff4d4d;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.2);
}

.style4-form-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.style4-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    gap: 15px;
}

.style4-empty-state svg {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    opacity: 0.7;
}

.style4-form-pane {
    animation: fadeIn 0.3s ease;
}

.style4-form-pane h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.style4-pane-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* ====================================== [ Style 5: Collapsible Accordion Grid ] ====================================== -- */
.accordion-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-card:hover {
    border-color: rgba(var(--primary-color-rgb), 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.accordion-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.accordion-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-arrow svg {
    width: 100%;
    height: 100%;
}

.accordion-card.open {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.15);
    background: rgba(var(--primary-color-rgb), 0.02);
}

.accordion-card.open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion-card.accordion-danger-card.open {
    border-color: #ff4d4d;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.15);
    background: rgba(220, 53, 69, 0.02);
}

.accordion-card.accordion-danger-card.open .accordion-arrow {
    color: #ff4d4d;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-content-inner {
    padding: 10px 20px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    animation: fadeIn 0.3s ease;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 20, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.2);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-container.right-center {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.toast-container.left-center {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.toast-container.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.nui-toast {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-right: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    max-width: 400px;
    animation: slideInRight 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nui-toast.success {
    border-right-color: #28a745;
}

.nui-toast.error {
    border-right-color: #ff4d4d;
}

.nui-toast.warning {
    border-right-color: #ffc107;
}

.nui-toast.info {
    border-right-color: #17a2b8;
}

.nui-toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nui-toast.success .nui-toast-icon {
    color: #28a745;
}

.nui-toast.error .nui-toast-icon {
    color: #ff4d4d;
}

.nui-toast.warning .nui-toast-icon {
    color: #ffc107;
}

.nui-toast.info .nui-toast-icon {
    color: #17a2b8;
}

.nui-toast-content {
    display: flex;
    flex-direction: column;
}

.nui-toast-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.nui-toast-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Quick Reasons */
.quick-reasons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-reason-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.quick-reason-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.15);
    border-color: var(--primary-color);
    color: #fff;
}

/* ====================================== [ Toasts & Loaders ] ====================================== -- */
.toast-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    pointer-events: none;
}

.toast-container.right-center {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.toast-container.left-center {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.toast-container.bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.i6xy-toast {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
}

.toast-container.left-center .i6xy-toast {
    transform: translateX(-120%);
}

.toast-container.bottom-center .i6xy-toast {
    transform: translateY(120%);
}

.i6xy-toast.show {
    transform: translateX(0) scale(1) !important;
    opacity: 1;
}

.i6xy-toast-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.i6xy-toast-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.i6xy-toast-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.i6xy-toast-header {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.i6xy-toast-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.i6xy-toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.i6xy-toast-close:hover {
    color: #fff;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations for App opening */
.app-container.show {
    display: flex !important;
    animation: appShow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.app-container.hide {
    animation: appHide 0.3s forwards;
}

@keyframes appShow {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes appHide {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ====================================== [ Group Editor UI Styles ] ====================================== -- */

.group-item {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    padding-right: 18px;
    /* shift using padding */
}

.group-item.active {
    background: rgba(var(--primary-color-rgb), 0.15) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.1);
}

.group-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.group-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.group-details-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.group-details-title span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.permissions-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.permissions-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.permissions-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - 430px);
    overflow-y: auto;
    padding: 5px 2px;
}

.permission-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.83rem;
    color: var(--text-muted);
    transition: var(--transition);
    gap: 8px;
}

.perm-value {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.perm-comment {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.38);
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
}

.permission-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(var(--primary-color-rgb), 0.25);
}

/* سكشن هيدر بين البرمشنات */
.perm-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
    grid-column: 1 / -1;
}

.perm-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(var(--primary-color-rgb), 0.35) 30%,
            rgba(var(--primary-color-rgb), 0.35) 70%,
            transparent);
}

.perm-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(var(--primary-color-rgb), 0.9);
    background: rgba(var(--primary-color-rgb), 0.08);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 20px;
    padding: 3px 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.permission-delete-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border-radius: 4px;
    transition: var(--transition);
}

.permission-delete-btn:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    transform: scale(1.1);
}

.permission-delete-btn svg {
    width: 14px;
    height: 14px;
}

.add-permission-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-permission-form input {
    flex: 1;
    padding: 8px 14px;
    border-radius: 10px;
    outline: none;
    font-size: 0.88rem;
}

.group-sidebar::-webkit-scrollbar,
.groups-list::-webkit-scrollbar,
.group-content-panel::-webkit-scrollbar,
.permissions-list::-webkit-scrollbar {
    width: 4px;
}

.group-sidebar::-webkit-scrollbar-thumb,
.groups-list::-webkit-scrollbar-thumb,
.group-content-panel::-webkit-scrollbar-thumb,
.permissions-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.group-sidebar::-webkit-scrollbar-thumb:hover,
.groups-list::-webkit-scrollbar-thumb:hover,
.group-content-panel::-webkit-scrollbar-thumb:hover,
.permissions-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Custom styling for Ranks/Groups CRUD Editor */
.editor-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 8px 12px;
    transition: var(--transition);
}

.editor-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.editor-row.dragging {
    opacity: 0.4;
    border: 1px dashed var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.05);
}

.editor-row.section-row {
    background: rgba(var(--primary-color-rgb), 0.03);
    border-color: rgba(var(--primary-color-rgb), 0.15);
}

.editor-row.section-row input {
    font-size: 0.92rem;
    font-weight: 700;
}

.editor-save-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 600px;
    max-width: 90%;
    background: rgba(15, 15, 20, 0.95) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 14px;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65) !important;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.editor-save-bar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Selection Mode Pulse */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.5);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(var(--primary-color-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
}

/* Locked Exit Shake Animation */
@keyframes shake {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translate(-8px, 0);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translate(8px, 0);
    }
}

.shake {
    animation: shake 0.4s ease-in-out !important;
}

/* ====================================== [ Button Styles Config Options ] ====================================== */
/* Style 1: Server Colored Border, Dark Black Background, White Text */
body.btn-style-1 .action-btn,
body.btn-style-1 .btn-submit,
body.btn-style-1 .btn-cancel,
body.btn-style-1 .style2-btn,
body.btn-style-1 .sidebar-item,
body.btn-style-1 .header-btn,
body.btn-style-1 .panel-tab-btn,
body.btn-style-1 .style4-menu-btn,
body.btn-style-1 .keybind-badge,
body.btn-style-1 .custom-dropdown .dropdown-selected {
    border: 1.5px solid var(--primary-color) !important;
    background: rgba(10, 10, 12, 0.7) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.btn-style-1 .action-btn:hover,
body.btn-style-1 .btn-submit:hover,
body.btn-style-1 .btn-cancel:hover,
body.btn-style-1 .style2-btn:hover,
body.btn-style-1 .sidebar-item:hover,
body.btn-style-1 .header-btn:hover,
body.btn-style-1 .panel-tab-btn:hover,
body.btn-style-1 .style4-menu-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.15) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

/* Style 1 Red/Danger and Green Overrides */
body.btn-style-1 .reset-danger-btn,
body.btn-style-1 .close-btn,
body.btn-style-1 .style4-menu-btn.menu-danger-btn,
body.btn-style-1 .panel-tab-btn.tab-danger {
    border-color: #ff4d4d !important;
    background: rgba(220, 53, 69, 0.1) !important;
    color: #ff4d4d !important;
}

body.btn-style-1 .reset-danger-btn:hover,
body.btn-style-1 .close-btn:hover,
body.btn-style-1 .style4-menu-btn.menu-danger-btn:hover,
body.btn-style-1 .panel-tab-btn.tab-danger:hover {
    background: rgba(220, 53, 69, 0.25) !important;
    color: #ffffff !important;
}

body.btn-style-1 #btn-restore-and-distribute,
body.btn-style-1 #bulk-action-submit-btn,
body.btn-style-1 .action-btn[onclick*="give"],
body.btn-style-1 .action-btn[onclick*="restore"] {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.15) !important;
    color: #2cd053 !important;
}

body.btn-style-1 #btn-restore-and-distribute:hover,
body.btn-style-1 #bulk-action-submit-btn:hover,
body.btn-style-1 .action-btn[onclick*="give"]:hover,
body.btn-style-1 .action-btn[onclick*="restore"]:hover {
    background: rgba(40, 167, 69, 0.3) !important;
    color: #ffffff !important;
}

/* Style 2: Dashed/Dotted Line Border in Server Color */
body.btn-style-2 .action-btn,
body.btn-style-2 .btn-submit,
body.btn-style-2 .btn-cancel,
body.btn-style-2 .style2-btn,
body.btn-style-2 .sidebar-item,
body.btn-style-2 .header-btn,
body.btn-style-2 .panel-tab-btn,
body.btn-style-2 .style4-menu-btn,
body.btn-style-2 .keybind-badge,
body.btn-style-2 .custom-dropdown .dropdown-selected {
    border: 1.5px dashed var(--primary-color) !important;
    background: rgba(10, 10, 12, 0.7) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

body.btn-style-2 .action-btn:hover,
body.btn-style-2 .btn-submit:hover,
body.btn-style-2 .btn-cancel:hover,
body.btn-style-2 .style2-btn:hover,
body.btn-style-2 .sidebar-item:hover,
body.btn-style-2 .header-btn:hover,
body.btn-style-2 .panel-tab-btn:hover,
body.btn-style-2 .style4-menu-btn:hover {
    background: rgba(var(--primary-color-rgb), 0.15) !important;
    color: #ffffff !important;
    border-style: solid !important;
}

/* Style 2 Red/Danger and Green Overrides */
body.btn-style-2 .reset-danger-btn,
body.btn-style-2 .close-btn,
body.btn-style-2 .style4-menu-btn.menu-danger-btn,
body.btn-style-2 .panel-tab-btn.tab-danger {
    border-color: #ff4d4d !important;
    background: rgba(220, 53, 69, 0.1) !important;
    color: #ff4d4d !important;
}

body.btn-style-2 .reset-danger-btn:hover,
body.btn-style-2 .close-btn:hover,
body.btn-style-2 .style4-menu-btn.menu-danger-btn:hover,
body.btn-style-2 .panel-tab-btn.tab-danger:hover {
    background: rgba(220, 53, 69, 0.25) !important;
    color: #ffffff !important;
    border-style: solid !important;
}

body.btn-style-2 #btn-restore-and-distribute,
body.btn-style-2 #bulk-action-submit-btn,
body.btn-style-2 .action-btn[onclick*="give"],
body.btn-style-2 .action-btn[onclick*="restore"] {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.15) !important;
    color: #2cd053 !important;
}

body.btn-style-2 #btn-restore-and-distribute:hover,
body.btn-style-2 #bulk-action-submit-btn:hover,
body.btn-style-2 .action-btn[onclick*="give"]:hover,
body.btn-style-2 .action-btn[onclick*="restore"]:hover {
    background: rgba(40, 167, 69, 0.3) !important;
    color: #ffffff !important;
    border-style: solid !important;
}

/* Style 3: Futuristic Neon-Shadow glow border */
body.btn-style-3 .action-btn,
body.btn-style-3 .btn-submit,
body.btn-style-3 .btn-cancel,
body.btn-style-3 .style2-btn,
body.btn-style-3 .sidebar-item,
body.btn-style-3 .header-btn,
body.btn-style-3 .panel-tab-btn,
body.btn-style-3 .style4-menu-btn,
body.btn-style-3 .keybind-badge,
body.btn-style-3 .custom-dropdown .dropdown-selected {
    border: 1px solid rgba(var(--primary-color-rgb), 0.5) !important;
    border-radius: 12px !important;
    background: rgba(20, 20, 25, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.35) !important;
    text-shadow: 0 0 5px rgba(var(--primary-color-rgb), 0.5) !important;
    transition: all 0.25s ease !important;
}

body.btn-style-3 .action-btn:hover,
body.btn-style-3 .btn-submit:hover,
body.btn-style-3 .btn-cancel:hover,
body.btn-style-3 .style2-btn:hover,
body.btn-style-3 .sidebar-item:hover,
body.btn-style-3 .header-btn:hover,
body.btn-style-3 .panel-tab-btn:hover,
body.btn-style-3 .style4-menu-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.75) !important;
}

/* Style 3 Red/Danger and Green Overrides */
body.btn-style-3 .reset-danger-btn,
body.btn-style-3 .close-btn,
body.btn-style-3 .style4-menu-btn.menu-danger-btn,
body.btn-style-3 .panel-tab-btn.tab-danger {
    border-color: rgba(255, 77, 77, 0.5) !important;
    background: rgba(40, 10, 10, 0.8) !important;
    color: #ff4d4d !important;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.35) !important;
    text-shadow: 0 0 5px rgba(255, 77, 77, 0.5) !important;
}

body.btn-style-3 .reset-danger-btn:hover,
body.btn-style-3 .close-btn:hover,
body.btn-style-3 .style4-menu-btn.menu-danger-btn:hover,
body.btn-style-3 .panel-tab-btn.tab-danger:hover {
    background: #ff4d4d !important;
    color: #ffffff !important;
    border-color: #ff4d4d !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.75) !important;
}

body.btn-style-3 #btn-restore-and-distribute,
body.btn-style-3 #bulk-action-submit-btn,
body.btn-style-3 .action-btn[onclick*="give"],
body.btn-style-3 .action-btn[onclick*="restore"] {
    border-color: rgba(40, 167, 69, 0.5) !important;
    background: rgba(10, 40, 15, 0.8) !important;
    color: #2cd053 !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.35) !important;
    text-shadow: 0 0 5px rgba(40, 167, 69, 0.5) !important;
}

body.btn-style-3 #btn-restore-and-distribute:hover,
body.btn-style-3 #bulk-action-submit-btn:hover,
body.btn-style-3 .action-btn[onclick*="give"]:hover,
body.btn-style-3 .action-btn[onclick*="restore"]:hover {
    background: #28a745 !important;
    color: #ffffff !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.75) !important;
}

/* Sidebar Active Item Overrides for Styles */
body.btn-style-1 .sidebar-item.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3) !important;
}

body.btn-style-2 .sidebar-item.active {
    border-style: solid !important;
    background: rgba(var(--primary-color-rgb), 0.15) !important;
    color: var(--primary-color) !important;
}

body.btn-style-3 .sidebar-item.active {
    background: rgba(var(--primary-color-rgb), 0.25) !important;
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.8) !important;
}

/* Clickable Permissions Selection Items Grid */
.clickable-perm-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--text-muted) !important;
    font-family: monospace !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.clickable-perm-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.clickable-perm-item.selected {
    background: rgba(var(--primary-color-rgb), 0.12) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* ChangeSystemKey Modal Custom Styling */
#change-system-key-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#change-system-key-overlay .modal {
    background: rgba(10, 10, 12, 0.96) !important;
    border: 1.5px solid var(--primary-color) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(var(--primary-color-rgb), 0.35) !important;
    border-radius: 16px !important;
}

#change-system-key-overlay .modal-header {
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.25) !important;
}

#change-system-key-overlay .modal-footer {
    border-top: 1px solid rgba(var(--primary-color-rgb), 0.25) !important;
}

.key-picker-frame-card {
    background: rgba(18, 18, 22, 0.85);
    border: 1.5px solid rgba(var(--primary-color-rgb), 0.25);
    border-radius: 14px;
    padding: 20px 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.key-picker-frame-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 14px rgba(var(--primary-color-rgb), 0.25);
    background: rgba(22, 22, 28, 0.95);
}

/* Rank Players Modal Card & Checkbox Styling */
.rank-player-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
}

.rank-player-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.rank-player-card.selected {
    background: rgba(var(--primary-color-rgb), 0.14) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 12px rgba(var(--primary-color-rgb), 0.25);
}

.rank-player-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.rank-player-checkbox.checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom Luxury Scrollbar & Revoke Button styling */
#btn-revoke-rank-submit {
    color: #ffffff !important;
}

#btn-revoke-rank-submit:hover,
#btn-revoke-rank-submit:active,
#btn-revoke-rank-submit:focus {
    color: #ffffff !important;
}

#rank-players-list-container::-webkit-scrollbar {
    width: 6px;
}

#rank-players-list-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

#rank-players-list-container::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.45);
    border-radius: 8px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
}

#rank-players-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Points Management Sub-Navigation & DoorLock Styling */
.points-subnav-sidebar {
    overflow-x: hidden !important;
}

.points-subnav-list {
    overflow-x: hidden !important;
}

.points-subnav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
    width: 100%;
}

.points-subnav-item:hover {
    background: rgba(var(--primary-color-rgb), 0.12);
    color: #fff;
    border-color: rgba(var(--primary-color-rgb), 0.35);
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.points-subnav-item.active {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.35);
}

.doorlock-card {
    background: rgba(20, 20, 26, 0.75);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.doorlock-card:hover {
    border-color: rgba(var(--primary-color-rgb), 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--primary-color-rgb), 0.2);
    transform: translateY(-2px);
}

.doorlock-card-status {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.doorlock-card-status.locked {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
}

.doorlock-card-status.unlocked {
    background: rgba(44, 208, 83, 0.15);
    border: 1px solid rgba(44, 208, 83, 0.3);
    color: #2cd053;
}

.doorlock-layout-btn.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

#doorlock-cards-container::-webkit-scrollbar,
#doorlock-auth-items-scroll::-webkit-scrollbar,
.points-subnav-list::-webkit-scrollbar {
    width: 6px;
}

#doorlock-cards-container::-webkit-scrollbar-thumb,
#doorlock-auth-items-scroll::-webkit-scrollbar-thumb,
.points-subnav-list::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.4);
    border-radius: 6px;
}

/* Custom Checkbox */
.custom-chk-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.custom-chk-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-chk-box {
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--glass-border);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.custom-chk-container:hover input~.custom-chk-box {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-chk-container input:checked~.custom-chk-box {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-chk-box:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-chk-container input:checked~.custom-chk-box:after {
    display: block;
}

/* Tooltip System */
.action-btn-wrapper {
    position: relative;
    display: inline-block;
}

.custom-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(14, 14, 18, 0.95);
    border: 1px solid var(--glass-border);
    color: #fff;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.action-btn-wrapper:hover .custom-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Custom Dropdown for Layout */
.custom-layout-dropdown {
    position: relative;
}

.custom-dropdown-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Keycap Badge Styling for HUDs */
.keycap-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    padding: 2px 7px;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    display: inline-block;
    text-transform: uppercase;
}

.hud-divider {
    display: inline-block;
    width: 1.5px;
    height: 14px;
    background: rgba(220, 220, 230, 0.7);
    margin: 0 10px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(200, 200, 210, 0.8);
    border-radius: 1px;
}

/* Doorlock Container Zero-Scroll Grid Layout */
#doorlock-cards-container {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    gap: 12px !important;
    align-content: start !important;
    overflow: hidden !important;
}

/* Layout 1: Grid View (3 columns x 2 rows = 6 slots) */
.doorlock-grid-layout {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
}

/* Layout 2: Modern List View (1 column x 8 rows = 8 slots) */
.doorlock-list-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(8, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
}

/* Layout 3: Luxury View (العرض الفاخر - 2 columns x 3 rows = 6 slots) */
.doorlock-luxury-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
}

/* Luxury card styling */
.doorlock-card.layout-luxury {
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.85), rgba(12, 12, 16, 0.95));
    border: 1.5px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 14px;
    padding: 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.doorlock-card.layout-luxury.locked-card {
    border-color: rgba(255, 77, 77, 0.25);
}

.doorlock-card.layout-luxury.unlocked-card {
    border-color: rgba(44, 208, 83, 0.25);
}

.doorlock-card.layout-luxury:hover {
    transform: translateY(-3px);
}

.doorlock-card.layout-luxury.locked-card:hover {
    border-color: rgba(255, 77, 77, 0.6);
    box-shadow: 0 12px 30px rgba(255, 77, 77, 0.15), 0 0 15px rgba(255, 77, 77, 0.1);
}

.doorlock-card.layout-luxury.unlocked-card:hover {
    border-color: rgba(44, 208, 83, 0.6);
    box-shadow: 0 12px 30px rgba(44, 208, 83, 0.15), 0 0 15px rgba(44, 208, 83, 0.1);
}

/* Yellow Luxury Border for Wait State */
.doorlock-card.wait-card,
.doorlock-card.layout-luxury.wait-card {
    border: 2px solid #eab308 !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.45), inset 0 0 10px rgba(234, 179, 8, 0.15) !important;
}

/* Custom Toggle Switch */
.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.switch-container input:checked+.switch-slider {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.switch-container input:checked+.switch-slider:before {
    transform: translateX(22px);
}