/* Loan EMI Calculator - Modern & Mobile First */
.lec-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.lec-dark {
    background: #1a1a2e;
    color: #ffffff;
}

/* Header */
.lec-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f2f5;
}

.lec-dark .lec-header {
    border-bottom-color: #2d3748;
}

.lec-header-icon {
    font-size: 50px;
    margin-bottom: 15px;
    display: inline-block;
}

.lec-title {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.lec-dark .lec-title {
    color: #ffffff;
}

.lec-description {
    color: #64748b;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.lec-dark .lec-description {
    color: #cbd5e0;
}

/* Main Layout */
.lec-main-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .lec-main-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Input Column */
.lec-input-column {
    order: 2;
}

@media (min-width: 992px) {
    .lec-input-column {
        order: 1;
    }
}

.lec-input-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: 100%;
}

.lec-dark .lec-input-card {
    background: #2d3748;
    border-color: #4a5568;
}

.lec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.lec-card-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.lec-dark .lec-card-header h3 {
    color: #ffffff;
}

.lec-currency-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lec-currency-selector label {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.lec-dark .lec-currency-selector label {
    color: #cbd5e0;
}

.lec-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s;
}

.lec-dark .lec-select {
    background: #4a5568;
    border-color: #718096;
    color: #ffffff;
}

.lec-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Form Styles */
.lec-form-group {
    margin-bottom: 30px;
}

.lec-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lec-form-label {
    color: #1e293b;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lec-dark .lec-form-label {
    color: #e2e8f0;
}

.lec-form-value {
    background: #f1f5f9;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: #3b82f6;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.lec-dark .lec-form-value {
    background: #4a5568;
    color: #60a5fa;
}

.lec-input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-size: 16px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.lec-dark .lec-input {
    background: #4a5568;
    color: #ffffff;
    border-color: #718096;
}

.lec-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lec-input::placeholder {
    color: #94a3b8;
}

.lec-range-container {
    margin-top: 10px;
}

.lec-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 10px;
}

.lec-dark .lec-range {
    background: #4a5568;
}

.lec-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
}

.lec-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #2563eb;
}

.lec-range-labels {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.lec-dark .lec-range-labels {
    color: #a0aec0;
}

/* Tenure Options */
.lec-tenure-options {
    margin-bottom: 15px;
}

.lec-radio-group {
    display: flex;
    gap: 15px;
}

.lec-radio-group input[type="radio"] {
    display: none;
}

.lec-radio-label {
    padding: 10px 25px;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
    text-align: center;
    flex: 1;
    border: 2px solid transparent;
}

.lec-dark .lec-radio-label {
    background: #4a5568;
    color: #cbd5e0;
}

.lec-radio-group input[type="radio"]:checked + .lec-radio-label {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.lec-input-note {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

.lec-dark .lec-input-note {
    color: #a0aec0;
}

/* Advanced Options */
.lec-advanced-section {
    margin: 30px 0;
}

.lec-advanced-toggle {
    width: 100%;
    padding: 15px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.lec-dark .lec-advanced-toggle {
    background: #4a5568;
    border-color: #718096;
    color: #60a5fa;
}

.lec-advanced-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.lec-dark .lec-advanced-toggle:hover {
    background: #5a6578;
}

.lec-toggle-icon {
    font-size: 10px;
    transition: transform 0.3s;
}

.lec-advanced-content {
    padding-top: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Buttons */
.lec-action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.lec-button {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lec-button-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.lec-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.lec-button-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #cbd5e0;
}

.lec-dark .lec-button-secondary {
    background: #4a5568;
    color: #e2e8f0;
    border-color: #718096;
}

.lec-button-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.lec-dark .lec-button-secondary:hover {
    background: #5a6578;
}

.lec-button-spinner {
    animation: spin 1s linear infinite;
}

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

/* Results Column */
.lec-results-column {
    order: 1;
}

@media (min-width: 992px) {
    .lec-results-column {
        order: 2;
    }
}

.lec-results-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.lec-dark .lec-results-card {
    background: #2d3748;
    border-color: #4a5568;
}

.lec-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.lec-dark .lec-results-header {
    border-bottom-color: #4a5568;
}

.lec-results-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 600;
}

.lec-dark .lec-results-header h3 {
    color: #ffffff;
}

.lec-print-button {
    background: none;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.lec-dark .lec-print-button {
    border-color: #718096;
    color: #cbd5e0;
}

.lec-print-button:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

.lec-dark .lec-print-button:hover {
    background: #4a5568;
}

/* EMI Summary */
.lec-emi-summary {
    margin-bottom: 40px;
}

.lec-emi-amount {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    border: 2px solid #bae6fd;
}

.lec-dark .lec-emi-amount {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-color: #1d4ed8;
}

.lec-emi-label {
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lec-dark .lec-emi-label {
    color: #cbd5e0;
}

.lec-emi-value {
    color: #1e293b;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.lec-dark .lec-emi-value {
    color: #ffffff;
}

.lec-emi-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 576px) {
    .lec-emi-details {
        grid-template-columns: 1fr;
    }
}

.lec-detail-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.lec-dark .lec-detail-item {
    background: #4a5568;
    border-color: #718096;
}

.lec-detail-label {
    display: block;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.lec-dark .lec-detail-label {
    color: #cbd5e0;
}

.lec-detail-value {
    display: block;
    color: #1e293b;
    font-size: 22px;
    font-weight: 700;
}

.lec-dark .lec-detail-value {
    color: #ffffff;
}

/* Chart Section */
.lec-chart-section {
    margin: 40px 0;
    text-align: center;
}

.lec-chart-section h4 {
    margin: 0 0 25px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.lec-dark .lec-chart-section h4 {
    color: #ffffff;
}

.lec-chart-container {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

/* Schedule Section */
.lec-schedule-section {
    margin: 40px 0;
}

.lec-schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.lec-schedule-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.lec-dark .lec-schedule-header h4 {
    color: #ffffff;
}

.lec-view-tabs {
    display: flex;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
}

.lec-dark .lec-view-tabs {
    background: #4a5568;
}

.lec-view-tab {
    padding: 10px 25px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.lec-dark .lec-view-tab {
    color: #cbd5e0;
}

.lec-view-tab.active {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.lec-schedule-view {
    display: none;
}

.lec-schedule-view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lec-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.lec-dark .lec-table-wrapper {
    border-color: #4a5568;
}

.lec-schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.lec-schedule-table thead {
    background: #3b82f6;
    color: #ffffff;
}

.lec-schedule-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.lec-schedule-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.lec-dark .lec-schedule-table tbody tr {
    border-bottom-color: #4a5568;
}

.lec-schedule-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.lec-dark .lec-schedule-table tbody tr:nth-child(even) {
    background: #4a5568;
}

.lec-schedule-table td {
    padding: 14px 20px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.lec-dark .lec-schedule-table td {
    color: #e2e8f0;
}

.lec-table-note {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
    margin-top: 10px;
}

.lec-dark .lec-table-note {
    color: #a0aec0;
}

/* Summary Section */
.lec-summary-section {
    margin-top: 40px;
}

.lec-summary-section h4 {
    margin: 0 0 25px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.lec-dark .lec-summary-section h4 {
    color: #ffffff;
}

.lec-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 576px) {
    .lec-summary-grid {
        grid-template-columns: 1fr;
    }
}

.lec-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.lec-dark .lec-summary-item {
    background: #4a5568;
    border-color: #718096;
}

.lec-summary-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.lec-summary-label {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 5px;
}

.lec-dark .lec-summary-label {
    color: #cbd5e0;
}

.lec-summary-value {
    display: block;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.lec-dark .lec-summary-value {
    color: #ffffff;
}

/* Help Card */
.lec-help-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #bae6fd;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.lec-dark .lec-help-card {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    border-color: #1d4ed8;
}

.lec-help-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.lec-help-content h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.lec-dark .lec-help-content h4 {
    color: #ffffff;
}

.lec-help-content p {
    margin: 0 0 8px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.lec-dark .lec-help-content p {
    color: #cbd5e0;
}

.lec-help-content strong {
    color: #3b82f6;
}

.lec-dark .lec-help-content strong {
    color: #60a5fa;
}

/* Footer */
.lec-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

.lec-dark .lec-footer {
    border-top-color: #4a5568;
    color: #cbd5e0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lec-container {
        padding: 15px;
        margin: 10px;
        border-radius: 15px;
    }
    
    .lec-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .lec-title {
        font-size: 26px;
    }
    
    .lec-description {
        font-size: 14px;
    }
    
    .lec-input-card,
    .lec-results-card,
    .lec-help-card {
        padding: 20px;
    }
    
    .lec-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .lec-form-value {
        align-self: flex-start;
    }
    
    .lec-action-buttons {
        flex-direction: column;
    }
    
    .lec-button {
        width: 100%;
    }
    
    .lec-emi-value {
        font-size: 36px;
    }
    
    .lec-detail-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .lec-title {
        font-size: 22px;
    }
    
    .lec-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lec-currency-selector {
        width: 100%;
    }
    
    .lec-select {
        width: 100%;
    }
    
    .lec-radio-group {
        flex-direction: column;
    }
    
    .lec-schedule-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lec-view-tabs {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .lec-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .lec-input-column,
    .lec-action-buttons,
    .lec-print-button,
    .lec-view-tabs,
    .lec-help-card,
    .lec-footer {
        display: none !important;
    }
    
    .lec-main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .lec-results-column {
        width: 100%;
    }
}