/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: ‘Segoe UI’, Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f7fa;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 30px;
padding: 20px 0;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h1 {
color: #2c3e50;
margin-bottom: 10px;
}
h2 {
color: #3498db;
margin: 20px 0;
}
h3 {
color: #2c3e50;
margin: 15px 0;
}
/* Calculator Styles */
.calculator-container {
background-color: #fff;
padding: 25px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.tabs {
display: flex;
margin-bottom: 20px;
border-bottom: 1px solid #ddd;
}
.tab-btn {
padding: 10px 20px;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
color: #7f8c8d;
}
.tab-btn.active {
color: #3498db;
border-bottom: 3px solid #3498db;
font-weight: bold;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* Form Styles */
.input-group {
margin-bottom: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
input[type=”text”],
input[type=”number”],
input[type=”file”],
select {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 16px;
}
input[type=”range”] {
width: 100%;
}
button {
padding: 12px 20px;
background-color: #3498db;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
button:hover {
background-color: #2980b9;
}
/* Map Styles */
.location-map {
height: 300px;
width: 100%;
margin-bottom: 10px;
border-radius: 4px;
border: 1px solid #ddd;
}
/* More styles for other components */
.appliance-list-container {
margin-bottom: 30px;
}
.appliance-list {
margin-bottom: 15px;
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
}
.appliance-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border-bottom: 1px solid #eee;
}
.appliance-item:last-child {
border-bottom: none;
}
.appliance-remove-btn {
background-color: #e74c3c;
padding: 5px 10px;
font-size: 14px;
}
/* Results Section */
.results-section,
.selected-package-section,
.package-customization-section,
.financial-report-section {
background-color: #fff;
padding: 25px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.results-summary,
.results-costs,
.results-roi {
margin-bottom: 25px;
}
.result-item,
.roi-item {
display: flex;
justify-content: space-between;
padding: 10px 0;
border-bottom: 1px solid #eee;
}
.costs-table {
width: 100%;
border-collapse: collapse;
}
.costs-table td {
padding: 10px;
border-bottom: 1px solid #eee;
}
.costs-table tr.total-row {
font-weight: bold;
background-color: #f8f9fa;
}
/* Package Cards */
.packages-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-top: 20px;
}
.package-card {
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s, box-shadow 0.3s;
}
.package-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.recommended-package {
border: 2px solid #3498db;
}
.package-header {
background-color: #f8f9fa;
padding: 15px;
border-bottom: 1px solid #ddd;
position: relative;
}
.recommended-badge {
position: absolute;
top: 10px;
right: 10px;
background-color: #3498db;
color: white;
padding: 5px 10px;
border-radius: 20px;
font-size: 12px;
}
.package-body {
padding: 15px;
}
.package-specs {
margin: 15px 0;
}
.spec-item {
display: flex;
justify-content: space-between;
margin-bottom: 8px;
}
.package-price {
font-size: 18px;
font-weight: bold;
margin: 15px 0;
color: #2c3e50;
}
.package-footer {
padding: 15px;
background-color: #f8f9fa;
border-top: 1px solid #ddd;
display: flex;
justify-content: space-between;
}
/* Modal Styles */
.add-appliance-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background-color: white;
padding: 25px;
border-radius: 8px;
width: 500px;
max-width: 90%;
max-height: 90vh;
overflow-y: auto;
position: relative;
}
.close-modal {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
cursor: pointer;
}
.appliance-categories {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 20px;
}
.category-btn {
padding: 8px 15px;
background-color: #f8f9fa;
color: #333;
border: 1px solid #ddd;
}
.category-btn.active {
background-color: #3498db;
color: white;
border-color: #3498db;
}
/* Charts */
.cash-flow-chart-container {
margin: 20px 0;
height: 400px;
}
#cash-flow-chart {
width: 100%;
height: 100%;
}
/* Loan Options Table */
.loan-options-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
.loan-options-table th,
.loan-options-table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #ddd;
}
.loan-options-table th {
background-color: #f8f9fa;
font-weight: 600;
}
/* Footer */
footer {
text-align: center;
padding: 20px;
color: #7f8c8d;
background-color: #fff;
border-top: 1px solid #eee;
margin-top: 30px;
}
/* Responsive */
@media (max-width: 768px) {
.packages-container {
grid-template-columns: 1fr;
}
.tabs {
flex-direction: column;
}
.tab-btn {
width: 100%;
text-align: center;
}
.package-footer {
flex-direction: column;
gap: 10px;
}
.package-footer button {
width: 100%;
}
}