/* static/style.css */
body {
    background-color: #f0f2f5;
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

h1 {
    color: #2d5f38;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.container {
    width: 85%;
    max-width: 1000px;
    margin: 40px auto;
    background-color: #b2bea9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.8em;
    color: #000000;
}

section {
    margin-top: 30px;
    padding: 20px;
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1f706c;
}

textarea, input[type="file"], input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 20px;
}

button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1em;
    color: #ffffff;
    background-color: #489748;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #139b47;
}

.back-button {
    margin-top: 20px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #ffffff;
    background-color: #2d5f38;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #1e4d29;
}


.upload-section, .prompt-section, .editor-section, .ai-correction-section, .configuration-section {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.upload-section input, .prompt-section textarea, .ai-correction-section textarea {
    margin-bottom: 15px;
}

.editor-section textarea {
    height: 350px;
}

/* Pop-Up de chargement */
#loadingPopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Animation spinner */
#loadingSpinner {
    margin: 10px auto;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.flash.danger {
    color: red;
    font-weight: bold;
}

.flash.success {
    color: green;
    font-weight: bold;
}

.flash.info {
    color: blue;
    font-weight: bold;
}

/*auth page*/

/* Style de base */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f9fc;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    max-width: 600px;
    width: 90%;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

.logo-container {
    text-align: center;
    margin-bottom: 1rem;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

.app-description {
    text-align: center;
    margin-bottom: 2rem;
}

.app-description h1 {
    font-size: 1.8rem;
    color: #004c4c; /* Couleur personnalisée, modifiable */
}

.app-description p {
    font-size: 1rem;
    color: #007272; /* Couleur personnalisée, modifiable */
}

.auth-forms {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.auth-section {
    flex: 1;
}

.auth-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #004c4c; /* Couleur personnalisée */
}

.auth-section form label {
    display: block;
    margin-bottom: 0.5rem;
}

.auth-section form input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.auth-section form button {
    width: 100%;
    padding: 0.7rem;
    background-color: #007272; /* Couleur personnalisée */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-section form button:hover {
    background-color: #005555; /* Couleur personnalisée */
}

.forgot-password-section {
    text-align: center;
    font-size: 0.9rem;
}

.forgot-password-section label {
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.forgot-password-section form input {
    width: calc(100% - 20px);
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.forgot-password-btn {
    padding: 0.5rem 1rem;
    background-color: #007272;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.forgot-password-btn:hover {
    background-color: #005555;
}

/* Media Queries pour la responsivité */
@media (max-width: 768px) {
    .auth-forms {
        flex-direction: column;
    }

    .auth-section {
        margin-bottom: 1.5rem;
    }
}
