/*=============================================================================
 * 文件名称: app.css
 * 文件描述: 编辑器Web版全局样式与布局
 * 作者: King
 * 版本:
 * 日期:
 * 说明:
 *============================================================================*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "微软雅黑", sans-serif;
    background-color: #15171e;
    color: #f5f5f5;
}

.editor-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    flex: 0 0 32px;
    background: linear-gradient(90deg, #20232b, #181a22);
    border-bottom: 1px solid #2c3140;
}

.editor-header__left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border-radius: 6px;
    background: radial-gradient(circle at 20% 20%, #4fd1c5, #3182ce 60%, #ffffff);
    font-size: 14px;
    font-weight: bold;
}

.editor-title {
    font-size: 15px;
    font-weight: 600;
}

.editor-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-tab {
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    color: #d0d6e4;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-tab:hover {
    background-color: #2b3243;
}

.nav-tab--active {
    background-color: #3182ce;
    color: #ffffff;
}

.editor-header__right {
    display: flex;
    gap: 8px;
}

.editor-btn {
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    border: 1px solid #3a4153;
    background-color: #202532;
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.editor-btn:hover {
    background-color: #252b3a;
}

.editor-btn--primary {
    background: linear-gradient(135deg, #3182ce, #4fd1c5);
    border-color: #4299e1;
    color: #0f172a;
    font-weight: 600;
}

.editor-btn--primary:hover {
    background: linear-gradient(135deg, #2b6cb0, #38b2ac);
}

.editor-main {
    flex: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    grid-template-rows: minmax(0, 1fr);
    gap: 8px;
    padding: 8px 8px 4px;
    background: radial-gradient(circle at top, #1f2933 0, #111827 55%, #050509 100%);
}

.editor-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.editor-sidebar--right {
    gap: 10px;
}

.editor-center {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.panel--right {
    display: flex;
    flex-direction: column;
    background-color: rgba(15, 23, 42, 0.96);
    border-radius: 6px;
    border: 1px solid #2c3140;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    min-height: 0;
    height: 401px;
}

.panel {
    display: flex;
    flex-direction: column;
    background-color: rgba(15, 23, 42, 0.96);
    border-radius: 6px;
    border: 1px solid #2c3140;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    min-height: 0;
}

.panel--props-fixed .panel__body {
    height: 360px;
    overflow-y: auto;
}

.panel--fill {
    flex: 1;
}

.panel__header {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
    background: linear-gradient(90deg, #111827, #020617);
    border-bottom: 1px solid #2c3140;
}

.panel__body {
    flex: 1;
    padding: 8px;
    overflow: auto;
    font-size: 13px;
}

.panel__body--canvas {
    padding: 0;
    background: radial-gradient(circle at center, #111827 0, #020617 65%);
    flex: 0 0 823px;
    max-height: 823px;
    overflow: hidden;
}

.panel__body--minimap {
    padding: 4px;
    background-color: #020617;
    overflow: hidden;
}

.editor-footer {
    height: 24px;
    border-top: 1px solid #2c3140;
    background-color: #0b1020;
    padding: 4px 10px;
}

.editor-footer__log {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-placeholder {
    opacity: 0.75;
}

.map-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 807px;
    overflow-y: auto;
    overflow-x: hidden;
}

.map-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #e5e7eb;
    background-color: transparent;
    transition: background-color 0.12s ease;
}

.map-list__item:hover {
    background-color: #2563eb;
}

.map-list__item--active {
    background-color: #2563eb;
}

.map-list__item--active .map-list__name {
    font-weight: 600;
}

.map-list__name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-list__tag {
    margin-left: 6px;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    line-height: 1.4;
}

.map-list__tag--warn {
    background-color: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.map-props {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.map-props__row {
    display: flex;
    align-items: center;
}

.map-props__label {
    width: 60px;
    color: #9ca3af;
}

.map-props__value {
    flex: 1;
    color: #e5e7eb;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-grid {
    margin-top: 10px;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.map-grid__title {
    color: #9ca3af;
    font-weight: 600;
}

.map-grid__row {
    display: flex;
    align-items: center;
}

.map-grid__row--actions {
    justify-content: flex-end;
}

.map-grid__label {
    width: 60px;
    color: #9ca3af;
}

.map-grid__input {
    flex: 1;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #374151;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 12px;
}

.editor-input {
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #374151;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 12px;
}

.editor-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
}

.editor-select {
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #374151;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 12px;
}

.editor-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
}

.editor-checkbox {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    cursor: pointer;
    border-radius: 3px;
    border: 1px solid #4b5563;
    background-color: #020617;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    position: relative;
}

.editor-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
    border-color: #3b82f6;
}

.editor-checkbox:checked {
    background-color: #3b82f6;
    border-color: #60a5fa;
}

.editor-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 1px;
    width: 6px;
    height: 9px;
    border-right: 2px solid #020617;
    border-bottom: 2px solid #020617;
    transform: rotate(45deg);
}

.editor-file-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.editor-file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 120px;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.editor-file-name {
    font-size: 12px;
    color: #9ca3af;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-grid__btn {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #3b82f6;
    background-color: #1d4ed8;
    color: #e5e7eb;
    font-size: 12px;
    cursor: pointer;
}

.map-grid__btn:hover {
    background-color: #2563eb;
}

.map-grid__btn__map {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #3b82f6;
    background-color: #1d4ed8;
    color: #e5e7eb;
    font-size: 12px;
    cursor: pointer;
    margin-right: 4px;
}

.map-grid__btn__map:hover {
    background-color: #2563eb;
}

.map-brush {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.map-brush__title {
    color: #9ca3af;
    font-weight: 600;
}

.map-brush__row {
    display: flex;
    gap: 4px;
}

.map-brush__btn {
    flex: 1;
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid #374151;
    background-color: #020617;
    color: #e5e7eb;
    font-size: 12px;
    cursor: pointer;
}

.map-brush__btn--active {
    border-color: #facc15;
    box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.8);
}

.map-brush__btn[data-brush="block"] {
    background-color: rgba(239, 68, 68, 0.8) !important;
    border-color: rgba(239, 68, 68, 1) !important;
}

.map-brush__btn[data-brush="alpha"] {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(156, 163, 175, 1) !important;
    color: #020617 !important;
}

.map-brush__btn[data-brush="water"] {
    background-color: rgba(34, 197, 94, 0.8) !important;
    border-color: rgba(34, 197, 94, 1) !important;
}

.map-brush__btn[data-brush="nopri"] {
    background-color: rgba(249, 115, 22, 0.8) !important;
    border-color: rgba(249, 115, 22, 1) !important;
}

.map-brush__btn[data-brush="nopri_alpha"] {
    background-color: rgba(59, 130, 246, 0.8) !important;
    border-color: rgba(59, 130, 246, 1) !important;
}

.map-brush__btn[data-brush="erase"] {
    background-color: #020617 !important;
    border-style: dashed !important;
}

.map-cell {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.map-cell__title {
    color: #9ca3af;
    font-weight: 600;
}

.map-cell__row {
    display: flex;
    align-items: center;
}

.map-cell__label {
    width: 60px;
    color: #9ca3af;
}

.map-cell__value {
    flex: 1;
    color: #e5e7eb;
}

.map-canvas-root {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.map-canvas-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
}

.map-canvas__img {
    display: block;
    image-rendering: pixelated;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #111827;
}

.slice-preview-canvas {
    display: block;
    border: 1px solid #4b5563;
    background-color: #000000;
}

#slice-preview-wrapper {
    position: relative;
}

.map-canvas__grid {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
    cursor: crosshair;
}

.editor-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #e5e7eb;
}

.editor-loading-box {
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #020617;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #111827;
}

.editor-loading-text {
    margin-bottom: 6px;
    color: #9ca3af;
    text-align: center;
}

.editor-loading-bar {
    width: 220px;
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
    background-color: #111827;
}

.editor-loading-bar__inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
}

@keyframes editor-loading-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(260%);
    }
}

.map-canvas-wrap--hidden {
    display: none;
}

.map-minimap-window {
    width: 100%;
    height: 220px;
    display: flex;
    flex-direction: column;
}

.map-minimap-header {
    height: 20px;
    padding: 2px 6px;
    font-size: 11px;
    color: #9ca3af;
    background-color: #020617;
    border-bottom: 1px solid #111827;
    cursor: default;
    user-select: none;
}

.map-minimap-canvas {
    flex: 0 0 auto;
    display: block;
    width: 100%;
    height: 200px;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.event-list__item {
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.12s ease;
}

.event-list__item:hover {
    background-color: #2563eb;
}

.event-list__item--active {
    background-color: #2563eb;
}

.event-list__name {
    font-weight: 600;
    color: #e5e7eb;
}

.event-list__desc {
    margin-top: 1px;
    color: #9ca3af;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campaign-trigger-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.campaign-trigger-item__name {
    flex: 1 1 auto;
}

.campaign-trigger-item__name .campaign-trigger-name-input {
    width: 100%;
}

.campaign-trigger-item__status,
.campaign-trigger-item__delete {
    flex: 0 0 auto;
}

.campaign-global-unit-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.campaign-global-unit-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
}

.campaign-global-unit-text {
    flex: 1 1 auto;
    margin-top: 1px;
    color: #9ca3af;
    font-size: 11px;
    white-space: normal;
}

.campaign-global-unit-view-btn {
    flex: 0 0 auto;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

.campaign-global-var-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.campaign-global-var-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-radius: 4px;
}

.campaign-global-var-text {
    flex: 1 1 auto;
    margin-top: 1px;
    color: #9ca3af;
    font-size: 11px;
    white-space: normal;
}

.campaign-global-var-view-btn {
    flex: 0 0 auto;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
}

.campaign-mapqueue {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    max-width: 100%;
    overflow-y: auto;
    width: 300px;
}

.campaign-mapqueue-item {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 215px;
}

.campaign-mapqueue-item .campaign-mapqueue-input {
    flex: 1 1 auto;
}

.campaign-mapqueue-item .campaign-mapqueue-del-btn {
    flex: 0 0 auto;
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    font-size: 12px;
    color: #e5e7eb;
}

.event-detail__title {
    font-size: 14px;
    font-weight: 600;
}

.event-detail__desc {
    color: #cbd5f5;
}

.event-detail__args-title {
    margin-top: 4px;
    font-weight: 600;
    color: #9ca3af;
}

.event-detail__args-empty {
    color: #6b7280;
    font-size: 12px;
}

.event-detail__args-list {
    margin: 0;
    padding-left: 16px;
}

.event-detail__args-item {
    margin: 2px 0;
}

.event-props {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.event-props__row {
    display: flex;
    align-items: center;
}

.event-props__label {
    width: 70px;
    color: #9ca3af;
}

.event-props__value {
    flex: 1;
    color: #e5e7eb;
}

.campaign-file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.campaign-file-list__item {
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.12s ease;
}

.campaign-file-list__item:hover {
    background-color: #2563eb;
}

.campaign-file-list__item--active {
    background-color: #2563eb;
}

.campaign-file-list__name {
    color: #e5e7eb;
    font-weight: 600;
}

.campaign-main {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
}

.campaign-header {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #1f2937;
    background-color: #020617;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.campaign-header__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-header__field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.campaign-header__field label {
    color: #9ca3af;
    min-width: auto;
}

.campaign-header__field input,
.campaign-header__field select {
    min-width: 100%;
}

.campaign-header__actions {
    margin-left: 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.campaign-body {
    flex: 1;
    border-radius: 4px;
    border: 1px solid #1f2937;
    background-color: #020617;
    padding: 6px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 170px;
    row-gap: 6px;
    height: 100%;
}

.campaign-body-top {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    gap: 6px;
}

.campaign-body-bottom {
    display: flex;
    gap: 6px;
}

.campaign-body-bottom .campaign-panel {
    flex: 1 1 0;
    min-width: 0;
}

.campaign-panel {
    border-radius: 4px;
    border: 1px solid #111827;
    background-color: #020617;
    font-size: 12px;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
}

.campaign-panel__title {
    padding: 4px 6px;
    border-bottom: 1px solid #111827;
    font-weight: 600;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.campaign-panel__body {
    flex: 1;
    padding: 6px;
    overflow: auto;
}

.campaign-panel__title button {
    margin-left: 4px;
}

.campaign-logic-tree {
    font-size: 12px;
    line-height: 1.4;
    color: #e5e7eb;
}

.logic-node {
    padding: 2px 4px;
}

.logic-node__label {
    white-space: normal;
    word-break: break-all;
}

.logic-node--root {
    font-weight: 600;
    color: #e5e7eb;
}

.logic-node-children {
    margin-top: 4px;
    padding-left: 10px;
    border-left: 1px solid #1f2937;
}

.logic-node--group {
    margin-top: 2px;
    font-weight: 600;
    color: #9ca3af;
}

.logic-node--leaf {
    margin-left: 20px;
    color: #e5e7eb;
}

.logic-node--if-header {
    margin-left: 45px;
}

.logic-node--if-child {
    margin-left: 70px;
}

.logic-node--leaf:hover {
    background-color: #020617;
}

.logic-node--empty {
    color: #6b7280;
    font-style: italic;
}

.logic-arg-editable {
    color: #22c55e;
    cursor: pointer;
}

.logic-arg-editable:hover {
    text-decoration: underline;
}

.logic-arg-placeholder {
    color: #f97373;
    cursor: pointer;
}

.logic-arg-placeholder:hover {
    text-decoration: underline;
}

.logic-arg-special {
    color: #f97373;
}

.campaign-global-unit-list .logic-arg-editable,
.campaign-global-unit-list .logic-arg-placeholder,
.campaign-global-var-list .logic-arg-editable,
.campaign-global-var-list .logic-arg-placeholder {
    cursor: default;
    text-decoration: none;
}

.campaign-global-unit-list .logic-arg-editable:hover,
.campaign-global-unit-list .logic-arg-placeholder:hover,
.campaign-global-var-list .logic-arg-editable:hover,
.campaign-global-var-list .logic-arg-placeholder:hover {
    text-decoration: none;
}

.campaign-logic-menu {
    position: fixed;
    z-index: 9999;
    min-width: 120px;
    background-color: #020617;
    border: 1px solid #1f2937;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
    padding: 4px 0;
    font-size: 12px;
    color: #e5e7eb;
}

.campaign-logic-menu__item {
    padding: 4px 10px;
    cursor: pointer;
}

.campaign-logic-menu__item:hover {
    background-color: #111827;
}

.campaign-logic-selector-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.campaign-logic-selector {
    width: 420px;
    max-height: 480px;
    border-radius: 4px;
    border: 1px solid #1f2937;
    background-color: #020617;
    display: flex;
    flex-direction: column;
}

.campaign-logic-selector__header {
    padding: 6px 8px;
    border-bottom: 1px solid #111827;
    font-weight: 600;
    color: #e5e7eb;
}

.campaign-logic-selector__body {
    flex: 1;
    padding: 4px 8px;
    overflow: auto;
}

.campaign-logic-selector__item {
    padding: 4px 4px;
    border-radius: 3px;
    cursor: pointer;
}

.campaign-logic-selector__item:hover {
    background-color: #111827;
}

.campaign-logic-selector__item-title {
    color: #e5e7eb;
}

.campaign-logic-selector__item-desc {
    color: #9ca3af;
    font-size: 11px;
}

.campaign-logic-selector__footer {
    padding: 4px 8px;
    border-top: 1px solid #111827;
    text-align: right;
}

.trigger-btn {
    border-radius: 4px;
    padding: 2px 9px;
    font-size: 13px;
    border: 1px solid #3a4153;
    background-color: #202532;
    color: #e2e8f0;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.trigger-btn:hover {
    background-color: #252b3a;
}

.trigger-btn--primary {
    background: linear-gradient(135deg, #3182ce, #4fd1c5);
    border-color: #4299e1;
    color: #0f172a;
    font-weight: 600;
}

.trigger-btn--primary:hover {
    background: linear-gradient(135deg, #2b6cb0, #38b2ac);
}


/* 全局滚动条美化样式 - 仅在PC端显示(参考fore-end uni.css, 适配深色主题) */
@media (pointer: fine) {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #020617;
        border-radius: 6px;
        box-shadow: inset 0 0 2px rgba(15, 23, 42, 0.7);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #4b5563 0%, #111827 100%);
        border-radius: 6px;
        border: 1px solid #020617;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transition: all 0.2s ease;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #6b7280 0%, #1f2937 100%);
        border-color: #111827;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    ::-webkit-scrollbar-thumb:active {
        background: linear-gradient(180deg, #374151 0%, #020617 100%);
        border-color: #000000;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
    }

    ::-webkit-scrollbar-corner {
        background: #020617;
    }
}
