/* ✨ Thème Default - Bleu & Blanc Modernisé Complet */

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f0f8ff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.sidebar {
    width: 180px;
    height: 100vh;
    background: linear-gradient(180deg, #0044cc, #002a80);
    color: white;
    position: fixed;
    padding-top: 10px;
    overflow-y: auto;
    transition: width 0.3s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
}

.sidebar.collapsed { width: 60px; }
.sidebar h2 { text-align: center; font-size: 18px; color: #ffffff; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li { padding: 14px; text-align: center; }
.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s;
    border-radius: 4px;
}
.sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.content {
    margin-left: 10px;
    padding: 5px;
    animation: fadeIn 0.4s ease-in-out;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 20px;
}
th, td {
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    color: #333;
}
th {
    background-color: #0044cc;
    color: white;
    font-weight: 700;
}
tr:hover { background-color: #e7f1ff; }

/* Formulaires */
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
input:focus, select:focus, textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 6px rgba(0,123,255,0.3);
    outline: none;
}

/* Boutons */
.btn {
    background: #007bff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
}
.btn:hover {
    background: #0056b3;
    transform: scale(1.03);
}
.btn-green { background-color: #28a745; }
.btn-green:hover { background-color: #218838; }
.btn-red { background-color: #dc3545; }
.btn-red:hover { background-color: #a71d2a; }
.btn-delete-task { background-color: #dc3545; color: white; }
.btn-delete-task:hover { background-color: #a71d2a; }
.back-btn { background-color: #6c757d; }
.back-btn:hover { background-color: #5a6268; }

.alert {
    padding: 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}
.alert.success { background-color: #28a745; color: white; }
.alert.error { background-color: #dc3545; color: white; }

.notif-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 1s infinite;
}

.message {
    padding: 15px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
.own-message {
    background-color: #d6eaff;
    border: 1px solid #007bff;
    text-align: right;
}
.other-message {
    background-color: #ffffff;
    border: 1px solid #ccc;
    text-align: left;
}
.profile-picture {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0044cc;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar.collapsed { width: 250px; }
    .content { margin-left: 10px; padding: 5px; }
    .btn { width: 100%; text-align: center; }
    table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Colonne Service */
.service-column {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 68, 204, 0.1);
    border-left: 1px solid #0044cc;
    border-right: 1px solid #0044cc;
    border-top: 1px solid #0044cc;
}

.service-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    background-color: #ffffff;
   border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.type-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    width: 200px; /* Largeur fixe de chaque box */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}

#taskTypes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
}

.service-columnbig {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #0044cc;
    background-color: rgba(0, 68, 204, 0.1);
    padding: 10px;
    max-width: 300px;
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin: 10px;
}
/* 🔐 Formulaire de connexion */
.login-container {
    width: 350px;
    margin: 100px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    color: #0044cc;
    margin-bottom: 20px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login-container .btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}
.btn-status.selected {
    background-color: #6f90c5; /* bleu plus foncé pour bouton sélectionné */
    color: white;
    border: 1px solid #3e5a91;
}
.btn.selected {
    background-color: #6f90c5; /* un bleu plus foncé ou adapté à ton thème */
    color: white;
    border: 1px solid #3e5a91;
    transform: scale(1.05); /* petit effet grossi sympa */
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid #ccc;
    transition: background-color 0.2s;
}

.pagination a:hover {
    background-color: #e0e0e0;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}
#floating-submit {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
}

#floating-submit button {
    padding: 8px 10px;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}




.topnav {
    width: 100%;
    background-color: #0044cc;
    overflow-x: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: top 0.4s ease;
}

.topnav a {
    color: white;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.topnav a:hover {
    background-color: #003399;
    border-radius: 5px;
}

.topnav .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav .user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.topnav .right-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topnav .logo {
    font-weight: bold;
    color: #fff;
    font-size: 18px;
    padding-right: 10px;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .topnav {
        flex-direction: column;
        align-items: flex-start;
    }

    .topnav .right-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .topnav.open .right-menu {
        display: flex;
    }

    #menu-toggle {
        display: block;
        align-self: center; /* centré horizontalement */
        margin: 10px auto;   /* optionnel pour espacement */
    }

    .topnav a {
        padding: 10px;
        width: 100%;
    }
}
