body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100vw;
    width: 100%;
    height: 100vh;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    margin-bottom: 15px;
}

.info-bar {
    display: flex;
    justify-content: space-around;
    background: rgb(0,123,255);
    background: linear-gradient(90deg, rgba(0,123,255,1) 0vw, rgba(0,123,255,1) 49.9vw, rgba(255,255,255,1) 50vw,rgba(0,123,255,1) 50.1vw, rgba(0,123,255,1) 100vw);
    color: white;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.info {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.content {
    margin-top: 60px; /* Pour compenser la hauteur de la barre d'informations */
    padding: 20px;
}

.cards-loany {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-loany {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: box-shadow 0.3s ease-in-out;
}

.card-loany:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-loany-header {
    cursor: pointer;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.toggle-arrow {
    position: absolute;
    right : -10px;
    top:0;
    margin-left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    transition: transform 0.3s ease;
}

.comment-details[open] .toggle-arrow {
    transform: rotate(180deg);
}

.comment-details p {
    margin: 0;
    padding: 2rem;
    background-color: #f9f9f9;
}

.amount-positive {
    color: green;
}

.amount-negative {
    color: red;
}

.date {
    font-weight: bold;
    color: #555;
}

.card-loany-body {
    font-size: 0.9em;
    color: #666;
}

.footer-loany {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5vh;
    line-height: 5vh;
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 24px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-loany a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Floating button */
.floating-button {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    width: 75px;
    height: 75px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    text-align: center;
    font-size: 48px;
    line-height: 75px;
    cursor: pointer;
    z-index: 99999;
    -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15vh auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

small.right {
    float: right;
    text-align: right;
    font-size: smaller;
}

button:hover {
    background-color: #0056b3;
}

@media only screen and (min-width: 768px) {
    .container {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 80vw;
        width: 100%;
        margin: 20px;
        height: 100vh;
    }

    .content {
        padding: unset;
    }
}

@media only screen and (min-width: 1200px) {
    .container {
        background: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        max-width: 40vw;
        width: 100%;
        margin: 20px;
        height: 100vh;
    }

    .content {
        padding: unset;
    }
}