/* style.css */
body {
    font-family: 'Inter', 'Roboto', sans-serif; /* Assurez-vous d'importer ces polices ou d'utiliser des alternatives */
    margin: 0;
    padding: 0;
    background-color: #F8F9FA;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    color: #00089e;
}

a {
    text-decoration: none;
    color: #0047AB;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

/* Boutons primaires */
.btn-primary {
    background-color: #0047AB;
    color: white;
}
.btn-primary:hover {
    background-color: #00378A;
}

/* Boutons secondaires / Ghost */
.btn-secondary {
    background-color: #FFFFFF;
    color: #0047AB;
    border: 1px solid #0047AB;
}
.btn-secondary:hover {
    background-color: #F0F4F8;
}

/* Inputs */
input[type="text"], input[type="email"], input[type="password"], select {
    padding: 12px;
    border: 1px solid #CCC;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box; /* Important pour le padding et la bordure */
    font-size: 14px;
}
input:focus, select:focus {
    border-color: #0047AB;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 71, 171, 0.2);
}

/* Cartes / Conteneurs */
.card {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Badges de statut */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}
.status-active {
    background-color: #E8F5E9; /* Vert très clair */
    color: #4CAF50; /* Vert */
}
.status-expired {
    background-color: #FFCDD2; /* Rouge très clair */
    color: #D32F2F; /* Rouge */
}
.status-pending {
    background-color: #FFF3E0; /* Orange très clair */
    color: #FFC107; /* Orange */
}


.popup-message {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
    min-width: 250px;
    max-width: 90vw;
    padding: 16px 28px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    opacity: 0.95;
    animation: fadeOut 0.5s ease 4.5s forwards;
}
.popup-message.success, .popup-message.info {
    background: #16a34a;
}
.popup-message.error, .popup-message.danger {
    background: #dc2626;
}
.popup-message.warning {
    background: #f59e42;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-20px);}
}



.message-content {
    /* margin-top: 8px; */
    line-height: 1.6;
    color: #4b5563;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 10px;
}

.message-content::-webkit-scrollbar {
    width: 4px;
}

.message-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}