* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
} */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background:linear-gradient(135deg, #87CEEB, #4682B4);
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 32px rgba(70, 130, 180, 0.3);
}

header h1 {
  font-size: 45px !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
}

.calculator-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-section,
.results-section {
    background: #f8fbff;
    border: 2px solid #87ceeb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c5aa0;
    font-size: 24px !important;
    margin-bottom: 25px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c5aa0;
	font-size:14px !important;
}

.date-inputs {
    display: flex;
    gap: 10px;
}

.date-inputs select {
    flex: 1;
    padding: 10px;
    border: 2px solid #87ceeb !important;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    color: #333;
}

.input-with-symbol {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #2c5aa0;
    font-weight: 600;
    z-index: 1;
}

.percent-symbol {
    position: absolute;
    right: 12px;
    color: #2c5aa0;
    font-weight: 600;
    z-index: 1;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #87ceeb !important;
    border-radius: 6px;
    font-size: 16px;
    background-color: white;
    color: #333;
    transition: border-color 0.3s ease;
	font-family:inherit !important;
}

input[type="number"]:focus {
    outline: none !important;
    border-color: #2c5aa0;
}

.input-with-symbol input[type="number"] {
    padding-left: 35px;
}

.input-with-symbol input[type="number"]:has(+ .percent-symbol) {
    padding-right: 35px;
    padding-left: 10px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.clear-btn,
.calculate-btn {
    padding: 12px 24px;
    border: none !important;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn {
   background:transparent !important;
    color: black !important;
	border:1px Solid black !important;
}

.clear-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.calculate-btn {
   background:linear-gradient(135deg, #87CEEB, #4682B4) !important;
    color: white;
    flex: 1;
}

.calculate-btn:hover {
    background-color: #1e4080;
    transform: translateY(-2px);
}

.results-display {
    min-height: 200px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #2c5aa0;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.copy-btn {
    width: 100%;
    padding: 12px;
   background:linear-gradient(135deg, #87CEEB, #4682B4) !important;
    color: #2c5aa0;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #5dade2;
    transform: translateY(-2px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .calculator-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-section,
    .results-section {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .container {
        padding: 5px;
    }
    
    .amortization-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .amortization-table {
        font-size: 12px;
    }
    
    .amortization-table th,
    .amortization-table td {
        padding: 8px 4px;
    }
}

/* Amortization Schedule Styles */
.amortization-section {
    margin-top: 40px;
    background: #f8fbff;
    border: 2px solid #87ceeb;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.amortization-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.export-btn {
     background:linear-gradient(135deg, #87CEEB, #4682B4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background-color: #219a52;
    transform: translateY(-2px);
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    max-height: 500px;
    overflow-y: auto;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 14px;
}

.amortization-table th {
    background-color: #2c5aa0;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.amortization-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align:center;
}

.amortization-table td:nth-child(2) {
    text-align: left;
}

.amortization-table tbody tr:hover {
    background-color: #f8fbff;
}

.amortization-table tbody tr:nth-child(even) {
    background-color: #fafcff;
}

.amortization-table th:first-child,
.amortization-table td:first-child {
    text-align: center;
    width: 60px;
}

.amortization-table th:nth-child(2),
.amortization-table td:nth-child(2) {
    width: 140px;
}

@media (max-width: 480px) {
    h1 {
        font-size:35px !important;
    }
	.e-con{
		padding:7px;
	}
    
    .form-section,
    .results-section {
        padding: 15px;
    }
    
    input[type="number"],
    select {
        font-size: 14px;
    }
    
    .result-value {
        font-size: 1rem;
    }
    
    .amortization-section {
        padding: 15px;
    }
    
    .table-container {
        max-height: 400px;
    }
}