/* Bousba Smart Calculator — Frontend CSS */
.smart-calc {
    background: linear-gradient(135deg, #fefce8 0%, #fff 100%);
    border: 2px solid #D97706;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    direction: rtl;
}
.smart-calc__title {
    font-size: 1.2em;
    color: #1C1917;
    margin: 0 0 6px;
}
.smart-calc__subtitle {
    color: #78716c;
    font-size: 0.9em;
    margin: 0 0 16px;
}
.smart-calc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.smart-calc__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #44403c;
    margin-bottom: 4px;
}
.smart-calc__input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d6d3d1;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.smart-calc__input:focus {
    border-color: #D97706;
    outline: none;
    box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}
.smart-calc__result {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e7e5e4;
}
.smart-calc__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f4;
    font-size: 14px;
    color: #57534e;
}
.smart-calc__result-row:last-child { border-bottom: none; }
.smart-calc__result-row strong { color: #1C1917; font-size: 16px; }
.smart-calc__result-highlight {
    background: #fef3c7;
    margin: 4px -16px;
    padding: 10px 16px !important;
    border-radius: 8px;
    font-weight: 600;
}
.smart-calc__result-highlight strong { color: #92400e; font-size: 18px; }
.smart-calc__result-total {
    background: #1C1917;
    color: #fff !important;
    margin: 8px -16px -16px;
    padding: 14px 16px !important;
    border-radius: 0 0 11px 11px;
}
.smart-calc__result-total span { color: #d6d3d1; }
.smart-calc__result-total strong { color: #D97706 !important; font-size: 20px; }
.smart-calc__wastage-note {
    display: block;
    margin-top: 8px;
    color: #92400e;
    font-size: 12px;
}

/* WhatsApp Button */
.btn--whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: #fff !important;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.btn--whatsapp:hover { background: #1da851; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 600px) {
    .smart-calc { padding: 16px; }
    .smart-calc__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .smart-calc__input { padding: 8px; font-size: 14px; }
}
