/* Général */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 20px;
    color: #333;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

main {
    padding: 40px;
    text-align: left;
}

/* Navigation */
nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

/* Titres */
h1, h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Listes */
ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
    padding: 8px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* Boutons */
button {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

form {
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Liens */
a {
    text-decoration: none;
    color: #3498db;
}

a:hover {
    text-decoration: underline;
}

/* Statut des tâches */
.status-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.status-circle.todo {
    background-color: #f1c40f;
}

.status-circle.done {
    background-color: #2ecc71;
}

.status-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

/* Dashboard */
.section-block {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.section-block h2 {
    margin-top: 0;
    color: #34495e;
    font-size: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

/* Tâches */
.task-title {
    font-weight: bold;
    color: #2c3e50;
}

.subtask {
    margin-left: 20px;
    font-style: italic;
    font-size: 0.95em;
    color: #555;
}

/* Profil – Menu déroulant avatar */
.profile-container {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.profile-avatar {
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s;
}

.profile-avatar:hover {
    background-color: #2980b9;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 5px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
    width: 150px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.profile-dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}

.profile-dropdown a:hover {
    background-color: #f5f5f5;
}

.profile-container:hover .profile-dropdown {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
