/* TedLighting Calculators Styles */
.ted-calculator {
    background: white;
    border-radius: 12px;
    overflow: hidden;  
    margin: 0px 0;
    font-family: 'Outfit', sans-serif !important;

}
.ted-calculator-wrapper {
	  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	 border-radius: 20px;
	border:1px solid #ebebeb;
	
}

.ted-calculator-header {
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05), transparent);
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
}

.ted-calculator-header-icon {
    background: #f59e0b;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ted-calculator-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.ted-calculator-description {
    font-size: 14px;
    color: #6b7280;
    margin: 4px 0 0 0;
}

.ted-calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
}

@media (max-width: 1024px) {
    .ted-calculator-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Input Section */
.ted-input-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ted-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ted-section-title i {
    color: #f59e0b;
}

.ted-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ted-input-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
	line-height:20px;
}

.ted-input-value {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    color: #111827;
}

.ted-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #111827;
    transition: all 0.2s ease;
}

.ted-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.ted-input-number {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    transition: all 0.2s ease;
}

.ted-input-number:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Range Slider */
.ted-range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ted-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.ted-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ted-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ted-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

/* Results Section */
.ted-results-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ted-summary-banner {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid;
}

.ted-summary-banner.highlight-amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.ted-summary-banner.highlight-blue {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.ted-summary-banner.highlight-green {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.ted-summary-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.ted-summary-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.ted-summary-value.amber {
    color: #d97706;
}

.ted-summary-value.blue {
    color: #2563eb;
}

.ted-summary-value.green {
    color: #16a34a;
}

/* Results Grid */
.ted-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ted-result-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.ted-result-card:hover {
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ted-result-card.highlight {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.ted-result-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ted-result-card-icon {
    color: #6b7280;
    font-size: 16px;
}

.ted-result-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ted-result-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.ted-result-card-value.highlight {
    color: #d97706;
}

.ted-result-card-subvalue {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Actions */
.ted-calculator-actions {
    padding: 24px 32px;
    
}

.ted-actions-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
}

@media (max-width: 1024px) {
    .ted-actions-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .ted-actions-grid {
        grid-template-columns: 1fr !important;
    }
}

.ted-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.ted-btn-primary {
    background: #f59e0b;
    color: white;
}

.ted-btn-primary:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.ted-btn-outline {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ted-btn-outline:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    transform: translateY(-1px);
}

.ted-disclaimer {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Calculator Variations */
.ted-calculator.industrial .ted-calculator-header {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05), transparent);
}

.ted-calculator.industrial .ted-calculator-header-icon {
    background: #3b82f6;
}

.ted-calculator.industrial .ted-section-title i {
    color: #3b82f6;
}

.ted-calculator.industrial .ted-result-card.highlight {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.ted-calculator.industrial .ted-result-card-value.highlight {
    color: #2563eb;
}

.ted-calculator.roi .ted-calculator-header {
    background: linear-gradient(to right, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05), transparent);
}

.ted-calculator.roi .ted-calculator-header-icon {
    background: #22c55e;
}

.ted-calculator.roi .ted-section-title i {
    color: #22c55e;
}

.ted-calculator.roi .ted-result-card.highlight {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.ted-calculator.roi .ted-result-card-value.highlight {
    color: #16a34a;
}

/* Loading State */
.ted-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.ted-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #f59e0b;
    border-radius: 50%;
    animation: ted-spin 1s linear infinite;
}

@keyframes ted-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Details/Settings */
.ted-details {
/*     border: 1px solid #e5e7eb;
    border-radius: 8px; */
    overflow: hidden;
}

.ted-details summary {
    padding: 16px;
/*     background: #f9fafb; */
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
	font-size:14px;
}

.ted-details summary::-webkit-details-marker {
    display: none;
}

.ted-details summary:after {
    content: '▼';
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.ted-details[open] summary:after {
    transform: rotate(180deg);
}

.ted-details-content {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
}