/**
 * Budget Calculator - Public Styles
 */

.budget-calculator-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.bc-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.bc-section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

/* Category and Product Selection */
#bc-category-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#bc-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bc-product-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.bc-product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bc-product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bc-product-item h4 {
    font-size: 1em;
    margin: 10px 0;
    color: #333;
}

.bc-product-item .price {
    font-size: 1.2em;
    color: #2c5282;
    font-weight: bold;
    margin: 10px 0;
}

.bc-add-product {
    background: #2c5282;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.bc-add-product:hover {
    background: #1a365d;
}

/* Budget Items */
#bc-budget-items {
    min-height: 100px;
}

.bc-budget-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
}

.bc-item-details {
    flex: 1;
}

.bc-item-name {
    font-weight: 500;
    color: #333;
}

.bc-variations {
    margin-top: 10px;
}

.bc-variation-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bc-item-quantity {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.bc-item-total {
    font-weight: bold;
    color: #2c5282;
    min-width: 80px;
    text-align: right;
}

.bc-remove-item {
    background: #e53e3e;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s;
}

.bc-remove-item:hover {
    background: #c53030;
}

/* Customer Form */
.bc-form-group {
    margin-bottom: 15px;
}

.bc-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.bc-form-group input,
.bc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

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

/* Total */
.bc-total-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: right;
}

.bc-total-label {
    font-size: 1.3em;
    font-weight: 500;
    color: #333;
}

#bc-total-amount {
    font-size: 2em;
    font-weight: bold;
    color: #2c5282;
    margin-left: 10px;
}

/* Action Buttons */
.bc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bc-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.bc-btn-primary {
    background: #2c5282;
    color: white;
}

.bc-btn-primary:hover {
    background: #1a365d;
}

.bc-btn-secondary {
    background: #48bb78;
    color: white;
}

.bc-btn-secondary:hover {
    background: #38a169;
}

.bc-btn-tertiary {
    background: #ed8936;
    color: white;
}

.bc-btn-tertiary:hover {
    background: #dd6b20;
}

/* Saved Budgets */
#bc-saved-budgets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.bc-saved-budget-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.bc-saved-budget-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bc-saved-budget-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.bc-saved-budget-item p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.bc-load-budget-item {
    margin-top: 10px;
    background: #2c5282;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .budget-calculator-wrapper {
        padding: 10px;
    }
    
    #bc-products-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .bc-budget-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bc-actions {
        flex-direction: column;
    }
    
    .bc-btn {
        width: 100%;
    }
}
