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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', 'Segoe UI Semibold', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

.hidden {
    display: none !important;
}

.context-menu {
    position: fixed;
    background: linear-gradient(180deg, rgba(30, 50, 80, 0.98) 0%, rgba(20, 35, 60, 0.98) 100%);
    border: 1px solid rgba(100, 150, 200, 0.3);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 200px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(20px);
    z-index: 10000;
    animation: contextMenuIn 0.15s ease;
}

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

.context-menu ul {
    list-style: none;
}

.context-menu li {
    padding: 8px 28px 8px 14px;
    font-size: 12px;
    color: #e8eef4;
    cursor: pointer;
    position: relative;
    transition: all 0.1s ease;
    border-radius: 3px;
    margin: 1px 5px;
}

.context-menu li:hover {
    background: linear-gradient(90deg, #1e5a9e 0%, #2874e6 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(40, 116, 230, 0.3);
}

.context-menu li.separator {
    padding: 6px 14px;
    border-bottom: 1px solid rgba(100, 150, 200, 0.2);
    margin: 4px 10px;
    cursor: default;
}

.context-menu li.separator:hover {
    background: transparent;
    color: #e8eef4;
    box-shadow: none;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c8d6e8 0%, #a3bcd4 100%);
    border-radius: 6px;
    border: 2px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b8c6d8 0%, #93acC4 100%);
}

::selection {
    background: rgba(40, 116, 230, 0.3);
    color: #1a1a1a;
}
