/* Import Roboto font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    font-family: 'Roboto', Arial, sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.date-input {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

.date-input label {
    width: auto; /* Ensure the label takes up only the space it needs */
    font-size: 1em;
    font-weight: 500;
    color: #757575;
    margin-right: 10px; /* Adds space between label and input */
    display: flex;
    align-items: center;
    padding-left: 20px;
}

/* Elevated style for date inputs */
input[type="date"] {
    width: calc(50% - 10px); /* Adjust width for better alignment */
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border 0.3s ease;
    cursor: pointer;
}

input[type="date"]:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #2962ff;
}

input[type="date"]:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 10px rgba(41, 98, 255, 0.5);
}

#content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

#chart-container {
    width: 50%;
    max-width: 500px;
    margin-right: 40px;
}

#inputs-container {
    width: 50%;
    max-width: 500px;
}

.input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

label {
    flex: 1;
    font-weight: bold;
    color: #757575;
    font-size: 0.9em;
    text-align: right;
    padding-right: 10px;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 0.9em;
    text-align: right;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.percentage-sign {
    font-size: 0.9em;
    color: #757575;
}

.date-display {
    margin-left: 20px;
    font-weight: bold;
    color: #000;
    font-size: 0.9em;
}

button {
    background-color: #1a237e;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3f51b5;
}

@media screen and (max-width: 768px) {
    #content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    #chart-container,
    #inputs-container {
        width: 100%;
        max-width: 100%;
    }

    .input-container {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        padding: 20px;
    }

    label,
    .date-display {
        margin-bottom: 10px;
    }

    input[type="number"] {
        width: 100%;
        margin-right: 0;
    }

    .percentage-sign {
        margin-left: 0;
    }
}
