/* Carpet Calculator Specific Styles */

/* Radio group for unit system */
.radio-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Room Entry Styles */
.room-entry {
    background: linear-gradient(to bottom right, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.room-title {
    font-weight: 600;
    color: #003049;
    font-size: 16px;
}

.remove-room-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.remove-room-btn:hover {
    background-color: rgba(220, 38, 38, 0.1);
}

.room-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.room-dimensions .form-group {
    margin-bottom: 0;
}

.room-area-preview {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
    text-align: right;
}

.room-area-preview .area-value {
    font-weight: 600;
    color: #003049;
}

/* Add Room Button */
.add-room-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.add-room-btn:hover {
    border-color: #003049;
    color: #003049;
    background-color: rgba(0, 48, 73, 0.02);
}

/* Waste hint text */
.waste-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Currency prefix styling */
.input-unit-group .currency-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: #666;
    font-size: 16px;
}

.input-unit-group .currency-prefix + .form-input {
    border-radius: 0 4px 4px 0;
}

/* Action Button */
.action-button {
    width: 100%;
    padding: 12px 24px;
    background: #003049;
    border: 1px solid #003049;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.action-button:hover {
    background: #00436b;
    border-color: #00436b;
}

/* Room Breakdown in Results */
.room-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.room-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 14px;
}

.room-breakdown-item .room-name {
    color: #003049;
    font-weight: 500;
}

.room-breakdown-item .room-area {
    color: #003049;
}

/* Total Cost Highlight */
.results-total {
    background: rgba(0, 48, 73, 0.08);
    padding: 16px;
    border-radius: 4px;
    margin-top: 8px;
}

.total-cost {
    font-size: 24px !important;
    color: #003049 !important;
}

/* Responsive - stack room dimensions on small screens */
@media (max-width: 480px) {
    .room-dimensions {
        grid-template-columns: 1fr;
    }

    .room-entry {
        padding: 12px;
    }
}
