/* Genel Ayarlar */
body {
    font-family: 'Montserrat', sans-serif; /* Ana sayfa fontu */
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    margin: 20px 0;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

h1 {
    font-family: 'Playfair Display', serif; /* Ana sayfa fontu */
    color: #7c0029; /* Marka Rengi */
    font-weight: 700;
    font-size: 1.8em;
    margin-bottom: 5px;
}

h2 {
    font-family: 'Playfair Display', serif; /* Ana sayfa font */
    color: #4A4A4A;
    font-weight: 600;
    font-size: 1.4em;
    border-bottom: 2px solid #7c0029;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 20px;
}

h3 {
    color: #7c0029;
    font-weight: 600;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Form Grupları */
.input-group {
    margin-bottom: 15px;
    display: block;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
}

/* Yarı Genişlik (Mobil için tam genişlik) */
.inline-group {
    width: 100%;
}

@media (min-width: 600px) {
    #inputForm .input-group.inline-group {
        display: inline-block;
        width: calc(50% - 10px);
        margin-right: 20px;
    }
    #inputForm .input-group.inline-group:nth-child(even) {
        margin-right: 0;
    }
}


/* Kokteyl Seçim Alanı */
#kokteylSecimiKapsayici {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    max-height: 200px; /* Sabit yükseklik */
    overflow-y: auto; /* Scroll çubuğu */
    background-color: #f9f9f9;
}

.checkbox-item {
    display: flex;
    align-items: center;
    width: calc(50% - 10px); /* 2 sütun */
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9em;
}

/* Ekstra Seçim Gridi */
.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    max-height: 200px; 
    overflow-y: auto;
}

.checkbox-group .checkbox-item {
    width: 100%; /* Ekstralar başlangıçta tam sütun */
    padding: 5px 0;
    align-items: flex-start; 
}

@media (min-width: 768px) {
    .checkbox-group .checkbox-item {
        width: calc(50% - 10px); /* Desktopta 2 sütun */
    }
}


/* Butonlar (Güncellendi) */
.button {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-top: 25px;
}

.button.primary {
    background-color: #7c0029; /* Marka Rengi */
    color: #fff;
    margin-bottom: 40px;
}

.button.primary:hover {
    background-color: #a0224a;
}

.button.submit {
    background-color: #4CAF50; /* Yeşil */
    color: white;
}

.button.submit:hover {
    background-color: #45a049;
}

.button:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}


/* Teklif Özeti ve Sonuç Alanları */
#teklifOzeti {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #7c0029;
}

.separator {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 20px 0;
}

.note {
    background-color: #fff9e6;
    border-left: 5px solid #ffcc00;
    padding: 10px 15px;
    margin: 15px 0;
    color: #6a5e4d;
    border-radius: 4px;
    font-size: 0.95em;
}

.note-small {
    font-size: 0.8em;
    color: #888;
}

/* Fiyat Tablosu/Listesi */
.detail-table-container {
    overflow-x: auto;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.detail-table th, .detail-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.detail-table th {
    background-color: #f7f7f7;
    color: #7c0029;
    font-weight: 600;
}

.price {
    font-weight: 600;
    color: #000;
    text-align: right;
}

/* Detay tablosu için toplam satırı */
.detail-table .total-row td {
    border-top: 2px solid #ccc;
    font-weight: 700;
    font-size: 1.1em;
    background-color: #F8F4F4; 
    color: #7c0029;
}


/* --- YENİ: Teklif Özeti (summary-table) Tablosu --- */
.summary-table {
    width: 100%;
}

.summary-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.summary-table td, .summary-table th {
    padding: 10px;
    text-align: left;
}

.summary-table .price, .summary-table .price-header {
    text-align: right;
    font-weight: 700;
}

/* İki ana kısım arasındaki boşluğu ve çizgiyi sağlar */
.summary-table .spacer-row td {
    border-bottom: 2px solid #ccc !important;
    padding: 5px 0 !important;
}

/* Genel Toplam satırı */
.summary-table .grand-total-row td {
    font-size: 1.2em;
    border-top: 3px solid #7c0029; /* Ana marka rengi */
    padding-top: 15px;
    font-weight: 700;
    color: #7c0029;
}

.summary-table .highlight-row td {
    border: none;
}

.summary-table .note-small {
    display: block;
    font-size: 0.75em;
    font-weight: 400;
    color: #555;
    margin-top: 3px;
}


/* Tedarik Listesi */
.supply-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.supply-list li {
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 0.95em;
    line-height: 1.4;
}

.supply-list li:last-child {
    border-bottom: none;
}

/* Müşteri Tedarik Listesi (Hizalama) */
#musteriTedarikListesi li {
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0; 
}

#musteriTedarikListesi li .item-name {
    flex-grow: 1; 
    font-weight: 500;
    color: #333;
    padding-right: 15px; 
}

#musteriTedarikListesi li .item-quantity {
    text-align: right;
    font-weight: 600;
    white-space: nowrap; 
}

/* Ek Bilgi (Örnek Markalar) */
#musteriTedarikListesi li .note-small {
    display: block; 
    font-size: 0.75em;
    font-weight: 400;
    color: #888;
    margin-top: 2px;
}