/* Radial Menu Styles */
#radial-menu {
    position: fixed;
    width: 0;
    height: 0;
    z-index: 99999;
    display: none;
}

/* Center Button - Acts as Back/Close and Title */
.center-control {
    position: absolute;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #555;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.center-control:hover {
    border-color: #0984e3;
    background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
    transform: translate(-50%, -50%) scale(1.1);
}

.center-control span {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 2px;
    color: #aaa;
    font-weight: 600;
}

.center-control i {
    font-size: 20px;
    color: #fff;
}

/* Satellite Items - Positioned via top/left */
.menu-item {
    position: absolute;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #333 0%, #444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    border: 2px solid #555;

    /* Center the item on its coordinate */
    margin-left: -27.5px;
    margin-top: -27.5px;

    /* Start small for animation */
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        opacity 0.3s,
        background 0.3s,
        border-color 0.3s;
}

.menu-item i {
    font-size: 20px;
    color: #fff;
    transition: transform 0.2s;
}

/* Stable Hover Effect */
.menu-item:hover {
    background: linear-gradient(135deg, #0984e3 0%, #0652dd 100%);
    border-color: #74b9ff;
    transform: scale(1.2) !important;
    z-index: 5;
}

.menu-item:hover i {
    transform: scale(1.1);
}

/* Items with sub-menus */
.has-submenu {
    border: 2px solid #fdcb6e;
    background: linear-gradient(135deg, #444 0%, #555 100%);
}

.has-submenu:hover {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    border-color: #ffeaa7;
}

.has-submenu:hover i {
    color: #222;
}

/* Danger/Delete items */
.menu-item-danger {
    background: linear-gradient(135deg, #d63031 0%, #b71c1c 100%);
    border-color: #e74c3c;
}

.menu-item-danger:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #ff7675;
}

/* Success/Create items */
.menu-item-success {
    background: linear-gradient(135deg, #00b894 0%, #00a784 100%);
    border-color: #55efc4;
}

.menu-item-success:hover {
    background: linear-gradient(135deg, #00cec9 0%, #00b8d4 100%);
    border-color: #81ecec;
}

/* Tooltip Text */
.menu-item::before {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.menu-item:hover::before {
    opacity: 1;
}

/* Animation classes */
.menu-item.show {
    opacity: 1;
    transform: scale(1);
}

/* Overlay to capture outside clicks */
#radial-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    display: none;
    background: transparent;
}

.card-wrapper.card-highlighted {
    outline: 3px solid #0984e3;
    outline-offset: 2px;
    box-shadow: 0 0 20px rgba(9, 132, 227, 0.5);
    transform: scale(1.02);
    transition: all 0.2s ease;
    z-index: 10;
    position: relative;
}

/* Admin items */
.menu-item-admin {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
    border-color: #9b59b6;
}

.menu-item-admin:hover {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border-color: #d7bde2;
}