:root {
    --bg-app: rgba(0, 0, 0, 0.4);
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --primary: #475569;
    --primary-hover: #1e293b;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --text-inverse: #f8fafc;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --menu-radius: 160px;
    --item-size: 80px;
}

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

body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    height: 100vh;
    width: 100vw;
    background: var(--bg-app);
    color: var(--text-main);
    line-height: 1.4;
    overflow: hidden;
}

#app {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radial Menu Container */
.radial-menu {
    position: relative;
    width: calc(var(--menu-radius) * 2 + var(--item-size));
    height: calc(var(--menu-radius) * 2 + var(--item-size));
}

/* Center Hub */
.radial-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: var(--bg-surface);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;

    &:hover {
        background: var(--bg-surface-hover);
        border-color: var(--primary);
        transform: translate(-50%, -50%) scale(1.05);
    }

    .center-icon {
        font-size: 1.25rem;
        margin-bottom: 0.15rem;
    }

    .center-label {
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
}

/* Menu Items */
.radial-item {
    position: absolute;
    width: var(--item-size);
    height: var(--item-size);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    text-align: center;

    &:hover {
        background: var(--bg-surface-hover);
        border-color: var(--primary);
        transform: scale(1.15);
        box-shadow: var(--shadow-lg);
        z-index: 5;

        .radial-item-title {
            color: var(--primary-hover);
        }
    }

    &:active {
        transform: scale(0.95);
    }
}

.radial-item-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.radial-item-title {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    transition: color 0.2s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Tooltip */
.radial-tooltip {
    position: fixed;
    background: var(--primary-hover);
    color: var(--text-inverse);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 100;
    box-shadow: var(--shadow-lg);

    &.visible {
        opacity: 1;
    }

    .tooltip-title {
        font-weight: 600;
    }

    .tooltip-description {
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: 0.15rem;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    p {
        font-size: 0.9rem;
    }
}
