/* ==== Zone de log ==== */
.log-section {
    margin-top: 20px;
}

.log-section textarea,
#imapsyncLog {
    width: 100%;
    min-height: 200px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    resize: vertical;
    font-family: monospace;
}

/* ==== Barre de progression ==== */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    transition: width 0.4s ease, background-color 0.3s;
    text-align: center;
    line-height: 1.8em;
    color: #fff;
    font-weight: bold;
}

/* ==== Thème clair ==== */
body.light-theme {
    background-color: #f8f9fa;
    color: #212529;
    transition: background-color 0.4s, color 0.4s;
}

body.light-theme textarea,
body.light-theme input,
body.light-theme select {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid #ced4da;
}

body.light-theme .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* ==== Thème sombre ==== */
body.dark-theme {
    background-color: #121212;
    color: #e0e0e0;
    transition: background-color 0.4s, color 0.4s;
}

.dark-theme .form-control,
.dark-theme .btn,
.dark-theme .log-section textarea,
body.dark-theme textarea,
body.dark-theme input,
body.dark-theme select {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .form-control:focus {
    border-color: #90caf9;
    box-shadow: 0 0 5px rgba(144, 202, 249, 0.5);
}

/* ==== Spinner ==== */
.spinner-border {
    width: 2rem;
    height: 2rem;
    display: block;
    margin: 10px auto;
}

/* ==== Formulaires alignés ==== */
.form-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.form-column {
    flex: 1 1 45%;
    min-width: 300px;
}

.form-group {
    margin-bottom: 15px;
}

/* ==== Boutons thème ==== */
#lightTheme,
#darkTheme {
    margin-right: 10px;
}
