/* Custom Styles for an attractive UI */

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    padding: 2rem 0;
}

.calculator-card,
.content-section {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(135deg, #0d6efd, #6f42c1);
    color: white;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.card-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.card-body,
.content-section {
    padding: 2rem;
}

.content-section h2 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #5815b9);
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#result {
    margin-top: 2rem;
    background-color: #e7f1ff;
    border-left: 5px solid #0d6efd;
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
}

.result-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

.result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.result-value span {
    font-weight: 400;
    font-size: 1rem;
    color: #6c757d;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.result-item {
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.error-message {
    color: #dc3545;
    font-weight: 500;
    margin-top: 1rem;
}

.site-footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 2rem;
}

.site-footer a {
    color: #0d6efd;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .nav-links {
    margin-bottom: 1rem;
}