/* Nonwoven - Pvc Fermuarlı Çanta CSS v5.9 */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

#detailed-bag-calculator, #detailed-bag-calculator * { box-sizing: border-box; }

.detailed-bag-calculator-container { max-width: 900px; margin: 20px auto; padding: 25px; font-family: 'Lato', sans-serif; background: #f9fafb; border-radius: 12px; border: 1px solid #e5e7eb; }
.calculator-header { text-align: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #e5e7eb; }
.calculator-header h2 { color: #111827; font-size: 1.8rem; font-weight: 700; margin: 0 0 5px 0; }
.subtitle { color: #6b7280; font-size: 1rem; margin: 0; }
.detailed-calculator-form { padding: 0; }
.form-section { margin-bottom: 20px; padding: 20px; background: #ffffff; border-radius: 8px; border: 1px solid #e5e7eb; }
.form-section h3 { color: #1f2937; font-size: 1.2rem; font-weight: 600; margin: 0 0 20px 0; display: flex; align-items: center; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 15px; }
.form-row:last-child { margin-bottom: 0; }

.form-row-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 768px) { .form-row-sections { grid-template-columns: 1fr; } }
.form-row-multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }


.form-group label { display: block; font-weight: 500; color: #374151; margin-bottom: 8px; font-size: 0.9rem; }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 1rem; transition: all 0.2s ease; background: #fff; font-weight: 400; line-height: 1.5; height: auto; }
.form-control:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
select.form-control { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 35px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 16px 12px; cursor: pointer; }
.form-group .description { font-size: 0.8rem; color: #9ca3af; margin-top: 5px; }
.form-actions { display: flex; justify-content: center; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.calculate-btn, .reset-btn { padding: 12px 25px; font-size: 1rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; }
.calculate-btn { background: #3b82f6; color: white; border-color: #3b82f6; }
.calculate-btn:hover { background: #2563eb; }
.reset-btn { background: #ffffff; color: #374151; border-color: #d1d5db; }
.reset-btn:hover { background: #f9fafb; border-color: #9ca3af;}
.btn-icon { display: flex; align-items: center; }
.detailed-loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.8); display: flex; justify-content: center; align-items: center; z-index: 99999; }
.loading-content { text-align: center; padding: 20px; background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.spinner-detailed { width: 40px; height: 40px; margin: 0 auto 15px; border: 4px solid #e5e7eb; border-top: 4px solid #3b82f6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.detailed-calculation-result { background: #fff; padding: 25px; border-radius: 8px; margin-top: 25px; border: 1px solid #e5e7eb; }
.detailed-calculation-result h3 { text-align: center; margin-top: 0; margin-bottom: 20px; color: #111827; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.summary-item { text-align: center; padding: 15px; background: #f9fafb; border-radius: 6px; border: 1px solid #e9ecef; }
.summary-item label { display: block; font-size: 0.85rem; color: #6b7280; margin-bottom: 8px; text-transform: uppercase; }
.summary-item span { font-size: 1.4rem; font-weight: 700; color: #1f2937; }
.summary-item .price-large { color: #10b981; }
.detailed-results-table { width: 100%; margin-top: 25px; border-collapse: collapse; }
.detailed-results-table th, .detailed-results-table td { padding: 10px; text-align: left; border-bottom: 1px solid #e9ecef; }
.detailed-results-table th { background: #f9fafb; font-weight: 600; color: #374151; font-size:0.9rem; }
.detailed-results-table td:last-child { text-align: right; font-weight: 500; }
.detailed-results-table .total-row td { font-weight: 700; font-size: 1.05rem; background: #f3f4f6; }
.summary-grid-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
.summary-grid-compact .summary-item { padding: 12px 10px; }
.summary-grid-compact .summary-item label { margin-bottom: 4px; font-size: 0.75rem; }
.summary-grid-compact .summary-item span { font-size: 1.1rem; }