/* Baskes Stil Dosyası - Etiket Hesaplama ile Aynı Tasarım */

.etiket-widget {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.widget-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

.widget-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
}

.widget-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1em;
}

.hesaplama-form,
.siparis-form {
    padding: 25px;
}

.form-row {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
}

.form-group.half {
    flex: 0 0 calc(50% - 7.5px);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group select {
    min-height: 48px;
    line-height: 1.5;
    background-color: white;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6,9 12,15 18,9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

/* Butonlar */
.hesapla-btn,
.siparis-btn,
.onayla-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hesapla-btn {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
}

.siparis-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    margin-top: 15px;
}

.onayla-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.yeni-siparis-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%;
}

.geri-btn {
    background: #bdc3c7;
    color: #2c3e50;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
}

.hesapla-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.siparis-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.onayla-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

/* Fiyat Sonucu */
.fiyat-sonuc {
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.fiyat-card {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.fiyat-header h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.fiyat-deger {
    font-size: 2.5em;
    font-weight: bold;
    margin: 10px 0;
}

.fiyat-detay {
    opacity: 0.9;
    font-size: 0.9em;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

/* Sipariş Formu */
.form-header {
    background: #f8f9fa;
    margin: -25px -25px 25px -25px;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.form-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.siparis-ozet {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.siparis-ozet h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.ozet-satir {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #e9ecef;
}

.ozet-satir:last-child {
    border-bottom: none;
}

.ozet-satir.toplam {
    font-weight: bold;
    font-size: 1.1em;
    color: #27ae60;
    padding-top: 10px;
    border-top: 2px solid #27ae60;
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Başarı Mesajı */
.basari-mesaj {
    padding: 40px 25px;
    text-align: center;
    background: #f8f9fa;
}

.basari-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.basari-mesaj h4 {
    color: #27ae60;
    margin: 0 0 15px 0;
    font-size: 2em;
}

.basari-mesaj p {
    color: #7f8c8d;
    margin: 10px 0;
    line-height: 1.6;
}

/* Loading */
.loading {
    padding: 40px 25px;
    text-align: center;
    background: #f8f9fa;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #7f8c8d;
    margin: 0;
}

/* Tabaka Bilgisi */
.tabaka-bilgi {
    background: #e8f4f8;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    border-left: 4px solid #3498db;
}

.tabaka-bilgi small {
    color: #2c3e50;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .etiket-widget {
        margin: 10px;
        border-radius: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        flex: 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .widget-header {
        padding: 20px;
    }
    
    .widget-header h3 {
        font-size: 1.5em;
    }
    
    .hesaplama-form,
    .siparis-form {
        padding: 20px;
    }
    
    .fiyat-deger {
        font-size: 2em;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
