:root {
    --line-color: rgb(15 23 42 / 8%);

    --text-color-primary: rgb(15 23 42);
    --text-color-secondary: rgb(100 116 139);

    --animation-speed: 0.3s;
}

html,
body {
    font-family: Inter var, ui-sans-serif, system-ui, sans-serif;
    color: var(--text-color-primary);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.app {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 260px; /* Space for the menu */
    padding-right: 20px;
}

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgb(255 255 255);
    border-right: 1px solid var(--line-color);
    margin: 0;

    li {
        margin: 14px 0;
        margin-left: 20px;

        &::marker {
            color: var(--text-color-secondary);
        }
    }

    .menu-item-group:not(:first-child) {
        padding-top: 14px;
        border-top: 1px solid var(--line-color);
    }
}

.link {
    font-size: 14px;
    color: var(--text-color-secondary);
    text-decoration: none;
    transition: color var(--animation-speed);

    &:hover {
        color: var(--text-color-primary);
    }

}

.title {
    letter-spacing: 2px;
    margin-left: 8px;
    font-size: 2rem;

    &:not(:first-child) {
        padding-top: 3rem;
        margin-top: 3rem;
        border-top: 1px solid var(--line-color);
    }
}


.icons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;

    &:last-child {
        margin-bottom: 40px;
    }
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 140px;
    margin-top: 20px;
}

.icon-content {
    position: relative;
    padding: 54px;
    box-sizing: content-box;
    border: 1px solid var(--line-color);
    border-radius: 8px;
}

.icon-svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.icon-name {
    font-size: 14px;
    margin-top: 10px;
    color: var(--text-color-secondary);
    overflow-wrap: anywhere;
}

.icon-copy-wrapper {
    opacity: 0;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 4px;
    transition: opacity var(--animation-speed);

    &:hover {
        opacity: 1;
    }
}

.icon-copy {
    position: absolute;
    left: 0;
    right: 0;
    height: 62px;
    color: var(--text-color-secondary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(248,250,252,.94);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--animation-speed);

    &:hover {
        background: rgba(226, 232, 240, .8);
    }
}

.icon-copy.icon-copy-done {
    background: rgba(22, 163, 74, 0.9);
    color: #fff;
}

.icon-copy-top {
    top: 0;
}

.icon-copy-bottom {
    bottom: 0;
}
