* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 4rem 2rem;
    color: #2d3748;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
}

.demo-section {
    background: white;
    border-radius: 2rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.demo-section h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.2rem solid #e2e8f0;
}

/* Badges de statut */
.status-badge {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    border: 0.3rem solid white;
    position: relative;
    box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.status-badge.online {
    background-color: #48bb78;
}

.status-badge.offline {
    background-color: #cbd5e0;
}

.status-badge.busy {
    background-color: #f56565;
}

.status-badge.away {
    background-color: #ed8936;
}

.status-badge.dnd {
    background-color: #9f7aea;
}

.status-badge.pulse::after {
    content: '';
    position: absolute;
    top: -0.3rem;
    left: -0.3rem;
    right: -0.3rem;
    bottom: -0.3rem;
    border-radius: 50%;
    border: 0.2rem solid currentColor;
    animation: pulse 2s ease-out infinite;
}

.status-badge.online.pulse::after {
    color: #48bb78;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Section 1: Badges basiques */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 3rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.status-item .status-badge {
    width: 3rem;
    height: 3rem;
    border-width: 0.4rem;
}

.status-item span {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4a5568;
}

/* Section 2: Avatars avec badges */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 3rem;
    justify-items: center;
}

.avatar-container {
    position: relative;
    width: 10rem;
    height: 10rem;
}

.avatar-container.small {
    width: 5rem;
    height: 5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
}

.avatar-container.small .avatar {
    font-size: 2rem;
}

.avatar-container .status-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.4rem;
}

.avatar-container.small .status-badge {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.3rem;
    bottom: 0.2rem;
    right: 0.2rem;
}

/* Section 3: Indicateurs avec texte */
.text-status-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-status {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #f7fafc;
    border-radius: 1.5rem;
    border-left: 0.5rem solid;
    transition: all 0.3s ease;
}

.text-status:hover {
    transform: translateX(1rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.text-status.online {
    border-color: #48bb78;
}

.text-status.offline {
    border-color: #cbd5e0;
}

.text-status.busy {
    border-color: #f56565;
}

.text-status.away {
    border-color: #ed8936;
}

.text-status.dnd {
    border-color: #9f7aea;
}

.status-dot {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.text-status.online .status-dot {
    background-color: #48bb78;
    box-shadow: 0 0 0 0.4rem rgba(72, 187, 120, 0.2);
}

.text-status.offline .status-dot {
    background-color: #cbd5e0;
    box-shadow: 0 0 0 0.4rem rgba(203, 213, 224, 0.2);
}

.text-status.busy .status-dot {
    background-color: #f56565;
    box-shadow: 0 0 0 0.4rem rgba(245, 101, 101, 0.2);
}

.text-status.away .status-dot {
    background-color: #ed8936;
    box-shadow: 0 0 0 0.4rem rgba(237, 137, 54, 0.2);
}

.text-status.dnd .status-dot {
    background-color: #9f7aea;
    box-shadow: 0 0 0 0.4rem rgba(159, 122, 234, 0.2);
}

.status-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: #4a5568;
}

/* Section 4: Cartes utilisateur */
.user-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.user-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 2rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.user-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.15);
}

.user-avatar-wrapper {
    position: relative;
}

.user-avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.user-avatar-wrapper .status-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.4rem;
}

.user-info {
    text-align: center;
}

.user-info h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.user-role {
    font-size: 1.4rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.user-info .text-status {
    justify-content: center;
    padding: 1rem 2rem;
    border: none;
    background: white;
}

/* Section 5: Liste d'utilisateurs */
.user-list-container {
    background: #f7fafc;
    border-radius: 1.5rem;
    padding: 2rem;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-list-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-list-item:hover {
    transform: translateX(1rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.user-details {
    flex: 1;
}

.user-details h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.user-details p {
    font-size: 1.4rem;
    color: #718096;
}

.status-indicator {
    font-size: 1.2rem;
}

.status-indicator.online {
    color: #48bb78;
}

.status-indicator.offline {
    color: #cbd5e0;
}

.status-indicator.busy {
    color: #f56565;
}

.status-indicator.away {
    color: #ed8936;
}

.status-indicator.dnd {
    color: #9f7aea;
}

/* Section 6: Sélecteur de statut */
.status-selector-demo {
    max-width: 50rem;
    margin: 0 auto;
}

.current-user {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 2rem;
    margin-bottom: 2rem;
}

.current-user .user-info {
    flex: 1;
    text-align: left;
}

.current-user .user-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.current-user .user-info p {
    font-size: 1.4rem;
    color: #718096;
}

.change-status-btn {
    padding: 1.2rem 2.4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.change-status-btn:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.4);
}

.status-dropdown {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-1rem);
    transition: all 0.3s ease;
}

.status-dropdown.active {
    max-height: 50rem;
    opacity: 1;
    transform: translateY(0);
}

.status-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.status-option:hover {
    background: #f7fafc;
}

.status-option:not(:last-child) {
    border-bottom: 0.1rem solid #e2e8f0;
}

.status-option .status-dot {
    width: 1.6rem;
    height: 1.6rem;
}

.option-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2d3748;
}

.option-desc {
    font-size: 1.3rem;
    color: #718096;
}

.check-icon {
    color: #48bb78;
    font-size: 1.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-option.active .check-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .demo-section {
        padding: 2rem;
    }

    .demo-section h2 {
        font-size: 2rem;
    }

    .status-grid,
    .avatar-grid {
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
        gap: 2rem;
    }

    .user-cards {
        grid-template-columns: 1fr;
    }

    .current-user {
        flex-direction: column;
        text-align: center;
    }

    .current-user .user-info {
        text-align: center;
    }
}