 .escarre-dashboard {
        font-family: 'Roboto', 'Open Sans', sans-serif;
        background-color: #f5f7fa;
        margin-bottom: 30px;
    }

    .escarre-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 2rem 0;
        margin-bottom: 2rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .header-content {
        text-align: center;
    }

    .logo-header {
        height: 60px;
        margin-bottom: 1rem;
    }

    .page-title {
        font-size: 2.2rem;
        font-weight: 600;
        margin: 0 0 0.5rem 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .subtitle {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    /* Statistiques rapides */
    .escarre-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 25px;
    }

    .stat-card {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        padding: 15px;
        flex: 1;
        min-width: 200px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-right: 15px;
    }

    .stat-content {
        flex-grow: 1;
    }

    .stat-value {
        font-size: 1.8rem;
        font-weight: 700;
        color: #343a40;
        line-height: 1.2;
    }

    .stat-label {
        font-size: 0.9rem;
        color: #6c757d;
    }

    /* Actions rapides */
    .escarre-quick-actions {
        margin-bottom: 30px;
    }

    .quick-action-card {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        padding: 20px;
        height: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        transition: all 0.3s ease;
    }

    .quick-action-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }

    .quick-action-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        margin-right: 20px;
    }

    .quick-action-content {
        flex-grow: 1;
    }

    .quick-action-content h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 5px;
        color: #343a40;
    }

    .quick-action-content p {
        font-size: 0.9rem;
        color: #6c757d;
        margin-bottom: 15px;
    }

    .action-button {
        border-radius: 50px;
        padding: 8px 16px;
        font-size: 0.9rem;
        background: linear-gradient(45deg, #667eea, #764ba2);
        border: none;
        transition: all 0.3s ease;
    }

    .action-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    /* Recherche et filtres */
    .escarre-search-section {
        background-color: white;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 25px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .search-container, .filter-container {
        position: relative;
        margin-bottom: 15px;
    }

    .search-icon, .filter-icon {
        position: absolute;
        top: 12px;
        left: 12px;
        color: #6c757d;
    }

    .resident-search, .resident-filter {
        padding-left: 35px;
        border-radius: 50px;
        border: 1px solid #dee2e6;
        height: 45px;
        transition: all 0.3s ease;
    }

    .resident-search:focus, .resident-filter:focus {
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        border-color: #667eea;
    }

    .btn-refresh {
        padding: 10px 20px;
        border: none;
        background: linear-gradient(45deg, #28a745, #20c997);
        color: white;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    .btn-refresh:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }

    /* Liste des résidents */
    .escarre-residents-list {
        margin-bottom: 30px;
    }

    .loading-indicator {
        text-align: center;
        padding: 30px;
        color: #6c757d;
        font-size: 1.2rem;
    }

    .no-results {
        text-align: center;
        padding: 50px 20px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .no-results i {
        font-size: 3rem;
        color: #6c757d;
        margin-bottom: 20px;
    }

    .no-results h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 10px;
        color: #343a40;
    }

    .no-results p {
        font-size: 1rem;
        color: #6c757d;
    }

    .residents-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 20px;
    }

    .resident-card {
        background-color: white;
        border-radius: 10px;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        position: relative;
    }

    .resident-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .resident-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: linear-gradient(to right, #f8f9fa, #e9ecef);
        color: #343a40;
        font-weight: 600;
    }

    .resident-card-header.high-risk {
        background: linear-gradient(to right, #f8d7da, #f5c6cb);
        color: #721c24;
    }

    .resident-card-header.medium-risk {
        background: linear-gradient(to right, #fff3cd, #ffeeba);
        color: #856404;
    }

    .resident-card-header.low-risk {
        background: linear-gradient(to right, #d4edda, #c3e6cb);
        color: #155724;
    }

    .resident-card-header.no-evaluation {
        background: linear-gradient(to right, #e2e3e5, #d6d8db);
        color: #383d41;
    }

    .resident-name {
        font-size: 1.1rem;
    }

    .status-badge {
        display: inline-block;
        padding: 3px 10px;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .status-badge.high-risk {
        background-color: #dc3545;
        color: white;
    }

    .status-badge.medium-risk {
        background-color: #ffc107;
        color: #212529;
    }

    .status-badge.low-risk {
        background-color: #28a745;
        color: white;
    }

    .status-badge.no-evaluation {
        background-color: #6c757d;
        color: white;
    }

    .resident-card-body {
        padding: 20px;
        display: flex;
        gap: 15px;
    }

    .resident-avatar {
        font-size: 2.5rem;
        color: #6c757d;
        background-color: #f8f9fa;
        height: 60px;
        width: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .resident-info {
        flex-grow: 1;
    }

    .resident-details {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .detail-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #6c757d;
        font-size: 0.9rem;
    }

    .detail-item i {
        width: 16px;
    }

    .resident-card-footer {
        padding: 15px;
        border-top: 1px solid #f1f1f1;
    }
    
    .resident-actions {
        display: flex;
        gap: 8px;
    }

    .btn-action {
 
        color: white;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .btn-history {
        background: linear-gradient(45deg, #3498db, #2980b9);
    }

    .btn-evaluate {
        background: linear-gradient(45deg, #28a745, #20c997);
    }

    .btn-follow {
        background: linear-gradient(45deg, #fd7e14, #e67e22);
    }

    .btn-more {
        background: linear-gradient(45deg, #6c757d, #495057);
        padding: 8px 12px;
        flex: 0 0 40px;
    }

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        opacity: 0.95;
        color: white;
    }

    .dropdown-menu {
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        border: none;
        padding: 8px 0;
    }

    .dropdown-item {
        padding: 8px 16px;
        font-size: 0.9rem;
        transition: background-color 0.2s ease;
    }

    .dropdown-item i {
        width: 20px;
        margin-right: 8px;
        color: #6c757d;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
    }

    .dropdown-divider {
        margin: 8px 0;
    }

    /* Pagination */
    .escarre-pagination {
        display: flex;
        justify-content: center;
        margin: 30px 0;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .residents-grid {
            grid-template-columns: 1fr;
        }
        
        .escarre-stats {
            flex-direction: column;
        }
        
        .stat-card {
            width: 100%;
        }
        
        .quick-action-card {
            flex-direction: column;
            text-align: center;
        }
        
        .quick-action-icon {
            margin-right: 0;
            margin-bottom: 15px;
        }
        
        .resident-actions {
            flex-wrap: wrap;
        }
        
        .btn-action {
            width: calc(50% - 4px);
            margin-bottom: 8px;
        }
    }
