/* === HEADER GRADIENT === */
.header-gradient {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 70px;
    height: auto;
}
.logo-apsi {
    width: 45px;
    height: auto;
}
/* === USER INFO CARD === */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
}
.user-name p {
    text-align: center;
    display: contents;
    font-size: 18px;
}

/* === MAIN CONTAINER === */
.main-container {
    background: #f5f7fa;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

/* === ACTION BAR === */
.action-bar {
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* === SEARCH BAR === */
.search-bar-modern {
    position: relative;
    max-width: 600px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f50ce;
    font-size: 18px;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.search-input:focus {
    outline: none;
    border-color: #5f4fcf;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-loader {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f4fcf;
    display: none;
}
.filter-form i{
    color: #5f4fcf;
}
/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.empty-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 15px;
}

.empty-description {
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-logout {
    background: rgba(220, 53, 69, 0.50);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: black;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

/* === BENEFICIAIRES GRID === */
.beneficiaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.beneficiaire-card-wrapper {
    transition: all 0.3s ease;
}

.beneficiaire-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.beneficiaire-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* === CREATOR BADGE === */
.creator-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    z-index: 10;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* === CARD HEADER === */
.card-header-modern {
    padding: 60px 25px 25px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e2e8f0;
    flex-grow: 1;
}

.beneficiaire-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 30px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.beneficiaire-info {
    flex-grow: 1;
    min-width: 0;
}

.beneficiaire-name {
    color: #2d3748;
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.beneficiaire-date {
    color: #718096;
    font-size: 14px;
}

.beneficiaire-date i {
    color: #667eea;
}

/* === CARD FOOTER === */
/* Empêche Font Awesome d'afficher l’icône par défaut */
.btn-open-dossier .icon-folder::before {
    content: "\e185"; /* folder */
}

.btn-open-dossier:hover .icon-folder::before {
    content: "\f07c"; /* folder-open */
}

.card-footer-modern {
    padding: 20px 25px;
    background: white;
}

.btn-open-dossier {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-open-dossier:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-open-dossier i:last-child {
    transition: transform 0.3s ease;
}

.btn-open-dossier:hover i:last-child {
    transform: translateX(5px);
}

/* === RESULTS COUNTER === */
.results-counter {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-weight: 600;
}
/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.beneficiaire-card-wrapper {
    animation: fadeIn 0.5s ease forwards;
}

.beneficiaire-card-wrapper:nth-child(1) { animation-delay: 0.05s; }
.beneficiaire-card-wrapper:nth-child(2) { animation-delay: 0.1s; }
.beneficiaire-card-wrapper:nth-child(3) { animation-delay: 0.15s; }
.beneficiaire-card-wrapper:nth-child(4) { animation-delay: 0.2s; }
.beneficiaire-card-wrapper:nth-child(5) { animation-delay: 0.25s; }
.beneficiaire-card-wrapper:nth-child(6) { animation-delay: 0.3s; }

.table-borderless>:not(caption)>*>* {
    border-bottom-width: 1px;
}
