/* Square Footage Calculator - Calculator-specific styles */

/* Areas list section */
.areas-list {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.areas-list.hidden {
    display: none;
}

.areas-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.area-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
}

.area-item:last-child {
    margin-bottom: 0;
}

.area-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.area-item-shape {
    font-size: 13px;
    color: #6b7280;
}

.area-item-value {
    font-weight: 600;
    color: #003049;
}

.area-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 18px;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.area-item-remove:hover {
    background: #fee2e2;
}

.areas-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 2px solid #e2e8f0;
    font-weight: 600;
    color: #003049;
}

#combinedTotal {
    font-size: 18px;
    color: #059669;
}

/* Dimensions summary in results */
.dimensions-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dimension-item {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #374151;
}

.dimension-item strong {
    color: #003049;
}

/* Results grid customization */
.results-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.results-item:last-child {
    border-bottom: none;
}

.measurement-label {
    color: #374151;
    font-size: 15px;
}

.measurement-value {
    font-weight: 600;
    color: #003049;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .areas-list {
        padding: 12px;
    }

    .area-item {
        padding: 6px 10px;
    }

    #combinedTotal {
        font-size: 16px;
    }

    .dimension-item {
        font-size: 13px;
        padding: 4px 10px;
    }
}
