/* Client-side styling */
.hvac-doc-tool.client-view {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Category Navigation */
.category-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.category-button {
    padding: 8px 16px;
    background: #f0f0f1;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.category-button.active {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

/* Fitting Grid */
.fitting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fitting-item {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.fitting-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.fitting-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fitting-actions {
    padding: 10px;
    text-align: center;
}

.select-fitting {
    width: 100%;
    padding: 6px 12px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.select-fitting:hover {
    background: #135e96;
}

/* Selection Area */
.selection-area {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.selection-area h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

#selected-fittings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

#selected-fittings .fitting-item {
    position: relative;
}

.remove-fitting {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3232;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.button-primary {
    background: #2271b1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
}

.button-secondary {
    background: #f0f0f1;
    border: 1px solid #2271b1;
    color: #2271b1;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
}
