/* Modern Calculator Styles - Clean Design */
.simple-calculator {
    max-width: 500px;
    margin: 20px auto;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e3f2fd;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system,BlinkMacSystemFont,Segoe UI Variable Display,Segoe UI,Helvetica,Apple Color Emoji,Arial,sans-serif,Segoe UI Emoji,Segoe UI Symbol;
    background: #ffffff;
}

.simple-calculator.theme-light {
    background: #ffffff;
    border: 2px solid #e3f2fd;
}

.simple-calculator.theme-dark {
    background: #1e1e1e;
    color: #ffffff;
    border: 2px solid #2196f3;
}

.calc-form {
    margin-bottom: 24px;
}

.calc-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.calc-group {
    flex: 1;
}

.calc-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #555;
    letter-spacing: 0.01em;
}

.calc-group input,
.calc-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fafbfc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.calc-group input:focus,
.calc-group select:focus {
    outline: none;
    border-color: #2196f3;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.theme-dark .calc-group label {
    color: #e0e0e0;
}

.theme-dark .calc-group input,
.theme-dark .calc-group select {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #404040;
}

.theme-dark .calc-group input:focus,
.theme-dark .calc-group select:focus {
    border-color: #2196f3;
    background: #333333;
}

/* Input field icons/symbols */
.calc-group {
    position: relative;
}

.calc-group input[name*="percent"]::after,
.calc-group input[name*="rate"]::after {
    content: '%';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* Input with suffix symbols */
.input-with-symbol {
    position: relative;
}

.input-with-symbol input {
    padding-right: 40px;
}

.input-with-symbol .symbol {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.calc-button {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.calc-button:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.calc-button:active {
    transform: translateY(0);
}

.calc-results {
    background: #f8fafe;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e3f2fd;
    margin-top: 24px;
}

.theme-dark .calc-results {
    background: #1a1a1a;
    border-color: #2196f3;
}

.calc-result-item {
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e3f2fd;
    font-size: 16px;
}

.theme-dark .calc-result-item {
    border-bottom-color: #404040;
}

.calc-result-item:last-child {
    border-bottom: none;
}

.calc-result-item .result-label {
    font-weight: 500;
    color: #555;
}

.theme-dark .calc-result-item .result-label {
    color: #e0e0e0;
}

.calc-result-value {
    font-weight: 600;
    font-size: 18px;
    color: #1976d2;
}

.theme-dark .calc-result-value {
    color: #2196f3;
}

/* Action buttons container */
.calc-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.calc-button.secondary {
    background: #ffffff;
    color: #2196f3;
    border: 2px solid #2196f3;
    box-shadow: none;
}

.calc-button.secondary:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

/* Feedback section */
.calc-feedback {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.calc-feedback p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
}

.feedback-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.feedback-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: #f5f5f5;
}

.feedback-btn.selected {
    background: #2196f3;
    color: #fff;
    border-color: #2196f3;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .calc-row {
        flex-direction: column;
    }
    
    .simple-calculator {
        margin: 10px;
        padding: 15px;
    }
}
/* Custom Styles for TV Mounting Calculator */

/* This section styles the combined input and select field */
.combined-input-fields {
    display: flex;
    width: 100%;
}

.combined-input-fields input {
    /* Ensures the input field takes up most of the space */
    flex: 1;
    border-radius: 8px 0 0 8px; /* Rounded corners only on the left */
    border-right: none; /* Removes the right border to merge with the select */
}

.combined-input-fields select {
    /* Ensures the select field is a fixed size and visually merged */
    flex-grow: 0;
    flex-shrink: 0;
    width: auto;
    min-width: 60px; /* Adjust as needed for unit text */
    padding: 12px 8px;
    border-left: none; /* Removes the left border to merge with the input */
    border-radius: 0 8px 8px 0; /* Rounded corners only on the right */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none; /* Hides the default dropdown arrow */
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.combined-input-fields select:focus {
    outline: none;
    border-color: #2196f3;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.theme-dark .combined-input-fields select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
}
/* Input with dropdown styling */
.input-with-dropdown {
    position: relative;
    display: flex;
    border: 1px solid #444;
    border-radius: 4px;
    background: #2a2a2a;
    overflow: hidden;
}

.input-with-dropdown input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 12px 15px;
    color: #fff;
    outline: none;
    border-radius: 0;
}

.input-with-dropdown select {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #999;
    padding: 12px 15px;
    outline: none;
    cursor: pointer;
    border-left: 1px solid #444;
    min-width: 80px;
    font-size: 14px;
}

.input-with-dropdown select:focus {
    background: rgba(255, 255, 255, 0.15);
}

.input-with-dropdown select option {
    background: #333;
    color: #fff;
    padding: 8px;
}

.input-with-dropdown input:focus {
    outline: none;
}
