/* Main Wrapper */
.fhc-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Tabs */
.fhc-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.fhc-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.fhc-tab-btn:hover {
    color: #6a1b9a;
    background: #f0ebf5;
}

.fhc-tab-btn.active {
    color: #6a1b9a;
    border-bottom: 3px solid #6a1b9a;
    font-weight: 600;
}

/* Tab Content */
.fhc-tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.fhc-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid Layout */
.fhc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .fhc-grid {
        grid-template-columns: 1fr;
    }
}

/* Viewer / Upload Area */
.fhc-viewer-container {
    background: #f8f9fa;
    border-radius: 12px;
    height: 400px; /* Fixed height for viewer */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e0e0e0;
}

.fhc-viewer-container.drag-over {
    border-color: #6a1b9a;
    background: #f3e5f5;
}

.fhc-upload-prompt {
    text-align: center;
    z-index: 10;
}

.fhc-upload-prompt h3 {
    color: #6a1b9a;
    margin-bottom: 10px;
    font-size: 24px;
}

.fhc-upload-prompt p {
    color: #888;
    margin-bottom: 20px;
}

.fhc-upload-btn {
    background: #6a1b9a;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s;
}

.fhc-upload-btn:hover {
    background: #4a148c;
}

#fhc-3d-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Form Elements */
.fhc-form-group {
    margin-bottom: 15px;
}

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

select, input[type="number"], .fhc-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.fhc-input-wrapper {
    position: relative;
}

.fhc-input-wrapper .currency {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.fhc-input-wrapper input {
    padding-left: 25px;
}

/* Results */
.fhc-results {
    margin-top: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.fhc-result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #555;
}

.fhc-result-row.total {
    font-weight: bold;
    color: #000;
    font-size: 18px;
    margin-top: 10px;
}

/* Total Cost Page */
.fhc-total-cost-header h2 {
    color: #6a1b9a;
    text-align: center;
}

.fhc-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background: #6a1b9a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    flex: 2;
}

.btn-secondary {
    background: #999;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
}

/* Calculator */
.fhc-calculator-ui {
    width: 300px;
    margin: 20px auto;
    background: #2c3e50;
    padding: 20px;
    border-radius: 10px;
}

.calc-display {
    background: #34495e;
    color: #fff;
    padding: 20px;
    text-align: right;
    font-size: 24px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    padding: 15px;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    background: #ecf0f1;
    color: #2c3e50;
}

.calc-btn.op {
    background: #95a5a6;
    color: #fff;
}

.calc-btn.accent {
    background: #6a1b9a;
    color: #fff;
}

.calc-btn.double {
    grid-column: span 2;
    border-radius: 30px;
}
