/* Genel Stiller */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: #f4f4f9;
    color: #1d1d1f;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    font-weight: 600;
}

/* Navigasyon Menüsü */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: #1d1d1f;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f0f4f8;
    color: #1a73e8;
}

.nav-link.active {
    background-color: #258cd1;
    color: white;
}

/* Ana Container */
.hesaplama-kutusu {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Başlık */
h1 {
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Ürün Satırı */
.urun-satiri {
    display: grid;
    grid-template-columns: 30% 30% auto;
    gap: 35px;
    margin-bottom: 25px;
    align-items: center;
    position: relative;
}

.urun-grup {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.urun-kodu,
.alis-fiyati {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 2px solid #e1e1e6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: #1d1d1f;
    background-color: #ffffff;
    box-sizing: border-box;
}

.urun-kodu {
    border-color: #258cd1;
    background-color: #f8f9fa;
}

.alis-fiyati {
    border-color: #34c759;
    background-color: #f0f9f3;
    cursor: not-allowed;
}

.urun-kodu:focus,
.alis-fiyati:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 140, 209, 0.15);
}

.urun-kodu:focus {
    border-color: #1a7bb8;
}

.alis-fiyati:focus {
    border-color: #2ba84a;
}

/* Otomatik Tamamlama */
.autocomplete-items {
    position: absolute;
    border: 1.5px solid #e1e1e6;
    border-top: none;
    z-index: 999;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    margin-top: 0;
}

.autocomplete-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f7;
    font-weight: 500;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.item-kod {
    font-weight: 600;
    color: #2d3436;
}

/* İşlem Butonları */
.islem-butonlari {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}

.islem-butonlari button {
    background-color: #258cd1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.islem-butonlari button:hover {
    background-color: #1a7bb8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 140, 209, 0.2);
}

/* Silme Butonu */
.sil-buton {
    background: #ff4d4d;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    padding: 0;
}

.sil-buton:hover {
    background: #ff3333;
    transform: scale(1.05);
}

/* Girdi Alanı */
.girdi-alani {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.girdi-alani label {
    display: block;
    color: #1d1d1f;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.form-grup {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

input[type="number"] {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

input[type="number"]:focus {
    outline: none;
    border-color: #258cd1;
    box-shadow: 0 0 0 2px rgba(37, 140, 209, 0.1);
}

/* Sonuç Kutusu */
.sonuc-kutusu {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.sonuc-baslik {
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
    font-size: 15px;
}

.sonuc-satir {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #1d1d1f;
}

.sonuc-satir:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.sonuc-satir.kar {
    background: #e8f5e9;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .hesaplama-kutusu {
        padding: 20px;
    }

    .urun-satiri {
        grid-template-columns: 1fr 120px auto;
        gap: 8px;
    }
    
    .form-grup {
        grid-template-columns: 1fr;
    }
}