﻿/* Bootstrap içerisindeki araç menüsü kolonu */
.calculation-tools-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 5px;
    padding-left: 5px;
}
/* Sol hesaplama araçları menüsü */
.calculation-tools {
    position: static;
    width: 100%;
    height: auto;
    padding: 4px 0;
    background-color: transparent;
}

.calculation-tools-list {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
}

/* Araç bağlantısı */
.calculation-tool-item {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 4px 1px;
    color: #343a46;
    border-radius: 6px;
    background-color: transparent;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

    .calculation-tool-item:hover {
        color: #e35205;
        background-color: rgba(227, 82, 5, 0.06);
        transform: translateY(-1px);
    }

    .calculation-tool-item.is-active {
        color: #e35205;
        background-color: transparent;
    }

/* Araç ikon alanı */
.calculation-tool-icon {
    position: relative;
    display: flex;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    color: #07184f;
    border-radius: 3px;
    background-color: rgba(7, 24, 79, 0.14);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.calculation-tool-item:hover
.calculation-tool-icon {
    color: #ffffff;
    background-color: #e35205;
}

.calculation-tool-item.is-active
.calculation-tool-icon {
    color: #ffffff;
    background-color: #07184f;
    box-shadow: 0 5px 12px rgba(7, 24, 79, 0.22);
}

/* Araç ismi */
.calculation-tool-name {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Sac ikonu */
.calculation-tool-icon.sheet::before {
    width: 25px;
    height: 5px;
    border-radius: 1px;
    background-color: currentColor;
    box-shadow: 0 7px 0 -1px currentColor;
    content: "";
}

/* Boru ikonu */
.calculation-tool-icon.pipe::before {
    width: 25px;
    height: 25px;
    border: 3px solid currentColor;
    border-radius: 50%;
    content: "";
}

/* Profil ikonu */
.calculation-tool-icon.profile::before {
    width: 26px;
    height: 22px;
    border: 3px solid currentColor;
    border-radius: 3px;
    content: "";
}

/* Demir ikonu */
.calculation-tool-icon.steel::before {
    width: 23px;
    height: 23px;
    background-color: currentColor;
    content: "";
}

/* Köşebent ikonu */
.calculation-tool-icon.angle::before {
    width: 23px;
    height: 23px;
    border-bottom: 6px solid currentColor;
    border-left: 6px solid currentColor;
    content: "";
}

/* Lama ikonu */
.calculation-tool-icon.flat-bar::before {
    width: 27px;
    height: 7px;
    border-radius: 1px;
    background-color: currentColor;
    content: "";
}

/* Klavye erişilebilirliği */
.calculation-tool-item:focus {
    outline: none;
}

.calculation-tool-item:focus-visible {
    outline: 3px solid rgba(227, 82, 5, 0.25);
    outline-offset: 2px;
}

/* Tablet */
@media only screen and (max-width: 991px) {
    .calculation-tools-column {
        display: block;
        margin-bottom: 20px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .calculation-tools {
        position: static;
        width: 100%;
        padding: 7px;
        overflow-x: auto;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: 0 6px 18px rgba(7, 24, 79, 0.07);
        scrollbar-width: thin;
    }

    .calculation-tools-list {
        width: max-content;
        min-width: 100%;
        align-items: stretch;
        flex-direction: row;
    }

    .calculation-tool-item {
        width: 80px;
        min-width: 80px;
        min-height: 65px;
        padding: 4px 3px;
    }

    .calculation-tool-icon {
        width: 38px;
        height: 38px;
    }

    .calculation-tool-name {
        font-size: 10px;
    }
}

/* Küçük telefonlar */
@media only screen and (max-width: 575px) {
    .calculation-tools {
        padding: 6px;
    }

    .calculation-tools-list {
        gap: 5px;
    }

    .calculation-tool-item {
        width: 72px;
        min-width: 72px;
        min-height: 62px;
    }

    .calculation-tool-icon {
        width: 36px;
        height: 36px;
    }

    .calculation-tool-name {
        font-size: 9px;
    }
}
