/* Genel Stiller */
body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* 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;
}

#musteriAdi {
    width: 100%;
    padding: 8px 10px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}


/* Ana Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Satış Formu */
.satis-formu {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-baslik {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-baslik h2 {
    margin: 0;
    color: #2d3436;
}

#tarih {
    color: #6e6e73;
    font-size: 0.9em;
}

/* Satış Satırı */
.satis-satiri {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 10px;
    margin-bottom: 15px;
    align-items: start;
    position: relative;
}

.urun-grup {
    position: relative;
    width: 100%;
}

.satis-urun-kodu,
.satis-alis-fiyati {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.satis-alis-fiyati {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.satis-urun-kodu:focus,
.satis-alis-fiyati:focus {
    outline: none;
    border-color: #258cd1;
    box-shadow: 0 0 0 2px rgba(37, 140, 209, 0.2);
}

/* Otomatik Tamamlama */
.satis-satiri .autocomplete-items {
    position: absolute;
    border: 1px solid #d2d2d7;
    border-top: none;
    z-index: 999;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    border-radius: 0 0 8px 8px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    margin-top: 0;
}

.satis-satiri .autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f7;
}

.satis-satiri .autocomplete-item:hover {
    background-color: #f5f5f7;
}

.satis-satiri .item-kod {
    font-weight: 500;
}

/* Form Grupları */
.form-grup {
    margin-bottom: 20px;
}

.input-grup {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-grup label {
    margin-bottom: 5px;
    color: #6e6e73;
    font-size: 0.9em;
}

.input-grup input {
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
}

/* Hesaplama Sonuçları */
.hesaplama-sonuc,
.odeme-sonuc {
    margin: 20px 0;
}

.sonuc-baslik {
    font-weight: 500;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.sonuc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.sonuc-kart {
    background: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.sonuc-kart.kar {
    background: #e8f5e9;
}

.kart-baslik {
    font-size: 0.9em;
    color: #6e6e73;
    margin-bottom: 5px;
}

.kart-deger {
    font-size: 1.2em;
    font-weight: 500;
    color: #1d1d1f;
}

/* Ödeme Detayları */
.odeme-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.odeme-grup {
    display: flex;
    flex-direction: column;
}

.odeme-grup label {
    margin-bottom: 5px;
    color: #6e6e73;
    font-size: 0.9em;
}

.odeme-grup input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.odeme-grup input:focus {
    outline: none;
    border-color: #258cd1;
    box-shadow: 0 0 0 2px rgba(37, 140, 209, 0.2);
}

.kesinti-bilgi {
    font-size: 0.9em;
    color: #ff3b30;
    margin-top: 5px;
}

/* Uyarı */
.uyari {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
}

/* Son Satışlar */
.son-satislar {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.satis-ozet {
    background: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.satis-ozet:last-child {
    margin-bottom: 0;
}

.satis-baslik {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.satis-tarih {
    color: #6e6e73;
    font-size: 0.9em;
}

.satis-tutar {
    font-weight: 500;
}

.satis-detay {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #6e6e73;
}

/* Butonlar */
.ekle-btn,
.kaydet-buton {
    background-color: #258cd1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ekle-btn:hover,
.kaydet-buton:hover {
    background-color: #1a6d9f;
}

.sil-buton {
    background: #ff3b30;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.sil-buton:hover {
    background: #ff453a;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .satis-satiri {
        grid-template-columns: 1.5fr 1fr auto;
    }
    
    .sonuc-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .odeme-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sonuc-grid {
        grid-template-columns: 1fr;
    }
}

/* Başlık */
h1 {
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 30px;
    font-weight: 700;
} 