/* Reset some default styles for better consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General styling */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #F5F5F5;
    color: #333;
    text-align: center;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

h1.calculator-title {
    color: #4A90E2;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Input field styling */


.form-label {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.form-label[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    transition: opacity 0.3s ease-in-out;
}

.form-label[data-tooltip]:hover::before {
    opacity: 1;
}

.input-group {
    margin-bottom: 20px;
}

.form-control {
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 16px;
    background-color: #F5F5F5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    width: 100%;
}

.form-control:focus {
    background-color: #FFFFFF;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* Optional fields hint */
.optional-hint {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
}

/* Result card styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    transition: box-shadow 0.3s;
    color: #333;
}

.card-body {
    padding: 20px;
}

.card-title {
    color: #4A90E2;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.result-item {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
    font-weight: bold;
}

/* Export buttons */
.btn-outline-secondary {
    background-color: #4A90E2;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 18px;
    padding: 10px 20px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.btn-outline-secondary:hover {
    background-color: #357ABD;
    transition: background-color 0.3s;
}

/* Icons */
i.fas {
    margin-right: 10px;
}

/* Responsive styles */
@media (max-width: 768px) {
    h1.calculator-title {
        font-size: 28px;
    }

    .form-label {
        font-size: 16px;
    }

    .form-control {
        font-size: 14px;
    }

    .card-title {
        font-size: 20px;
    }

    .result-item {
        font-size: 16px;
    }
}