@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');


body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: lato, sans-serif;
    background-color: #101011;
}

#canvas {
    background-color: #101011;
    cursor: crosshair;
}

#instructions {
    color: rgb(174, 171, 171);
    position: absolute;
    top: 65px;
    transform: translateX(-50% -50%);
    width: 100%;
    font-size: small;
    text-align: center;
}

.toolbar {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.toolbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #202025;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 5px 15px;
    display: flex;
    gap: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.toolbar-divider {
    width: 1px;
    height: 30px;
    background-color: #5c5c5c84;
    margin: auto 0;
}

.search-dropdown {
    position: fixed;
    top: 75px;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    width: 300px;
    background: #202025;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-dropdown.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #31303B;
    border-radius: 15px;
    padding: 8px 15px;
    margin-bottom: 10px;
}

.search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    outline: none;
    font-size: 14px;
}

.search-input-wrapper input::placeholder {
    color: #818181;
}

.search-input-wrapper i {
    color: #818181;
    cursor: pointer;
    padding: 5px;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
    padding-bottom: 5px;
}

.search-results::-webkit-scrollbar {
    width: 5px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #31303B;
    border-radius: 10px;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
    margin: 0 5px;
}

.search-item:hover {
    background: #31303B;
}

.search-item i,
.search-item ion-icon {
    margin-right: 10px;
    font-size: 18px;
}

.search-item .color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 10px;
}

.search-category {
    color: #818181;
    font-size: 12px;
    text-transform: uppercase;
    padding: 8px 10px 4px;
    letter-spacing: 0.5px;
}

.tool {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.tool:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

.tool.active {
    background-color: #3182ED;
}

.color-palate {
    position: fixed;
    top: 20px;
    background-color: #202025;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
    position: fixed;
    right: 20px;
    padding: 5px 5px;
    display: flex;
    font-size: 20px;
}

.colorpalatebtn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.colorpalatebtn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

#colorpalatebtn.active {
    transform: scale(1.1);
}

.floating-tab {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.floating-tab {
    position: fixed;
    width: 180px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    right: 20px;
    top: 90px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-tab.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.color-grid::-webkit-scrollbar {
    display: none;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-bottom: 2px;
    padding-top: 4px;
    height: 110px;
    overflow-y: auto;
}

.color-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    border: 2px solid #ffffff;
}

.width-opacity-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.width-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin: 5px 0;
}

.width-btn {
    width: 35px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #31303B;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    backdrop-filter: blur(5px);
}

.width-btn:hover {
    transform: scale(1.1);
    background: #31303B;
}

.width-btn.active {
    background: #3182ED;
}

.opacity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    margin: 5px 0;
    width: 100%;
}

.opacity-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #818181;
    border-radius: 12px;
}

.opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3182ED;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#opacity-value {
    color: white;
    font-size: 0.8em;
    min-width: 40px;
    top: 80%;
}

.section-header {
    color: #9b9b9b;
    font-size: 12px;
    font-weight: 500;
    font-style: normal;
    margin-top: 8px;
    margin-bottom: 8px;
}

.shape-grid::-webkit-scrollbar {
    display: none;
}

.shape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 130px;
    overflow-y: auto;
    padding-top: 2px;
    padding-bottom: 2px;
}

.shape-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 10px;
    background: #31303B;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fill-grid::-webkit-scrollbar {
    display: none;
}

.fill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.fill-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 10px;
    background: #31303B;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fill-btn img {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.fill-btn:hover img {
    filter: brightness(0) invert(1) opacity(0.8);
}

.fill-btn.active img {
    filter: brightness(0) invert(1);
}

.theme-toggle {
    background-color: #202025;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
    top: 92%;
    position: fixed;
    right: 11.5%;
    padding: 5px 5px;
    display: flex;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.theme-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

.undoredo {
    background-color: #202025;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
    gap: 10px;
    left: 20px;
    position: fixed;
    top: 92%;
    display: flex;
    padding: 5px 6px;
}

.undo-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-right: 10px;
}

.undo-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}


.redo-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-left: 10px;
}

.redo-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}


.delete {
    background-color: #202025;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 92%;
    left: 10.5%;
    display: flex;
    padding: 5px 5px;
}

.delete-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.delete-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

.zoom-toolbar {
    position: fixed;
    background-color: #202025;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
    padding: 5px 8px;
    display: flex;
    top: 92%;
    right: 20px;
    gap: 25px;
}

#zoom-percentage {
    position: fixed;
    color: white;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    padding: 5px 5px;
    justify-content: center;
    align-items: center;
    font-size: smaller;
}

.zoom-in-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-right: 15px;
}

.zoom-in-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

.zoom-out-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    transform-origin: center;
    margin-left: 15px;
}

.zoom-out-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

#textInput {
    position: fixed;
    display: none;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    outline: none;
    caret-color: white;
    resize: both;
    min-height: none;
    min-width: none;
    max-height: 800px;
    max-width: 800px;
    white-space: pre-wrap;
    overflow: hidden;
    transform-origin: top left;
    will-change: transform;
    line-height: 1.2;
}

#textInput:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

#angleInfo {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(64, 97, 237, 0.4), rgba(134, 67, 230, 0.4));
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 15px;
    display: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.sidebar {
    position: fixed;
    background-color: #202025;
    backdrop-filter: blur(20px);
    border-radius: 10px;
    transition: all 0.3s ease, transform 0.3s ease;
    top: 20px;
    left: 20px;
    padding: 5px 5px;
    display: flex;
    font-size: 20px;
}

.sidebar-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 30%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.sidebar-btn:hover {
    background-color: #31303B;
    transform: scale(1.1);
}

.sidebar-dropdown {
    position: fixed;
    top: 90px;
    left: 20px;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sidebar-content {
    padding: 8px;
    max-height: 462px;
    overflow-y: auto;
}

.sidebar-content::-webkit-scrollbar {
    display: none;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-section h4 {
    margin: 0;
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.floating-tab {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.menu-item,
.menu-item span,
.menu-item .shortcut {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 8px;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.menu-item:hover {
    background: rgba(202, 195, 195, 0.1);
    border-radius: 7px;
}

.menu-item i {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
}

.menu-item a {
    text-decoration: none;
    color: white;
    flex: 1;
}

.menu-item span {
    flex: 1;
}

.menu-item .shortcut {
    flex: none;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 16px;
}


.account-card {
    display: none;
    /* Add this line to hide the card */
    background-color: #252529;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    border: 1px solid rgb(48, 48, 48);
}

.profile-section {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
    text-wrap: wrap;
}

.username {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 2px;
    text-wrap: wrap;
}

.actions-section {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    gap: 45px;
}

.settings-btn {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 6px 8px;
    font-size: 11.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.2s ease;
}

.settings-btn:hover {
    background: rgba(179, 177, 177, 0.363);
}

.logout-btn {
    color: #ff4444;
    font-weight: 500;
    font-size: 11.5px;
    background: #ff444441;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.462);
}

#colorpalatebtn.active {
    transform: scale(1.1);
}

.sub-dropdown {
    position: fixed;
    left: 40%;
    top: 90px;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    /* Reduced transition time */
    z-index: 2001;
    padding: 8px;
}

.view-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    padding: 8px;
    top: 60px;
    left: 200px;
}

#view-menu:hover .view-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.view-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.export-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    padding: 8px;
    top: 90px;
    left: 200px;
}

#export-menu:hover .export-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.export-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.edit-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    padding: 8px;
    top: 20px;
    left: 200px;
}

#edit-menu:hover .edit-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.edit-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.layout-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    padding: 8px;
    top: 200px;
    left: 200px;
}

#layout-menu:hover .layout-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.layout-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    padding: 8px;
    top: 130px;
    left: 200px;
    max-height: 400px;
    overflow: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.language-dropdown::-webkit-scrollbar {
    display: none;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    transition: background 0.2s;
}

.language-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-icon {
    font-weight: 400;
    margin-left: 8px;
    display: flex;
    font-size: 13px;
    color: #888;
}

#language-menu:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.language-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.keyboard-dropdown {
    position: fixed;
    width: 200px;
    background: rgba(32, 32, 37, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    padding: 12px;
    top: 160px;
    left: 200px;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.keyboard-dropdown::-webkit-scrollbar {
    display: none;
}

.keyboard-section {
    margin-bottom: 12px;
}

.keyboard-section h4 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 0 4px;
    letter-spacing: 0.04em;
}

.keyboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    transition: background 0.2s;
}

.keyboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.keyboard-item .key-combo {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#keyboard-menu:hover .keyboard-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.keyboard-dropdown:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}