/**
 * Window Builder Calculator Styles
 * File: assets/css/wbc-styles.css
 */

/* Container */
.wbc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Header */
.wbc-header h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.wbc-instructions {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin-bottom: 20px;
}

.wbc-instructions p {
    margin: 0;
    line-height: 1.6;
}

.wbc-delivery-info {
    background-color: #e8f4f8;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wbc-delivery-info p {
    margin: 0;
    font-size: 14px;
}

/* Price Section */
.wbc-price-section {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wbc-price-section h6 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.wbc-price-grid {
    display: grid;
    gap: 15px;
}

.wbc-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.wbc-price-row label {
    font-weight: bold;
    font-size: 14px;
}

.wbc-price-row .wbc-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.wbc-orange {
    color: #ff6600;
    font-weight: bold;
}

.wbc-total-price {
    font-size: 20px;
}

/* Divider */
.wbc-divider {
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}

/* Form Groups */
.wbc-form-group {
    margin-bottom: 20px;
}

.wbc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}

.wbc-form-group select,
.wbc-form-group input[type="text"],
.wbc-form-group input[type="number"],
.wbc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

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

/* Grid Layout */
.wbc-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.wbc-col-4 {
    flex: 0 0 33.333%;
}

.wbc-col-6 {
    flex: 0 0 50%;
}

.wbc-col-8 {
    flex: 0 0 66.666%;
}

@media (max-width: 768px) {
    .wbc-row {
        flex-direction: column;
    }
    
    .wbc-col-4,
    .wbc-col-6,
    .wbc-col-8 {
        flex: 0 0 100%;
    }
}

/* Window Preview */
.wbc-window-preview {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.wbc-window-preview img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Radio Groups */
.wbc-radio-group {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    background-color: #fff;
}

.wbc-radio-group input[type="radio"] {
    margin-right: 10px;
}

.wbc-radio-group strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
}

.wbc-radio-group p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Dimension Inputs */
.wbc-dimension-inputs {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.wbc-dimension {
    flex: 1;
}

.wbc-dimension label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.wbc-dimension input,
.wbc-dimension select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Color Options */
.wbc-color-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wbc-color-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.wbc-color-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.wbc-color-option input[type="radio"] {
    margin-right: 8px;
}

.wbc-color-option input[type="radio"]:checked + span {
    font-weight: bold;
}

/* Grid Options */
.wbc-grid-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.wbc-grid-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.wbc-grid-option:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
}

.wbc-grid-option input[type="radio"] {
    margin-right: 8px;
}

/* Glass Options */
.wbc-glass-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.wbc-checkbox-option {
    display: flex;
    align-items: center;
}

.wbc-checkbox-option input[type="checkbox"] {
    margin-right: 8px;
}

.wbc-checkbox-option label {
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

/* Other Options Grid */
.wbc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

/* Notes */
.wbc-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Buttons */
.wbc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.wbc-btn-primary {
    background-color: #3498db;
    color: white;
}

.wbc-btn-primary:hover {
    background-color: #2980b9;
}

.wbc-btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.wbc-btn-secondary:hover {
    background-color: #7f8c8d;
}

.wbc-btn-success {
    background-color: #27ae60;
    color: white;
}

.wbc-btn-success:hover {
    background-color: #229954;
}

.wbc-btn-info {
    background-color: #16a085;
    color: white;
}

.wbc-btn-info:hover {
    background-color: #138d75;
}

/* Price Summary */
.wbc-price-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 20px;
}

.wbc-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Quantity Input */
#wbc-quantity {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wbc-price-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wbc-price-row .wbc-value {
        margin-top: 10px;
    }
    
    .wbc-glass-options {
        grid-template-columns: 1fr;
    }
    
    .wbc-action-buttons {
        flex-direction: column;
    }
    
    .wbc-action-buttons .wbc-btn {
        width: 100%;
    }
    
    .wbc-dimension-inputs {
        flex-direction: column;
    }
}

/* Loading State */
.wbc-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error State */
.wbc-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Success Message */
.wbc-success {
    color: #27ae60;
    font-size: 14px;
    margin-top: 5px;
}

/* Add these styles to your existing wbc-styles.css file */

/* Notification Styles */
.wbc-notification {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
    animation: slideDown 0.3s ease;
    position: relative;
}

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

.wbc-notification-error {
    background-color: #fee;
    border-left: 4px solid #c00;
    color: #c00;
}

.wbc-notification-success {
    background-color: #efe;
    border-left: 4px solid #0c0;
    color: #060;
}

.wbc-notification p {
    margin: 0;
    font-weight: 500;
}

.wbc-notification::after {
    content: "✕";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 18px;
}

.wbc-notification:hover {
    opacity: 0.9;
}

/* Button States */
.wbc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wbc-btn-success:disabled {
    background-color: #999;
}