parking-calculator-library
Version:
A library to calculate parking fees based on duration, with discounts for early bird, weekend, and loyalty members.
72 lines (61 loc) • 1.09 kB
CSS
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
color: #333;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.parking-calculator {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
width: 400px;
}
h2 {
text-align: center;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="datetime-local"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
}
.discount-checkbox {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.discount-checkbox input {
margin-right: 10px;
}
.btn {
display: block;
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
.btn:hover {
background-color: #0056b3;
}
.result-section {
margin-top: 20px;
background: #f8f9fa;
padding: 10px;
border-radius: 4px;
}