:host {
    display: block;
    width: 100%;
    height: 100%;
}


.item-menu {
    background-color: rgba(25, 114, 114, 0.8);
    padding: 4pt;
    font-size: 0.8rem;
    z-index: 1000;
    box-shadow: 0 0 12pt rgba(255, 255, 255, 0.25);
    border-radius: 4pt;
    padding: 0.1em 0 0.1em 0;
    animation: fadeIn 0.1s ease-out;
    opacity: 1;
    display: block;
    max-width: 100%;
    min-width: 150px;
    position: absolute;


    /* Grid arka plan animasyonu */
    background:
        linear-gradient(rgba(0, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(270deg, rgba(0, 127, 127, 0.7), rgba(0, 200, 200, 0.8), rgba(0, 127, 127, 0.7));
    background-size: 5px 5px, 5px 5px, 600% 600%;


    /* Neon border animasyonu */
    animation-name: neon-border;
    animation-duration: 2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;

    box-shadow: 0 0 12px rgba(0, 255, 255, 0.5);

    /* Neon border animasyonu */
    @keyframes neon-border {
        0% {
            border-color: rgba(0, 255, 255, 0.3);
            box-shadow:
                0 0 5px rgba(0, 255, 255, 0.5),
                0 0 15px rgba(0, 255, 255, 0.4);
        }

        100% {
            border-color: rgba(0, 255, 255, 1);
            box-shadow:
                0 0 15px rgba(0, 255, 255, 1),
                0 0 30px rgba(0, 255, 255, 0.8);
        }
    }

}

.icon {
    font-size: 1em;
}

.ui.circular.label,
.ui.circular.labels .label {
    width: 20px;
    height: 20px;
    min-width: none;
    min-height: none;
}

.item-menu hr {
    border: none;
    border-bottom: 1px solid #eee;
}

.item-menu .menuDiv {
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #fafafa;
    padding: 0.25em 0.25em 0.1em 0.5em;
    max-width: 20em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-menu .menuDiv:hover {
    background-color: #fafafa93;
    color: #000;
    border-radius: 5px;
}

.item-menu .menuDiv::before {
    content: "";
    float: left;
    width: 0.5em;
    height: 1em;
    display: inline-block;
}

/* Animatinons */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.is-fadingIn {
    -webkit-animation: fadeIn 0.1s ease-out;
    animation: fadeIn 0.1s ease-out;
    opacity: 1;
    display: block;
}

.is-fadingOut {
    -webkit-animation: fadeOut 0.1s ease-out;
    animation: fadeOut 0.1s ease-out;
    opacity: 0;
    display: block;
}


// ::ng-deep.cdk-overlay-pane {
//     transform: unset;
// }

// #canvasCSS3d {
// position: absolute;
// top: 0;
// left: 0;
// width: 100%;
// height: 100%;

// div {
//     position: absolute;
//     top: 0;
//     left: 0;
//     width: 100%;
//     height: 100%;
// }
// }

#canvasCSS3d,
#canvas3d {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#canvasCSS3d {
    pointer-events: none;
}

// Progress Floating - Minimal & Animated
.progress-floating {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 500px;
    background: rgba(0, 127, 127, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 8px 14px;
    z-index: 10;
    pointer-events: none;

    // Slide-up animation
    animation: slideUpFloat 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    @keyframes slideUpFloat {
        from {
            transform: translate(-50%, 100px);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }
}

// Progress Bar Background (Float)
.progress-bar-bg-float {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

// Progress Bar Fill (Float)
.progress-bar-fill-float {
    height: 100%;
    background: linear-gradient(90deg,
        rgba(0, 255, 255, 0.8),
        rgba(0, 255, 255, 1),
        rgba(0, 204, 204, 0.8)
    );
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.6);

    // Animated shimmer effect
    animation: shimmerFloat 2s linear infinite;

    @keyframes shimmerFloat {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
}

// Progress Info (Float)
.progress-info-float {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75em;
    color: white;
}

// Progress Message (Float)
.progress-message-float {
    flex: 1;
    text-align: left;
    text-shadow: 0 0 4px rgba(0, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.3px;
}

// Progress Percent (Float)
.progress-percent-float {
    font-weight: bold;
    color: rgba(0, 255, 255, 1);
    text-shadow: 0 0 6px rgba(0, 255, 255, 0.8);
    min-width: 38px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

// Ayarlar Butonu (Gear Icon)
.fiko-ayarlar-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.4);
    color: rgba(255, 215, 0, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);

    i.icon {
        font-size: 20px;
        color: rgba(255, 215, 0, 0.9);
    }

    &:hover {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15));
        border-color: rgba(255, 215, 0, 0.8);
        color: rgba(255, 215, 0, 1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(255, 215, 0, 0.1);
        transform: scale(1.05);

        i.icon {
            animation: rotate 0.6s linear infinite;
            color: rgba(255, 215, 0, 1);
        }
    }

    &:active {
        transform: scale(0.95);
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.2);
    }

    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }
}