/* Flooring Calculator - Minimal Design */
.fc-calculator {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    line-height: 1.5;
}

.fc-calculator * {
    box-sizing: border-box;
}

/* Header */
.fc-header {
    text-align: center;
    margin-bottom: 24px;
}

.fc-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.fc-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Tabs */
.fc-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
}

.fc-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.fc-tab:hover {
    color: #333;
    background: #f5f5f5;
}

.fc-tab.fc-tab-active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Panels */
.fc-panel {
    display: none;
}

.fc-panel.fc-panel-active {
    display: block;
}

.fc-panel-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

/* Table */
.fc-table-container {
    overflow-x: auto;
    margin-bottom: 16px;
}

.fc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.fc-table th {
    text-align: left;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.fc-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.fc-table tbody tr:hover {
    background: #fafafa;
}

.fc-totals-row {
    background: #f5f5f5;
}

.fc-totals-row td {
    border-top: 2px solid #e0e0e0;
    border-bottom: none;
}

/* Inputs */
.fc-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.fc-input:focus {
    outline: none;
    border-color: #2563eb;
}

.fc-input[type="number"] {
    text-align: right;
    font-family: "SF Mono", Monaco, "Courier New", monospace;
}

/* Results */
.fc-result {
    display: block;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    font-family: "SF Mono", Monaco, "Courier New", monospace;
    color: #1a1a1a;
}

/* Buttons */
.fc-add-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fc-add-btn:hover {
    background: #e5e5e5;
}

.fc-delete-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fc-delete-btn:hover:not(:disabled) {
    background: #fee2e2;
    color: #dc2626;
}

.fc-delete-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Waste Section */
.fc-waste-section {
    margin-top: 24px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.fc-waste-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.fc-waste-note {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
}

.fc-waste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.fc-waste-card {
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
}

.fc-waste-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.fc-waste-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    font-family: "SF Mono", Monaco, "Courier New", monospace;
    color: #1a1a1a;
}

.fc-waste-unit {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* Help Section */
.fc-help {
    margin-top: 32px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.fc-help-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    border-radius: 6px;
}

.fc-help-toggle:hover {
    background: #fafafa;
}

.fc-chevron {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.fc-help-toggle.fc-open .fc-chevron {
    transform: rotate(180deg);
}

.fc-help-content {
    display: none;
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: #555;
}

.fc-help-content.fc-open {
    display: block;
}

.fc-help-section {
    margin-bottom: 20px;
}

.fc-help-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.fc-help-section p {
    margin: 0;
    line-height: 1.6;
}

.fc-help-section ul {
    margin: 0;
    padding-left: 20px;
}

.fc-help-section li {
    margin-bottom: 4px;
}

.fc-disclaimer {
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.fc-disclaimer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .fc-calculator {
        padding: 16px;
    }
    
    .fc-title {
        font-size: 22px;
    }
    
    .fc-tab {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .fc-table th,
    .fc-table td {
        padding: 6px 4px;
    }
    
    .fc-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .fc-result {
        font-size: 14px;
    }
    
    .fc-waste-value {
        font-size: 20px;
    }
}
