/* ===== esnaluminyum.com Ağırlık Hesaplama Stilleri ===== */
/* Renk Paleti: #ff7a00 (Turuncu), #0f3557 (Lacivert), #ffffff (Beyaz) */

/* Reset & Base */
* {
    box-sizing: border-box;
}

/* Navigation Bar */
#hesap-div-row {
    background-color: #0f3557;
    border-radius: 10px;
    padding: 12px 15px !important;
    margin: 0 auto 10px auto;
    max-width: 900px;
}

/* Left diagram column - push closer to form */
.col-md-4:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hesap-column {
    display: inline-block;
    width: 70px;
    margin: 5px;
    text-align: center;
    vertical-align: top;
}

.hesap-column a {
    text-decoration: none;
    color: #fff;
}

.hesap-column img {
    transition: transform 0.2s ease;
}

.hesap-column img:hover {
    transform: scale(1.15);
}

.hesap-yazisi {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    color: #ff7a00;
}

.hesap-column img {
    filter: brightness(0) invert(1);
}

/* Form Panel */
.panel-info {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fh3 {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #ccc;
    height: 38px;
    font-size: 14px;
}

.form-control:focus {
    border-color: #ff7a00;
    box-shadow: 0 0 0 2px rgba(255, 122, 0, 0.15);
}

.input-group {
    padding: 0;
    margin: 0 auto;
}

.input-group-addon {
    background-color: #ff7a00;
    color: #fff;
    border: 1px solid #ff7a00;
    font-weight: 600;
}

label {
    font-weight: 600;
    color: #fff;
    margin-top: 8px;
    display: block;
}

/* Buttons */
.btn.blue {
    background-color: #ff7a00;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn.blue:hover {
    background-color: #e06d00;
}

.btn.red {
    background-color: #0f3557;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn.red:hover {
    background-color: #0a2740;
}

/* Result */
.sonuc {
    font-size: 28px;
    font-weight: 700;
    color: #ff7a00;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px auto;
    display: inline-block;
    min-height: 50px;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* History Table */
.tablorespon {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.tbl-header {
    background-color: #0f3557;
}

.tbl-header table {
    width: 100%;
}

.tbl-header th {
    padding: 10px 15px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.tr-header-color {
    background-color: #0f3557;
}

.tbl-content {
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
}

.ttable {
    width: 100%;
    border-collapse: collapse;
}

.ttable td {
    padding: 8px 10px;
    font-size: 12px;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
}

.ttable tr:hover {
    background-color: rgba(255, 122, 0, 0.05);
}

.delete-btn {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.delete-btn:hover {
    opacity: 1;
}

/* Material Modal */
#example {
    width: 100%;
    border-collapse: collapse;
}

#example thead th {
    background-color: #0f3557;
    color: #fff;
    padding: 10px;
    font-weight: 600;
}

#example tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

#example tbody tr:hover {
    background-color: rgba(255, 122, 0, 0.1);
}

#example tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* Float layout */
.float_center ul {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.float_center li {
    display: inline-block;
}

.clear {
    clear: both;
}

/* Price calculation container */
#fiyatHesaplamaContainer {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

/* Responsive */
@media (max-width: 768px) {
    .hesap-column {
        width: 55px;
        margin: 3px;
    }

    .hesap-yazisi {
        font-size: 9px;
    }

    .sonuc {
        font-size: 22px;
    }

    .fh3 {
        font-size: 16px;
    }
}

/* Select styling */
select {
    border-radius: 4px;
}

select option:checked {
    background-color: #ff7a00;
    color: #fff;
}

/* Touch optimization */
button,
.btn {
    touch-action: manipulation;
}

#top form {
    margin: 0;
}

.content,
.sidebar {
    padding-top: 20px;
}

/* Hesaplama Ana Sayfa Grid */
.hesaplama-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.hesaplama-grid-item {
    background: #0f3557;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.hesaplama-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 122, 0, 0.3);
}

.hesaplama-grid-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    filter: brightness(0) saturate(100%) invert(55%) sepia(95%) saturate(1000%) hue-rotate(5deg) brightness(100%) contrast(105%);
}

.hesaplama-grid-item-text {
    color: #ff7a00;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .hesaplama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}