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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

.header {
    background: #1a1a1a;
    color: white;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #2a2a2a;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 24px;
}

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

.btn {
    padding: 8px 16px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

.btn:hover {
    background: rgba(255,255,255,0.1);
}

.container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.profile-card {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    object-fit: cover;
}

.profile-name {
    flex: 1;
}

.profile-name h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.profile-username {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-user {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.role-admin {
    background: #1a1a1a;
    color: white;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.detail-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 400;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

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

    .user-info {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .container {
        padding: 15px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name h2 {
        font-size: 24px;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 20px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .container {
        padding: 10px;
    }

    .profile-card {
        padding: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-name h2 {
        font-size: 20px;
    }

    .detail-item {
        padding: 12px;
    }

    .detail-label {
        font-size: 10px;
    }

    .detail-value {
        font-size: 14px;
    }

    .user-info {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


