/*-----------------------IN PROGRESS------------------------------------*/
/* Adapt to every device */
.reset-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    height: 100vh; /* Full viewport height */
    text-align: center;
    padding: 20px; /* Add padding for smaller screens */
    box-sizing: border-box; /* Include padding in width/height calculations */
}
/* For screens smaller than 768px (tablets and phones) */
@media (max-width: 768px) {
    .reset-container {
        padding: 10px; /* Reduce padding */
    }

    h1 {
        font-size: 24px; /* Reduce font size for smaller screens */
    }

    .btn-reset {
        padding: 10px 20px; /* Adjust button size */
        font-size: 14px; /* Reduce button font size */
    }
}

/* For screens smaller than 480px (phones) */
@media (max-width: 480px) {
    h1 {
        font-size: 20px; /* Further reduce font size */
    }

    .btn-reset {
        padding: 8px 16px; /* Further adjust button size */
        font-size: 12px; /* Further reduce button font size */
    }
}

/*-----------------------------------------------------------------------------------*/

/*REGISTER PAGE*/
/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: block; /* Allow content to flow naturally */
}

/* Container for the form and title */
.container {
    /* Keep this class generic for other pages */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Register Page Container */
.register-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
    width: 100%;
    max-width: 400px;
    height: 100vh; /* Make the container span the full viewport height */
    margin: 0 auto; /* Center the container horizontally */
    padding: 20px; /* Add padding around the content */
    box-sizing: border-box; /* Include padding in the width calculation */
}

/* Form container styling */
form {
    background-color: #ffffff;
    padding: 45px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
    margin-left: 80px; /* Add left margin to move the form to the right */
}
/* Form heading */
h1 {
    text-align: center;
    color: #333333;
    margin-bottom: 20px; /*espacement entre le titre et le formulaire*/
    margin-left: 80px;
    font-size: 40px; /* taille de police pour le titre */
}

/* Form fields */
form p {
    margin-bottom: 20px;
}

form label {
    font-weight: bold;
    color: #555555;
    display: block;
    margin-bottom: 5px;
}

form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 14px;
}

/* Submit button */
form button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

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

/*---------------------------------------------------------------------------------------------*/
/* Backup and Reset Page */
/* Reset Page */
.reset-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.btn-reset {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-reset:hover {
    background-color: #c9302c;
}
/*---------------------------------------------------------------------------------------------*/
/*GRAPH PAGE*/
.graph-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    padding: 8px 20px 10px;
}

/* Title Section */
.graph-page .title-container {
    text-align: center;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.graph-page h1 {
    margin-left: 0;
    font-size: 24px;
    margin: 0 0 2px;
}

/* Explanation Text */
.graph-page .explanation-text {
    font-size: 13px;
    color: #555;
    margin: 0 0 2px;
    text-align: center;
    margin-right: 0;
}

/* Graph Section */
.graph-page .graph-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    margin-right: 0;
    overflow: hidden;
    min-height: 0;
}

/* Override generic form styles for the graph page */
.graph-page form {
    background: none;
    box-shadow: none;
    padding: 0;
    margin-left: 0;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 0;
}

.graph-page .graph-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-height: 0;
    width: 100%;
}

/* Scale canvas to fit available space while keeping intrinsic proportions */
.graph-page canvas {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(100%, calc(100vh - 220px));
}

.button-container {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    padding-right: 0;
    margin-right: 0;
}


.btn-submit {
    background-color: #0021da;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    background-color: #0056b3;
}

.graph-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.graph-title {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.trend-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .trend-img {
        width: 42px;
        height: 42px;
    }
}