.robot-hero {
    width: 100%;
    height: 300px;
    background: #F8F8F8;
    box-shadow: 0px 3px 8px #0000001A;
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-hero__content {
    max-width: 1080px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.robot-hero__config {
    display: grid;
    grid-template-columns: 300px 1fr 1fr 1fr;
    grid-template-areas: "box1 box2 box3 box4";
    width: 100%;
    gap: 16px;
}

.robot-hero__config>div {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-hero__config>div:nth-child(1) {
    grid-area: box1;
    flex-shrink: 0;
}

.robot-hero__config>div:nth-child(2) {
    grid-area: box2;
}

.robot-hero__config>div:nth-child(3) {
    grid-area: box3;
}

.robot-hero__config>div:nth-child(4) {
    grid-area: box4;
}

@media (max-width: 1080px) {
    .robot-hero {
        height: auto;
        padding: 0;
    }

    .robot-hero__config {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "box1 box3"
                             "box2 box4";
        padding: 10px;
    }

    .chart-wrapper-mini {
        width: 150px !important;
        top: 30px;
    }

    .robot-hero .speech-bubble {
        left: 0 !important;
    }   

    .context-menu {
        left: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }

    .chart-center-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .robo-carousel__item img {
        margin-top: -30px !important;
    }

    .robo-carousel__item {
        z-index: 0 !important;
    }

}


/* Speech Bubble Styles */
.robot-hero .speech-bubble {
    position: relative;
    left: 0px;
    display: inline-flex;
    background: #F4F4F4 0% 0% no-repeat padding-box;
    border: 2px solid #EDEDED;
    color: #939393;
    font-size: 13px;
    font-weight: 600;
    line-height: 17px;
    letter-spacing: -0.39px;
    padding: 12px 20px;
    border-radius: 8px;
    max-width: 600px;
}

.robot-hero .speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 60px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #ededed;
}

.robot-hero .speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 62px;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 13px solid #f4f4f4;
}

/* Carousel Styles */
.robo-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robo-carousel__item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    padding-top: 20px;
    z-index: 1;
}
.robo-carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.robo-carousel__item.active {
    opacity: 1;
    visibility: visible;
}

/* Fade transition animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.robo-carousel__item.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.robo-carousel__item.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

/* Slider Input Section Styles */
.slider-section {
    padding: 8px 20px;
    background: #f8f9fa;
}

.slider-container {
    max-width: 600px;
    margin: 0 auto;
}

.slider-card {
    background: #EFEFEF;
    border-radius: 4px;
    padding: 6px 20px;
    border: 1px solid #e9ecef;
    width: 100%;
    position: relative;
}

.slider-card__header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.slider-card__title {
    font-size: 16px;
    line-height: 19px;
    font-weight: 600;
    color: #495057;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.slider-card__action {
    color: #495057;
    cursor: pointer;
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 5px;
    right: 5px;
}

.slider-card__action:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease;
    background-color: transparent;
}

.slider-card__content {
    margin-top: 0;
}

.slider-input-container {
    position: relative;
    margin-bottom: 16px;
}

.slider-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 9px;
    background: #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 12px;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1e66d2;
    border-radius: 5px;
    transition: width 0.1s ease;
    width: 30%;
}

.slider-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #d2691e;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: left 0.1s ease;
    left: 30%;
}

.slider-thumb:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}



/* Slider Color Variants */
.slider-fill--blue {
    background: #1e66d2;
}

.slider-thumb--blue {
    background: #1e66d2;
}

.slider-fill--green {
    background: #28a745;
}

.slider-thumb--green {
    background: #28a745;
}

.slider-fill--purple {
    background: #6f42c1;
}

.slider-thumb--purple {
    background: #6f42c1;
}

.slider-fill--orange {
    background: #fd7e14;
}

.slider-thumb--orange {
    background: #fd7e14;
}

/* Config sliders wrapper */
.config-sliders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mini Chart Container */
.chart-container-mini {
    width: 100%;
}

.chart-wrapper-mini {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-wrapper-mini canvas {
    display: block !important;
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
}

.chart-wrapper-mini .chart-center-icon {
    position: absolute;
    top: 50%;
    /* Chart wrapper height'ın yüzde 50'si */
    left: 50%;
    /* Chart wrapper width'in yüzde 50'si */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    width: 40px;
    height: 40px;
}

.chart-wrapper-mini .robot-icon {
    width: 40px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: #efefef;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    max-height: 80vh;
    overflow-y: auto;
    display: none;
    padding: 0;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
}

.context-menu-header {
    padding: 12px 16px;
    background: #efefef;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    color: #495057;
    text-align: center;
    opacity: 0.94;
}

.context-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
}

.context-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.context-menu-item:hover {
    background-color: #f8f9fa;
}

.context-menu-item.selected {
    background-color: #ffffff;
    color: #495057;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon img {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.context-menu-item.selected .check-icon {
    background-color: #d32f2f;
}

.context-menu-item.selected .check-icon img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

/* Context menu scrollbar styling */
.context-menu::-webkit-scrollbar {
    width: 6px;
}

.context-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.context-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.context-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Prevent body scroll when context menu is open */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Chart Section Styles */
.chart-section {
    padding: 60px 20px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.chart-container {
    max-width: 600px;
    margin: 0 auto;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    text-align: center;
}

.chart-title {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 24px 0;
    font-family: 'Montserrat', sans-serif;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
}

.chart-wrapper canvas {
    display: block !important;
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
}

.chart-center-icon {
    position: absolute;
    top: 200px;
    /* Chart wrapper height is 400px, so center is 200px */
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-icon {
    width: 50px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}